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
Instead of being interpreted as “from current directory import py31compat”, I suppose. The generated binary fails with the following error:
> dist\test.exe
Traceback (most recent call last):
File "C:/msys64/mingw64/lib/python3.8/site-packages\cx_Freeze/initscripts/__startup__.py", line 40, in run
module.run()
File "C:/msys64/mingw64/lib/python3.8/site-packages\cx_Freeze/initscripts/Console.py", line 23, in run
exec(code, {'__name__': '__main__'})
File "test.py", line 1, in <module>
import pkg_resources
File "C:/msys64/mingw64/lib/python3.8/site-packages/pkg_resources/__init__.py", line 79, in <module>
from . import py31compat
ImportError: cannot import name 'py31compat' from partially initialized module 'pkg_resources' (most likely due to a circular import) (C:\msys64\home\appveyor\dist\lib\pkg_resources\__init__.pyc)
Reproducible with the following example, on Widnows mingw64 with python 3.8.0, cx-Freeze 6.0, and setuptools 41.4.0:
Frozen with cxfreeze --include-modules=six test.py &> test.log
Contents of test.log
copying C:/msys64/mingw64/lib/python3.8/site-packages\cx_Freeze/bases/Console.exe -> C:/msys64/home/appveyor/dist/test.exe
copying C:\msys64\mingw64\bin\libpython3.8.dll -> C:/msys64/home/appveyor/dist/libpython3.8.dll
copying C:\msys64\mingw64\bin\libwinpthread-1.dll -> C:/msys64/home/appveyor/dist/libwinpthread-1.dll
writing zip file C:/msys64/home/appveyor/dist/lib/library.zip
Name File
---- ----
m __future__ C:/msys64/mingw64/lib/python3.8/__future__.py
m __startup__ C:/msys64/mingw64/lib/python3.8/site-packages\cx_Freeze/initscripts/__startup__.py
m _abc
m _ast
m _asyncio C:/msys64/mingw64/lib/python3.8/lib-dynload/_asyncio-cpython-38.dll
m _bisect C:/msys64/mingw64/lib/python3.8/lib-dynload/_bisect-cpython-38.dll
m _blake2 C:/msys64/mingw64/lib/python3.8/lib-dynload/_blake2-cpython-38.dll
m _bootlocale C:/msys64/mingw64/lib/python3.8/_bootlocale.py
m _bz2 C:/msys64/mingw64/lib/python3.8/lib-dynload/_bz2-cpython-38.dll
m _codecs
m _codecs_cn C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_cn-cpython-38.dll
m _codecs_hk C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_hk-cpython-38.dll
m _codecs_iso2022 C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_iso2022-cpython-38.dll
m _codecs_jp C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_jp-cpython-38.dll
m _codecs_kr C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_kr-cpython-38.dll
m _codecs_tw C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_tw-cpython-38.dll
m _collections
m _collections_abc C:/msys64/mingw64/lib/python3.8/_collections_abc.py
m _compat_pickle C:/msys64/mingw64/lib/python3.8/_compat_pickle.py
m _compression C:/msys64/mingw64/lib/python3.8/_compression.py
m _contextvars C:/msys64/mingw64/lib/python3.8/lib-dynload/_contextvars-cpython-38.dll
m _csv C:/msys64/mingw64/lib/python3.8/lib-dynload/_csv-cpython-38.dll
m _ctypes C:/msys64/mingw64/lib/python3.8/lib-dynload/_ctypes-cpython-38.dll
m _datetime C:/msys64/mingw64/lib/python3.8/lib-dynload/_datetime-cpython-38.dll
m _decimal C:/msys64/mingw64/lib/python3.8/lib-dynload/_decimal-cpython-38.dll
m _functools
m _hashlib C:/msys64/mingw64/lib/python3.8/lib-dynload/_hashlib-cpython-38.dll
m _heapq C:/msys64/mingw64/lib/python3.8/lib-dynload/_heapq-cpython-38.dll
m _imp
m _io
m _locale
m _lzma C:/msys64/mingw64/lib/python3.8/lib-dynload/_lzma-cpython-38.dll
m _md5 C:/msys64/mingw64/lib/python3.8/lib-dynload/_md5-cpython-38.dll
m _multibytecodec C:/msys64/mingw64/lib/python3.8/lib-dynload/_multibytecodec-cpython-38.dll
m _multiprocessing C:/msys64/mingw64/lib/python3.8/lib-dynload/_multiprocessing-cpython-38.dll
m _opcode C:/msys64/mingw64/lib/python3.8/lib-dynload/_opcode-cpython-38.dll
m _operator
m _overlapped C:/msys64/mingw64/lib/python3.8/lib-dynload/_overlapped-cpython-38.dll
m _pickle C:/msys64/mingw64/lib/python3.8/lib-dynload/_pickle-cpython-38.dll
m _py_abc C:/msys64/mingw64/lib/python3.8/_py_abc.py
m _pydecimal C:/msys64/mingw64/lib/python3.8/_pydecimal.py
m _queue C:/msys64/mingw64/lib/python3.8/lib-dynload/_queue-cpython-38.dll
m _random C:/msys64/mingw64/lib/python3.8/lib-dynload/_random-cpython-38.dll
m _sha1 C:/msys64/mingw64/lib/python3.8/lib-dynload/_sha1-cpython-38.dll
m _sha256 C:/msys64/mingw64/lib/python3.8/lib-dynload/_sha256-cpython-38.dll
m _sha3 C:/msys64/mingw64/lib/python3.8/lib-dynload/_sha3-cpython-38.dll
m _sha512 C:/msys64/mingw64/lib/python3.8/lib-dynload/_sha512-cpython-38.dll
m _signal
m _socket C:/msys64/mingw64/lib/python3.8/lib-dynload/_socket-cpython-38.dll
m _sre
m _ssl C:/msys64/mingw64/lib/python3.8/lib-dynload/_ssl-cpython-38.dll
m _stat
m _string
m _strptime C:/msys64/mingw64/lib/python3.8/_strptime.py
m _struct C:/msys64/mingw64/lib/python3.8/lib-dynload/_struct-cpython-38.dll
m _thread
m _threading_local C:/msys64/mingw64/lib/python3.8/_threading_local.py
m _tracemalloc
m _warnings
m _weakref
m _weakrefset C:/msys64/mingw64/lib/python3.8/_weakrefset.py
m _winapi
m abc C:/msys64/mingw64/lib/python3.8/abc.py
m argparse C:/msys64/mingw64/lib/python3.8/argparse.py
m array C:/msys64/mingw64/lib/python3.8/lib-dynload/array-cpython-38.dll
m ast C:/msys64/mingw64/lib/python3.8/ast.py
P asyncio C:/msys64/mingw64/lib/python3.8/asyncio/__init__.py
m asyncio.__main__ C:/msys64/mingw64/lib/python3.8/asyncio/__main__.py
m asyncio.base_events C:/msys64/mingw64/lib/python3.8/asyncio/base_events.py
m asyncio.base_futures C:/msys64/mingw64/lib/python3.8/asyncio/base_futures.py
m asyncio.base_subprocess C:/msys64/mingw64/lib/python3.8/asyncio/base_subprocess.py
m asyncio.base_tasks C:/msys64/mingw64/lib/python3.8/asyncio/base_tasks.py
m asyncio.constants C:/msys64/mingw64/lib/python3.8/asyncio/constants.py
m asyncio.coroutines C:/msys64/mingw64/lib/python3.8/asyncio/coroutines.py
m asyncio.events C:/msys64/mingw64/lib/python3.8/asyncio/events.py
m asyncio.exceptions C:/msys64/mingw64/lib/python3.8/asyncio/exceptions.py
m asyncio.format_helpers C:/msys64/mingw64/lib/python3.8/asyncio/format_helpers.py
m asyncio.futures C:/msys64/mingw64/lib/python3.8/asyncio/futures.py
m asyncio.locks C:/msys64/mingw64/lib/python3.8/asyncio/locks.py
m asyncio.log C:/msys64/mingw64/lib/python3.8/asyncio/log.py
m asyncio.proactor_events C:/msys64/mingw64/lib/python3.8/asyncio/proactor_events.py
m asyncio.protocols C:/msys64/mingw64/lib/python3.8/asyncio/protocols.py
m asyncio.queues C:/msys64/mingw64/lib/python3.8/asyncio/queues.py
m asyncio.runners C:/msys64/mingw64/lib/python3.8/asyncio/runners.py
m asyncio.selector_events C:/msys64/mingw64/lib/python3.8/asyncio/selector_events.py
m asyncio.sslproto C:/msys64/mingw64/lib/python3.8/asyncio/sslproto.py
m asyncio.staggered C:/msys64/mingw64/lib/python3.8/asyncio/staggered.py
m asyncio.streams C:/msys64/mingw64/lib/python3.8/asyncio/streams.py
m asyncio.subprocess C:/msys64/mingw64/lib/python3.8/asyncio/subprocess.py
m asyncio.tasks C:/msys64/mingw64/lib/python3.8/asyncio/tasks.py
m asyncio.transports C:/msys64/mingw64/lib/python3.8/asyncio/transports.py
m asyncio.trsock C:/msys64/mingw64/lib/python3.8/asyncio/trsock.py
m asyncio.unix_events C:/msys64/mingw64/lib/python3.8/asyncio/unix_events.py
m asyncio.windows_events C:/msys64/mingw64/lib/python3.8/asyncio/windows_events.py
m asyncio.windows_utils C:/msys64/mingw64/lib/python3.8/asyncio/windows_utils.py
m atexit
m base64 C:/msys64/mingw64/lib/python3.8/base64.py
m bdb C:/msys64/mingw64/lib/python3.8/bdb.py
m binascii C:/msys64/mingw64/lib/python3.8/lib-dynload/binascii-cpython-38.dll
m bisect C:/msys64/mingw64/lib/python3.8/bisect.py
m builtins
m bz2 C:/msys64/mingw64/lib/python3.8/bz2.py
m calendar C:/msys64/mingw64/lib/python3.8/calendar.py
m cmd C:/msys64/mingw64/lib/python3.8/cmd.py
m code C:/msys64/mingw64/lib/python3.8/code.py
m codecs C:/msys64/mingw64/lib/python3.8/codecs.py
m codeop C:/msys64/mingw64/lib/python3.8/codeop.py
P collections C:/msys64/mingw64/lib/python3.8/collections/__init__.py
m collections.abc C:/msys64/mingw64/lib/python3.8/collections/abc.py
P concurrent C:/msys64/mingw64/lib/python3.8/concurrent/__init__.py
P concurrent.futures C:/msys64/mingw64/lib/python3.8/concurrent/futures/__init__.py
m concurrent.futures._base C:/msys64/mingw64/lib/python3.8/concurrent/futures/_base.py
m concurrent.futures.process C:/msys64/mingw64/lib/python3.8/concurrent/futures/process.py
m concurrent.futures.thread C:/msys64/mingw64/lib/python3.8/concurrent/futures/thread.py
m configparser C:/msys64/mingw64/lib/python3.8/configparser.py
m contextlib C:/msys64/mingw64/lib/python3.8/contextlib.py
m contextvars C:/msys64/mingw64/lib/python3.8/contextvars.py
m copy C:/msys64/mingw64/lib/python3.8/copy.py
m copyreg C:/msys64/mingw64/lib/python3.8/copyreg.py
m csv C:/msys64/mingw64/lib/python3.8/csv.py
P ctypes C:/msys64/mingw64/lib/python3.8/ctypes/__init__.py
m ctypes._endian C:/msys64/mingw64/lib/python3.8/ctypes/_endian.py
m datetime C:/msys64/mingw64/lib/python3.8/datetime.py
m decimal C:/msys64/mingw64/lib/python3.8/decimal.py
m difflib C:/msys64/mingw64/lib/python3.8/difflib.py
m dis C:/msys64/mingw64/lib/python3.8/dis.py
m doctest C:/msys64/mingw64/lib/python3.8/doctest.py
P email C:/msys64/mingw64/lib/python3.8/email/__init__.py
m email._encoded_words C:/msys64/mingw64/lib/python3.8/email/_encoded_words.py
m email._header_value_parser C:/msys64/mingw64/lib/python3.8/email/_header_value_parser.py
m email._parseaddr C:/msys64/mingw64/lib/python3.8/email/_parseaddr.py
m email._policybase C:/msys64/mingw64/lib/python3.8/email/_policybase.py
m email.base64mime C:/msys64/mingw64/lib/python3.8/email/base64mime.py
m email.charset C:/msys64/mingw64/lib/python3.8/email/charset.py
m email.contentmanager C:/msys64/mingw64/lib/python3.8/email/contentmanager.py
m email.encoders C:/msys64/mingw64/lib/python3.8/email/encoders.py
m email.errors C:/msys64/mingw64/lib/python3.8/email/errors.py
m email.feedparser C:/msys64/mingw64/lib/python3.8/email/feedparser.py
m email.generator C:/msys64/mingw64/lib/python3.8/email/generator.py
m email.header C:/msys64/mingw64/lib/python3.8/email/header.py
m email.headerregistry C:/msys64/mingw64/lib/python3.8/email/headerregistry.py
m email.iterators C:/msys64/mingw64/lib/python3.8/email/iterators.py
m email.message C:/msys64/mingw64/lib/python3.8/email/message.py
m email.parser C:/msys64/mingw64/lib/python3.8/email/parser.py
m email.policy C:/msys64/mingw64/lib/python3.8/email/policy.py
m email.quoprimime C:/msys64/mingw64/lib/python3.8/email/quoprimime.py
m email.utils C:/msys64/mingw64/lib/python3.8/email/utils.py
P encodings C:/msys64/mingw64/lib/python3.8/encodings/__init__.py
m encodings.aliases C:/msys64/mingw64/lib/python3.8/encodings/aliases.py
m encodings.ascii C:/msys64/mingw64/lib/python3.8/encodings/ascii.py
m encodings.base64_codec C:/msys64/mingw64/lib/python3.8/encodings/base64_codec.py
m encodings.big5 C:/msys64/mingw64/lib/python3.8/encodings/big5.py
m encodings.big5hkscs C:/msys64/mingw64/lib/python3.8/encodings/big5hkscs.py
m encodings.bz2_codec C:/msys64/mingw64/lib/python3.8/encodings/bz2_codec.py
m encodings.charmap C:/msys64/mingw64/lib/python3.8/encodings/charmap.py
m encodings.cp037 C:/msys64/mingw64/lib/python3.8/encodings/cp037.py
m encodings.cp1006 C:/msys64/mingw64/lib/python3.8/encodings/cp1006.py
m encodings.cp1026 C:/msys64/mingw64/lib/python3.8/encodings/cp1026.py
m encodings.cp1125 C:/msys64/mingw64/lib/python3.8/encodings/cp1125.py
m encodings.cp1140 C:/msys64/mingw64/lib/python3.8/encodings/cp1140.py
m encodings.cp1250 C:/msys64/mingw64/lib/python3.8/encodings/cp1250.py
m encodings.cp1251 C:/msys64/mingw64/lib/python3.8/encodings/cp1251.py
m encodings.cp1252 C:/msys64/mingw64/lib/python3.8/encodings/cp1252.py
m encodings.cp1253 C:/msys64/mingw64/lib/python3.8/encodings/cp1253.py
m encodings.cp1254 C:/msys64/mingw64/lib/python3.8/encodings/cp1254.py
m encodings.cp1255 C:/msys64/mingw64/lib/python3.8/encodings/cp1255.py
m encodings.cp1256 C:/msys64/mingw64/lib/python3.8/encodings/cp1256.py
m encodings.cp1257 C:/msys64/mingw64/lib/python3.8/encodings/cp1257.py
m encodings.cp1258 C:/msys64/mingw64/lib/python3.8/encodings/cp1258.py
m encodings.cp273 C:/msys64/mingw64/lib/python3.8/encodings/cp273.py
m encodings.cp424 C:/msys64/mingw64/lib/python3.8/encodings/cp424.py
m encodings.cp437 C:/msys64/mingw64/lib/python3.8/encodings/cp437.py
m encodings.cp500 C:/msys64/mingw64/lib/python3.8/encodings/cp500.py
m encodings.cp720 C:/msys64/mingw64/lib/python3.8/encodings/cp720.py
m encodings.cp737 C:/msys64/mingw64/lib/python3.8/encodings/cp737.py
m encodings.cp775 C:/msys64/mingw64/lib/python3.8/encodings/cp775.py
m encodings.cp850 C:/msys64/mingw64/lib/python3.8/encodings/cp850.py
m encodings.cp852 C:/msys64/mingw64/lib/python3.8/encodings/cp852.py
m encodings.cp855 C:/msys64/mingw64/lib/python3.8/encodings/cp855.py
m encodings.cp856 C:/msys64/mingw64/lib/python3.8/encodings/cp856.py
m encodings.cp857 C:/msys64/mingw64/lib/python3.8/encodings/cp857.py
m encodings.cp858 C:/msys64/mingw64/lib/python3.8/encodings/cp858.py
m encodings.cp860 C:/msys64/mingw64/lib/python3.8/encodings/cp860.py
m encodings.cp861 C:/msys64/mingw64/lib/python3.8/encodings/cp861.py
m encodings.cp862 C:/msys64/mingw64/lib/python3.8/encodings/cp862.py
m encodings.cp863 C:/msys64/mingw64/lib/python3.8/encodings/cp863.py
m encodings.cp864 C:/msys64/mingw64/lib/python3.8/encodings/cp864.py
m encodings.cp865 C:/msys64/mingw64/lib/python3.8/encodings/cp865.py
m encodings.cp866 C:/msys64/mingw64/lib/python3.8/encodings/cp866.py
m encodings.cp869 C:/msys64/mingw64/lib/python3.8/encodings/cp869.py
m encodings.cp874 C:/msys64/mingw64/lib/python3.8/encodings/cp874.py
m encodings.cp875 C:/msys64/mingw64/lib/python3.8/encodings/cp875.py
m encodings.cp932 C:/msys64/mingw64/lib/python3.8/encodings/cp932.py
m encodings.cp949 C:/msys64/mingw64/lib/python3.8/encodings/cp949.py
m encodings.cp950 C:/msys64/mingw64/lib/python3.8/encodings/cp950.py
m encodings.euc_jis_2004 C:/msys64/mingw64/lib/python3.8/encodings/euc_jis_2004.py
m encodings.euc_jisx0213 C:/msys64/mingw64/lib/python3.8/encodings/euc_jisx0213.py
m encodings.euc_jp C:/msys64/mingw64/lib/python3.8/encodings/euc_jp.py
m encodings.euc_kr C:/msys64/mingw64/lib/python3.8/encodings/euc_kr.py
m encodings.gb18030 C:/msys64/mingw64/lib/python3.8/encodings/gb18030.py
m encodings.gb2312 C:/msys64/mingw64/lib/python3.8/encodings/gb2312.py
m encodings.gbk C:/msys64/mingw64/lib/python3.8/encodings/gbk.py
m encodings.hex_codec C:/msys64/mingw64/lib/python3.8/encodings/hex_codec.py
m encodings.hp_roman8 C:/msys64/mingw64/lib/python3.8/encodings/hp_roman8.py
m encodings.hz C:/msys64/mingw64/lib/python3.8/encodings/hz.py
m encodings.idna C:/msys64/mingw64/lib/python3.8/encodings/idna.py
m encodings.iso2022_jp C:/msys64/mingw64/lib/python3.8/encodings/iso2022_jp.py
m encodings.iso2022_jp_1 C:/msys64/mingw64/lib/python3.8/encodings/iso2022_jp_1.py
m encodings.iso2022_jp_2 C:/msys64/mingw64/lib/python3.8/encodings/iso2022_jp_2.py
m encodings.iso2022_jp_2004 C:/msys64/mingw64/lib/python3.8/encodings/iso2022_jp_2004.py
m encodings.iso2022_jp_3 C:/msys64/mingw64/lib/python3.8/encodings/iso2022_jp_3.py
m encodings.iso2022_jp_ext C:/msys64/mingw64/lib/python3.8/encodings/iso2022_jp_ext.py
m encodings.iso2022_kr C:/msys64/mingw64/lib/python3.8/encodings/iso2022_kr.py
m encodings.iso8859_1 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_1.py
m encodings.iso8859_10 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_10.py
m encodings.iso8859_11 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_11.py
m encodings.iso8859_13 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_13.py
m encodings.iso8859_14 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_14.py
m encodings.iso8859_15 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_15.py
m encodings.iso8859_16 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_16.py
m encodings.iso8859_2 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_2.py
m encodings.iso8859_3 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_3.py
m encodings.iso8859_4 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_4.py
m encodings.iso8859_5 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_5.py
m encodings.iso8859_6 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_6.py
m encodings.iso8859_7 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_7.py
m encodings.iso8859_8 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_8.py
m encodings.iso8859_9 C:/msys64/mingw64/lib/python3.8/encodings/iso8859_9.py
m encodings.johab C:/msys64/mingw64/lib/python3.8/encodings/johab.py
m encodings.koi8_r C:/msys64/mingw64/lib/python3.8/encodings/koi8_r.py
m encodings.koi8_t C:/msys64/mingw64/lib/python3.8/encodings/koi8_t.py
m encodings.koi8_u C:/msys64/mingw64/lib/python3.8/encodings/koi8_u.py
m encodings.kz1048 C:/msys64/mingw64/lib/python3.8/encodings/kz1048.py
m encodings.latin_1 C:/msys64/mingw64/lib/python3.8/encodings/latin_1.py
m encodings.mac_arabic C:/msys64/mingw64/lib/python3.8/encodings/mac_arabic.py
m encodings.mac_centeuro C:/msys64/mingw64/lib/python3.8/encodings/mac_centeuro.py
m encodings.mac_croatian C:/msys64/mingw64/lib/python3.8/encodings/mac_croatian.py
m encodings.mac_cyrillic C:/msys64/mingw64/lib/python3.8/encodings/mac_cyrillic.py
m encodings.mac_farsi C:/msys64/mingw64/lib/python3.8/encodings/mac_farsi.py
m encodings.mac_greek C:/msys64/mingw64/lib/python3.8/encodings/mac_greek.py
m encodings.mac_iceland C:/msys64/mingw64/lib/python3.8/encodings/mac_iceland.py
m encodings.mac_latin2 C:/msys64/mingw64/lib/python3.8/encodings/mac_latin2.py
m encodings.mac_roman C:/msys64/mingw64/lib/python3.8/encodings/mac_roman.py
m encodings.mac_romanian C:/msys64/mingw64/lib/python3.8/encodings/mac_romanian.py
m encodings.mac_turkish C:/msys64/mingw64/lib/python3.8/encodings/mac_turkish.py
m encodings.mbcs C:/msys64/mingw64/lib/python3.8/encodings/mbcs.py
m encodings.oem C:/msys64/mingw64/lib/python3.8/encodings/oem.py
m encodings.palmos C:/msys64/mingw64/lib/python3.8/encodings/palmos.py
m encodings.ptcp154 C:/msys64/mingw64/lib/python3.8/encodings/ptcp154.py
m encodings.punycode C:/msys64/mingw64/lib/python3.8/encodings/punycode.py
m encodings.quopri_codec C:/msys64/mingw64/lib/python3.8/encodings/quopri_codec.py
m encodings.raw_unicode_escape C:/msys64/mingw64/lib/python3.8/encodings/raw_unicode_escape.py
m encodings.rot_13 C:/msys64/mingw64/lib/python3.8/encodings/rot_13.py
m encodings.shift_jis C:/msys64/mingw64/lib/python3.8/encodings/shift_jis.py
m encodings.shift_jis_2004 C:/msys64/mingw64/lib/python3.8/encodings/shift_jis_2004.py
m encodings.shift_jisx0213 C:/msys64/mingw64/lib/python3.8/encodings/shift_jisx0213.py
m encodings.tis_620 C:/msys64/mingw64/lib/python3.8/encodings/tis_620.py
m encodings.undefined C:/msys64/mingw64/lib/python3.8/encodings/undefined.py
m encodings.unicode_escape C:/msys64/mingw64/lib/python3.8/encodings/unicode_escape.py
m encodings.utf_16 C:/msys64/mingw64/lib/python3.8/encodings/utf_16.py
m encodings.utf_16_be C:/msys64/mingw64/lib/python3.8/encodings/utf_16_be.py
m encodings.utf_16_le C:/msys64/mingw64/lib/python3.8/encodings/utf_16_le.py
m encodings.utf_32 C:/msys64/mingw64/lib/python3.8/encodings/utf_32.py
m encodings.utf_32_be C:/msys64/mingw64/lib/python3.8/encodings/utf_32_be.py
m encodings.utf_32_le C:/msys64/mingw64/lib/python3.8/encodings/utf_32_le.py
m encodings.utf_7 C:/msys64/mingw64/lib/python3.8/encodings/utf_7.py
m encodings.utf_8 C:/msys64/mingw64/lib/python3.8/encodings/utf_8.py
m encodings.utf_8_sig C:/msys64/mingw64/lib/python3.8/encodings/utf_8_sig.py
m encodings.uu_codec C:/msys64/mingw64/lib/python3.8/encodings/uu_codec.py
m encodings.zlib_codec C:/msys64/mingw64/lib/python3.8/encodings/zlib_codec.py
m enum C:/msys64/mingw64/lib/python3.8/enum.py
m errno
m fnmatch C:/msys64/mingw64/lib/python3.8/fnmatch.py
m functools C:/msys64/mingw64/lib/python3.8/functools.py
m gc
m genericpath C:/msys64/mingw64/lib/python3.8/genericpath.py
m getopt C:/msys64/mingw64/lib/python3.8/getopt.py
m gettext C:/msys64/mingw64/lib/python3.8/gettext.py
m glob C:/msys64/mingw64/lib/python3.8/glob.py
m gzip C:/msys64/mingw64/lib/python3.8/gzip.py
m hashlib C:/msys64/mingw64/lib/python3.8/hashlib.py
m heapq C:/msys64/mingw64/lib/python3.8/heapq.py
m hmac C:/msys64/mingw64/lib/python3.8/hmac.py
P html C:/msys64/mingw64/lib/python3.8/html/__init__.py
m html.entities C:/msys64/mingw64/lib/python3.8/html/entities.py
P http C:/msys64/mingw64/lib/python3.8/http/__init__.py
m http.client C:/msys64/mingw64/lib/python3.8/http/client.py
m http.server C:/msys64/mingw64/lib/python3.8/http/server.py
P importlib C:/msys64/mingw64/lib/python3.8/importlib/__init__.py
m importlib._bootstrap C:/msys64/mingw64/lib/python3.8/importlib/_bootstrap.py
m importlib._bootstrap_external C:/msys64/mingw64/lib/python3.8/importlib/_bootstrap_external.py
m importlib.abc C:/msys64/mingw64/lib/python3.8/importlib/abc.py
m importlib.machinery C:/msys64/mingw64/lib/python3.8/importlib/machinery.py
m importlib.metadata C:/msys64/mingw64/lib/python3.8/importlib/metadata.py
m importlib.util C:/msys64/mingw64/lib/python3.8/importlib/util.py
m inspect C:/msys64/mingw64/lib/python3.8/inspect.py
m io C:/msys64/mingw64/lib/python3.8/io.py
m itertools
m keyword C:/msys64/mingw64/lib/python3.8/keyword.py
m linecache C:/msys64/mingw64/lib/python3.8/linecache.py
m locale C:/msys64/mingw64/lib/python3.8/locale.py
P logging C:/msys64/mingw64/lib/python3.8/logging/__init__.py
m lzma C:/msys64/mingw64/lib/python3.8/lzma.py
m marshal
m math C:/msys64/mingw64/lib/python3.8/lib-dynload/math-cpython-38.dll
m mimetypes C:/msys64/mingw64/lib/python3.8/mimetypes.py
m mmap C:/msys64/mingw64/lib/python3.8/lib-dynload/mmap-cpython-38.dll
m msvcrt
P multiprocessing C:/msys64/mingw64/lib/python3.8/multiprocessing/__init__.py
m multiprocessing.connection C:/msys64/mingw64/lib/python3.8/multiprocessing/connection.py
m multiprocessing.context C:/msys64/mingw64/lib/python3.8/multiprocessing/context.py
P multiprocessing.dummy C:/msys64/mingw64/lib/python3.8/multiprocessing/dummy/__init__.py
m multiprocessing.dummy.connection C:/msys64/mingw64/lib/python3.8/multiprocessing/dummy/connection.py
m multiprocessing.forkserver C:/msys64/mingw64/lib/python3.8/multiprocessing/forkserver.py
m multiprocessing.heap C:/msys64/mingw64/lib/python3.8/multiprocessing/heap.py
m multiprocessing.managers C:/msys64/mingw64/lib/python3.8/multiprocessing/managers.py
m multiprocessing.pool C:/msys64/mingw64/lib/python3.8/multiprocessing/pool.py
m multiprocessing.popen_fork C:/msys64/mingw64/lib/python3.8/multiprocessing/popen_fork.py
m multiprocessing.popen_forkserver C:/msys64/mingw64/lib/python3.8/multiprocessing/popen_forkserver.py
m multiprocessing.popen_spawn_posix C:/msys64/mingw64/lib/python3.8/multiprocessing/popen_spawn_posix.py
m multiprocessing.popen_spawn_win32 C:/msys64/mingw64/lib/python3.8/multiprocessing/popen_spawn_win32.py
m multiprocessing.process C:/msys64/mingw64/lib/python3.8/multiprocessing/process.py
m multiprocessing.queues C:/msys64/mingw64/lib/python3.8/multiprocessing/queues.py
m multiprocessing.reduction C:/msys64/mingw64/lib/python3.8/multiprocessing/reduction.py
m multiprocessing.resource_sharer C:/msys64/mingw64/lib/python3.8/multiprocessing/resource_sharer.py
m multiprocessing.resource_tracker C:/msys64/mingw64/lib/python3.8/multiprocessing/resource_tracker.py
m multiprocessing.shared_memory C:/msys64/mingw64/lib/python3.8/multiprocessing/shared_memory.py
m multiprocessing.sharedctypes C:/msys64/mingw64/lib/python3.8/multiprocessing/sharedctypes.py
m multiprocessing.spawn C:/msys64/mingw64/lib/python3.8/multiprocessing/spawn.py
m multiprocessing.synchronize C:/msys64/mingw64/lib/python3.8/multiprocessing/synchronize.py
m multiprocessing.util C:/msys64/mingw64/lib/python3.8/multiprocessing/util.py
m nt
m ntpath C:/msys64/mingw64/lib/python3.8/ntpath.py
m numbers C:/msys64/mingw64/lib/python3.8/numbers.py
m opcode C:/msys64/mingw64/lib/python3.8/opcode.py
m operator C:/msys64/mingw64/lib/python3.8/operator.py
m optparse C:/msys64/mingw64/lib/python3.8/optparse.py
m os C:/msys64/mingw64/lib/python3.8/os.py
m pathlib C:/msys64/mingw64/lib/python3.8/pathlib.py
m pdb C:/msys64/mingw64/lib/python3.8/pdb.py
m pickle C:/msys64/mingw64/lib/python3.8/pickle.py
P pkg_resources C:/msys64/mingw64/lib/python3.8/site-packages/pkg_resources/__init__.py
m pkgutil C:/msys64/mingw64/lib/python3.8/pkgutil.py
m platform C:/msys64/mingw64/lib/python3.8/platform.py
m plistlib C:/msys64/mingw64/lib/python3.8/plistlib.py
m posixpath C:/msys64/mingw64/lib/python3.8/posixpath.py
m pprint C:/msys64/mingw64/lib/python3.8/pprint.py
m py_compile C:/msys64/mingw64/lib/python3.8/py_compile.py
m pydoc C:/msys64/mingw64/lib/python3.8/pydoc.py
P pydoc_data C:/msys64/mingw64/lib/python3.8/pydoc_data/__init__.py
m pydoc_data.topics C:/msys64/mingw64/lib/python3.8/pydoc_data/topics.py
m pyexpat C:/msys64/mingw64/lib/python3.8/lib-dynload/pyexpat-cpython-38.dll
m queue C:/msys64/mingw64/lib/python3.8/queue.py
m quopri C:/msys64/mingw64/lib/python3.8/quopri.py
m random C:/msys64/mingw64/lib/python3.8/random.py
m re C:/msys64/mingw64/lib/python3.8/re.py
m reprlib C:/msys64/mingw64/lib/python3.8/reprlib.py
m runpy C:/msys64/mingw64/lib/python3.8/runpy.py
m secrets C:/msys64/mingw64/lib/python3.8/secrets.py
m select C:/msys64/mingw64/lib/python3.8/lib-dynload/select-cpython-38.dll
m selectors C:/msys64/mingw64/lib/python3.8/selectors.py
m shlex C:/msys64/mingw64/lib/python3.8/shlex.py
m shutil C:/msys64/mingw64/lib/python3.8/shutil.py
m signal C:/msys64/mingw64/lib/python3.8/signal.py
m six C:/msys64/mingw64/lib/python3.8/site-packages/six.py
m socket C:/msys64/mingw64/lib/python3.8/socket.py
m socketserver C:/msys64/mingw64/lib/python3.8/socketserver.py
m sre_compile C:/msys64/mingw64/lib/python3.8/sre_compile.py
m sre_constants C:/msys64/mingw64/lib/python3.8/sre_constants.py
m sre_parse C:/msys64/mingw64/lib/python3.8/sre_parse.py
m ssl C:/msys64/mingw64/lib/python3.8/ssl.py
m stat C:/msys64/mingw64/lib/python3.8/stat.py
m string C:/msys64/mingw64/lib/python3.8/string.py
m stringprep C:/msys64/mingw64/lib/python3.8/stringprep.py
m struct C:/msys64/mingw64/lib/python3.8/struct.py
m subprocess C:/msys64/mingw64/lib/python3.8/subprocess.py
m sys
m tarfile C:/msys64/mingw64/lib/python3.8/tarfile.py
m tempfile C:/msys64/mingw64/lib/python3.8/tempfile.py
m test__init__ C:/msys64/mingw64/lib/python3.8/site-packages\cx_Freeze/initscripts/Console.py
m test__main__ test.py
m textwrap C:/msys64/mingw64/lib/python3.8/textwrap.py
m threading C:/msys64/mingw64/lib/python3.8/threading.py
m time
m token C:/msys64/mingw64/lib/python3.8/token.py
m tokenize C:/msys64/mingw64/lib/python3.8/tokenize.py
m traceback C:/msys64/mingw64/lib/python3.8/traceback.py
m tracemalloc C:/msys64/mingw64/lib/python3.8/tracemalloc.py
m tty C:/msys64/mingw64/lib/python3.8/tty.py
m types C:/msys64/mingw64/lib/python3.8/types.py
m typing C:/msys64/mingw64/lib/python3.8/typing.py
m unicodedata C:/msys64/mingw64/lib/python3.8/lib-dynload/unicodedata-cpython-38.dll
P unittest C:/msys64/mingw64/lib/python3.8/unittest/__init__.py
m unittest.async_case C:/msys64/mingw64/lib/python3.8/unittest/async_case.py
m unittest.case C:/msys64/mingw64/lib/python3.8/unittest/case.py
m unittest.loader C:/msys64/mingw64/lib/python3.8/unittest/loader.py
m unittest.main C:/msys64/mingw64/lib/python3.8/unittest/main.py
m unittest.result C:/msys64/mingw64/lib/python3.8/unittest/result.py
m unittest.runner C:/msys64/mingw64/lib/python3.8/unittest/runner.py
m unittest.signals C:/msys64/mingw64/lib/python3.8/unittest/signals.py
m unittest.suite C:/msys64/mingw64/lib/python3.8/unittest/suite.py
m unittest.util C:/msys64/mingw64/lib/python3.8/unittest/util.py
P urllib C:/msys64/mingw64/lib/python3.8/urllib/__init__.py
m urllib.parse C:/msys64/mingw64/lib/python3.8/urllib/parse.py
m uu C:/msys64/mingw64/lib/python3.8/uu.py
m warnings C:/msys64/mingw64/lib/python3.8/warnings.py
m weakref C:/msys64/mingw64/lib/python3.8/weakref.py
m webbrowser C:/msys64/mingw64/lib/python3.8/webbrowser.py
m winreg
P xml C:/msys64/mingw64/lib/python3.8/xml/__init__.py
P xml.parsers C:/msys64/mingw64/lib/python3.8/xml/parsers/__init__.py
m xml.parsers.expat C:/msys64/mingw64/lib/python3.8/xml/parsers/expat.py
P xmlrpc C:/msys64/mingw64/lib/python3.8/xmlrpc/__init__.py
m xmlrpc.client C:/msys64/mingw64/lib/python3.8/xmlrpc/client.py
m zipfile C:/msys64/mingw64/lib/python3.8/zipfile.py
m zipimport C:/msys64/mingw64/lib/python3.8/zipimport.py
m zlib C:/msys64/mingw64/lib/python3.8/lib-dynload/zlib-cpython-38.dll
Missing modules:
? StringIO imported from six
? __main__ imported from bdb, pdb
? _frozen_importlib imported from importlib, importlib.abc, zipimport
? _frozen_importlib_external imported from importlib, importlib._bootstrap, importlib.abc, zipimport
? _posixshmem imported from multiprocessing.resource_tracker, multiprocessing.shared_memory
? _posixsubprocess imported from multiprocessing.util, subprocess
? _winreg imported from platform
? grp imported from pathlib, shutil, tarfile
? java.lang imported from platform
? multiprocessing.AuthenticationError imported from multiprocessing.connection
? multiprocessing.BufferTooShort imported from multiprocessing.connection
? multiprocessing.TimeoutError imported from multiprocessing.pool
? multiprocessing.get_context imported from multiprocessing.managers, multiprocessing.pool, multiprocessing.sharedctypes
? multiprocessing.get_start_method imported from multiprocessing.spawn
? multiprocessing.set_start_method imported from multiprocessing.spawn
? org.python.core imported from copy, pickle
? os.path imported from os, pkgutil, py_compile, tracemalloc, unittest, unittest.util
? pkg_resources imported from test__main__
? posix imported from os, shutil
? pwd imported from http.server, pathlib, posixpath, shutil, tarfile, webbrowser
? termios imported from tty
? vms_lib imported from platform
This is not necessarily a problem - the modules may not be needed on this platform.
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_asyncio-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_asyncio-cpython-38.dll
copying C:\msys64\mingw64\bin\libpython3.8.dll -> C:/msys64/home/appveyor/dist/lib/libpython3.8.dll
copying C:\msys64\mingw64\bin\libwinpthread-1.dll -> C:/msys64/home/appveyor/dist/lib/libwinpthread-1.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_bisect-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_bisect-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_blake2-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_blake2-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_bz2-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_bz2-cpython-38.dll
copying C:\msys64\mingw64\bin\libbz2-1.dll -> C:/msys64/home/appveyor/dist/lib/libbz2-1.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_cn-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_codecs_cn-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_hk-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_codecs_hk-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_iso2022-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_codecs_iso2022-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_jp-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_codecs_jp-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_kr-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_codecs_kr-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_codecs_tw-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_codecs_tw-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_contextvars-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_contextvars-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_csv-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_csv-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_ctypes-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_ctypes-cpython-38.dll
copying C:\msys64\mingw64\bin\libffi-6.dll -> C:/msys64/home/appveyor/dist/lib/libffi-6.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_datetime-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_datetime-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_decimal-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_decimal-cpython-38.dll
copying C:\msys64\mingw64\bin\libmpdec-2.dll -> C:/msys64/home/appveyor/dist/lib/libmpdec-2.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_hashlib-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_hashlib-cpython-38.dll
copying C:\msys64\mingw64\bin\libcrypto-1_1-x64.dll -> C:/msys64/home/appveyor/dist/lib/libcrypto-1_1-x64.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_heapq-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_heapq-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_lzma-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_lzma-cpython-38.dll
copying C:\msys64\mingw64\bin\liblzma-5.dll -> C:/msys64/home/appveyor/dist/lib/liblzma-5.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_md5-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_md5-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_multibytecodec-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_multibytecodec-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_multiprocessing-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_multiprocessing-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_opcode-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_opcode-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_overlapped-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_overlapped-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_pickle-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_pickle-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_queue-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_queue-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_random-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_random-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_sha1-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_sha1-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_sha256-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_sha256-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_sha3-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_sha3-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_sha512-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_sha512-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_socket-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_socket-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_ssl-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_ssl-cpython-38.dll
copying C:\msys64\mingw64\bin\libssl-1_1-x64.dll -> C:/msys64/home/appveyor/dist/lib/libssl-1_1-x64.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/_struct-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/_struct-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/array-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/array-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/binascii-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/binascii-cpython-38.dll
copying C:\msys64\mingw64\bin\zlib1.dll -> C:/msys64/home/appveyor/dist/lib/zlib1.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/math-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/math-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/mmap-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/mmap-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/pyexpat-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/pyexpat-cpython-38.dll
copying C:\msys64\mingw64\bin\libexpat-1.dll -> C:/msys64/home/appveyor/dist/lib/libexpat-1.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/select-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/select-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/unicodedata-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/unicodedata-cpython-38.dll
copying C:/msys64/mingw64/lib/python3.8/lib-dynload/zlib-cpython-38.dll -> C:/msys64/home/appveyor/dist/lib/zlib-cpython-38.dll
A few notes:
The pkg_resources/__init__.py file appears in the list of identified modules (as a package I beleive because it says P pkg_resources), but not pkg_resources/py31compat.py
pkg_resources also appears as a missing module: ? pkg_resources imported from test__main__
Adding pkg_modules to the include-modules fails because it is not a package, and adding setuptools has no effect (the bug remains).
Expected behaviour: build a binary that fails with ModuleNotFoundError: No module named 'foo'.
A very dirty way to achieve this is:
editing the pkg_resources/__init__.py to remove the import and change py31compat.makdirs to os.makedirs
Compile with cxfreeze --include-modules=six,appdirs,packaging,setuptools,packaging.version,packaging.requirements test.py
The text was updated successfully, but these errors were encountered:
Cimbali
changed the title
circular import in pkg_resources
circular import in pkg_resources on MinGW64 / python3.8
Nov 28, 2019
The following line in pkg_resources seems to be identified as a circular import:
setuptools/pkg_resources/__init__.py
Line 79 in e84f616
Instead of being interpreted as “from current directory import py31compat”, I suppose. The generated binary fails with the following error:
Reproducible with the following example, on Widnows mingw64 with python 3.8.0, cx-Freeze 6.0, and setuptools 41.4.0:
Frozen with
cxfreeze --include-modules=six test.py &> test.log
Contents of test.log
A few notes:
pkg_resources/__init__.py
file appears in the list of identified modules (as a package I beleive because it saysP pkg_resources
), but notpkg_resources/py31compat.py
pkg_resources
also appears as a missing module:? pkg_resources imported from test__main__
pkg_modules
to the include-modules fails because it is not a package, and addingsetuptools
has no effect (the bug remains).Expected behaviour: build a binary that fails with
ModuleNotFoundError: No module named 'foo'
.A very dirty way to achieve this is:
pkg_resources/__init__.py
to remove the import and changepy31compat.makdirs
toos.makedirs
cxfreeze --include-modules=six,appdirs,packaging,setuptools,packaging.version,packaging.requirements test.py
The text was updated successfully, but these errors were encountered: