This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jurko.Gospodnetić
Recipients Arfrever, Jurko.Gospodnetić, barry, christian.heimes, eric.snow, larry, pitrou, python-dev, r.david.murray, rhettinger, serhiy.storchaka, vstinner
Date 2014-03-11.07:45:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394523951.03.0.617694679263.issue20784@psf.upfronthosting.co.za>
In-reply-to
Content
Item possibly related to this. When packaging a simple HelloWorld-like application like this:

  print("Hello world")
  import configparser

using cx_Freeze and Python 3.4, you get the following error on packaged application startup:

Traceback (most recent call last):
  File "C:\Program Files\Python\Python34rc3\lib\site-packages\cx_freeze-4.3.2-py3.4-win-amd64.egg\cx_Freeze\initscripts\Console3.py", line 27, in <module>
    exec(code, m.__dict__)
  File "hello_world.py", line 4, in <module>
  File "C:\Program Files\Python\Python34rc3\lib\importlib\_bootstrap.py", line 2214, in _find_and_load
    return _find_and_load_unlocked(name, import_)
  File "C:\Program Files\Python\Python34rc3\lib\importlib\_bootstrap.py", line 2203, in _find_and_load_unlocked
    module = _SpecMethods(spec)._load_unlocked()
  File "C:\Program Files\Python\Python34rc3\lib\importlib\_bootstrap.py", line 1191, in _load_unlocked
    return self._load_backward_compatible()
  File "C:\Program Files\Python\Python34rc3\lib\importlib\_bootstrap.py", line 1161, in _load_backward_compatible
    spec.loader.load_module(spec.name)
  File "C:\Program Files\Python\Python34rc3\lib\configparser.py", line 121, in <module>
    from collections.abc import MutableMapping
  File "C:\Program Files\Python\Python34rc3\lib\importlib\_bootstrap.py", line 2214, in _find_and_load
    return _find_and_load_unlocked(name, import_)
  File "C:\Program Files\Python\Python34rc3\lib\importlib\_bootstrap.py", line 2201, in _find_and_load_unlocked
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'collections.abc'

  As I see it, the config parser module is attempting to import
'collections.abc'.

  The same does not occur with Python 3.3.5 or 3.3.3.

  Not sure if this is due to something cx_Freeze does so it failed to collect some module in the created installation package, or if it's something to look into in Python itself. Just looked similar to this so I bring it up as additional info for anyone looking deeper into this issue.

  Hope this helps.

  Best regards,
    Jurko Gospodnetić
History
Date User Action Args
2014-03-11 07:45:51Jurko.Gospodnetićsetrecipients: + Jurko.Gospodnetić, barry, rhettinger, pitrou, vstinner, larry, christian.heimes, Arfrever, r.david.murray, python-dev, eric.snow, serhiy.storchaka
2014-03-11 07:45:51Jurko.Gospodnetićsetmessageid: <1394523951.03.0.617694679263.issue20784@psf.upfronthosting.co.za>
2014-03-11 07:45:51Jurko.Gospodnetićlinkissue20784 messages
2014-03-11 07:45:49Jurko.Gospodnetićcreate