[Python-Dev] Python 3.4 change in importlib/init.py breaking cxFreeze? (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Mon Mar 10 14:25:17 CET 2014
- Previous message: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?
- Next message: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10 Mar 2014 19:15, "Jurko Gospodnetić" <jurko.gospodnetic at pke.hr> wrote:
Hi all. Python 3.4 introduced a change to Lib/importlib/init.py that added the following code to it:
else: # importlib.bootstrap is the built-in import, ensure we don't create # a second copy of the module. bootstrap.name = 'importlib.bootstrap' bootstrap.package = 'importlib' bootstrap.file = file.replace('init.py', '_bootstrap.py') sys.modules['importlib.bootstrap'] = bootstrap When attempting to use cxFreeze on a project, using Python 3.4. we ran into a problem with 'file' identifier not being defined. Could this be a python bug? Why is this code expecting the module loaded from importlib/init.py to always have a file identifier? What is supposed to happen when that code gets loaded from a ZIP archive?
file is expected to always be set (including when loaded from a zipfile
- in that case it's the zipfile name concatenated with the path within the zip file). If it isn't set, there's a buggy loader involved somewhere that isn't setting it properly.
Cheers, Nick.
Just wanted to check here before filing an issue... but if this is an issue I hope it can be resolved before the final 3.4 release. Best regards, Jurko Gospodnetić
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140310/217076d7/attachment.html>
- Previous message: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?
- Next message: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]