I don't understand what's happening here...
I use ConfigObj to read .ini files. It calls module 'six' for py2/py3
compatibility. I'm getting this error when running frozen:
Traceback (most recent call last):
File "<string>", line 21, in <module>
File
"c:\dev\virtenvs\auction\Lib\site-packages\PyInstaller\loader\pyi_importers.py",
line 270, in load_module
exec(bytecode, module.__dict__)
File "packaging/build\main\out00-PYZ.pyz\controller", line 26, in <module>
File
"c:\dev\virtenvs\auction\Lib\site-packages\PyInstaller\loader\pyi_importers.py",
line 270, in load_module
exec(bytecode, module.__dict__)
File "packaging/build\main\out00-PYZ.pyz\options", line 32, in <module>
File "packaging/build\main\out00-PYZ.pyz\configobj", line 1228, in
__init__
File "packaging/build\main\out00-PYZ.pyz\configobj", line 1286, in _load
File "packaging/build\main\out00-PYZ.pyz\configobj", line 1476, in
_handle_bom
AttributeError: 'module' object has no attribute 'PY2'
configobj.py just contains these:
import six
...
if six.PY2 and isinstance(line, str): # line 1476
six.py just contains this:
PY2 = sys.version_info[0] == 2
There doesn't seem to be anything unusual going on here (e.g. no hidden
imports, etc.). Very straightforward. I tried adding 'six' to the list of
hidden imports with no joy.
Any suggestions on why the symbol PY2 is not showing up in six?
I'm on Win 7 x64 running Python 2.7.6 x32 with PyInstaller loaded from
github master this afternoon.
Thanks,
Michael
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.