You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
old sys.path_hooks importer does not work with Python 3.4.0rc1 #64962
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/brettcannon'closed_at=<Date2014-02-26.23:29:34.862>created_at=<Date2014-02-25.03:36:04.270>labels= ['release-blocker']
title='old sys.path_hooks importer does not work with Python 3.4.0rc1'updated_at=<Date2014-03-17.06:31:11.561>user='https://bugs.python.org/ynkdir'
Activity
ynkdir commentedon Feb 25, 2014
Steps to reproduce:
On Ubuntu 13.10.
python3.3 is ubuntu's package.
python3.4.0rc1 is built by myself.
Vim's custom importer does not work for it.
[vim_dev] Problem with Python 3.4
https://groups.google.com/d/msg/vim_dev/RfuOG7_Jabs/h3YzLTsRgv0J
brettcannon commentedon Feb 25, 2014
The problem is that the PEP-451 switch accidentally cut out compatibility code for PathEntryFinder.find_module() since Python 3.3 started the transition to find_loader(). Adding a bit of code to http://hg.python.org/cpython/file/8ac9c3754d33/Lib/importlib/_bootstrap.py#l1865 and a test will fix it.
brettcannon commentedon Feb 25, 2014
I should also mention that subclassing importlib.abc.PathEntryFinder solves this coding problem.
brettcannon commentedon Feb 25, 2014
I have a fix, I just need to create a test.
brettcannon commentedon Feb 26, 2014
Fix and test is attached. Can someone review it so I can check it in and get a cherrypick?
ericsnowcurrently commentedon Feb 26, 2014
LGTM
ynkdir commentedon Feb 26, 2014
It works fine. Thank you!
brettcannon commentedon Feb 26, 2014
I'll try to commit tonight then and request a cherrypick.
python-dev commentedon Feb 26, 2014
New changeset 5dec1604322c by Brett Cannon in branch 'default':
Issue bpo-20763: Fix importlib.machinery.PathFinder to support
http://hg.python.org/cpython/rev/5dec1604322c
brettcannon commentedon Feb 26, 2014
Committed for Larry to cherrypick into 3.4.0. No Misc/NEWS so that Larry doesn't have merge issues and since it will be covered by 3.4.0.
brettcannon commentedon Feb 26, 2014
Cherrypick bug is http://bugs.python.org/issue20789
python-dev commentedon Mar 17, 2014
New changeset 149be7000c11 by Brett Cannon in branch '3.4':
Issue bpo-20763: Fix importlib.machinery.PathFinder to support
http://hg.python.org/cpython/rev/149be7000c11