Closed anthony-tuininga closed 5 years ago
Original comment by Ivan Y (Bitbucket: klensy, GitHub: klensy):
Can reproduce this on Windows under virtualenv. If build it without virtualenv, it works fine.
Python 2.7.13, cx_Freeze 5.0.1
Steps:
Create virtualenv:
#!bash
virtualenv venv
then activate it. Next steps under virtualenv.
Create hello.py which contents:
#!python
print "hello"
Then setup.py:
#!python
from cx_Freeze import setup, Executable
hello_app = Executable(
script="hello.py",
)
setup(
name="hello",
version="0.1",
author='author',
description="hello app",
executables=[hello_app]
)
Build app with
#!bash
python setup.py build
build logs:
#!text
(venv) e:\Projs\hello>python setup.py build
running build
running build_exe
creating directory build\exe.win32-2.7
copying e:\Projs\hello\venv\lib\site-packages\cx_Freeze\bases\Console.exe -> build\exe.win32-2.7\hello.exe
copying C:\Windows\system32\python27.dll -> build\exe.win32-2.7\python27.dll
*** WARNING *** unable to create version resource
install pywin32 extensions first
writing zip file build\exe.win32-2.7\libs\python27.zip
Name File
---- ----
m BUILD_CONSTANTS
m StringIO c:\python27\Lib\StringIO.py
m UserDict e:\Projs\hello\venv\lib\UserDict.py
m __builtin__
m __future__ c:\python27\Lib\__future__.py
m __main__
m __startup__ e:\Projs\hello\venv\lib\site-packages\cx_Freeze\initscripts\__startup__.py
m _abcoll e:\Projs\hello\venv\lib\_abcoll.py
m _codecs
m _codecs_cn
m _codecs_hk
m _codecs_iso2022
m _codecs_jp
m _codecs_kr
m _codecs_tw
m _collections
m _functools
m _hashlib c:\python27\DLLs\_hashlib.pyd
m _heapq
m _io
m _locale
m _md5
m _multibytecodec
m _random
m _sha
m _sha256
m _sha512
m _sre
m _strptime c:\python27\Lib\_strptime.py
m _struct
m _subprocess
m _threading_local c:\python27\Lib\_threading_local.py
m _warnings
m _weakref
m _weakrefset e:\Projs\hello\venv\lib\_weakrefset.py
m abc e:\Projs\hello\venv\lib\abc.py
m array
m atexit c:\python27\Lib\atexit.py
m base64 c:\python27\Lib\base64.py
m bdb c:\python27\Lib\bdb.py
m binascii
m bz2 c:\python27\DLLs\bz2.pyd
m cPickle
m cStringIO
m calendar c:\python27\Lib\calendar.py
m cmd c:\python27\Lib\cmd.py
m codecs e:\Projs\hello\venv\lib\codecs.py
m collections c:\python27\Lib\collections.py
m copy c:\python27\Lib\copy.py
m copy_reg e:\Projs\hello\venv\lib\copy_reg.py
m datetime
m difflib c:\python27\Lib\difflib.py
m dis c:\python27\Lib\dis.py
m doctest c:\python27\Lib\doctest.py
m dummy_thread c:\python27\Lib\dummy_thread.py
P encodings e:\Projs\hello\venv\lib\encodings\__init__.py
m encodings.aliases e:\Projs\hello\venv\lib\encodings\aliases.py
m encodings.ascii e:\Projs\hello\venv\lib\encodings\ascii.py
m encodings.base64_codec e:\Projs\hello\venv\lib\encodings\base64_codec.py
m encodings.big5 e:\Projs\hello\venv\lib\encodings\big5.py
m encodings.big5hkscs e:\Projs\hello\venv\lib\encodings\big5hkscs.py
m encodings.bz2_codec e:\Projs\hello\venv\lib\encodings\bz2_codec.py
m encodings.charmap e:\Projs\hello\venv\lib\encodings\charmap.py
m encodings.cp037 e:\Projs\hello\venv\lib\encodings\cp037.py
m encodings.cp1006 e:\Projs\hello\venv\lib\encodings\cp1006.py
m encodings.cp1026 e:\Projs\hello\venv\lib\encodings\cp1026.py
m encodings.cp1140 e:\Projs\hello\venv\lib\encodings\cp1140.py
m encodings.cp1250 e:\Projs\hello\venv\lib\encodings\cp1250.py
m encodings.cp1251 e:\Projs\hello\venv\lib\encodings\cp1251.py
m encodings.cp1252 e:\Projs\hello\venv\lib\encodings\cp1252.py
m encodings.cp1253 e:\Projs\hello\venv\lib\encodings\cp1253.py
m encodings.cp1254 e:\Projs\hello\venv\lib\encodings\cp1254.py
m encodings.cp1255 e:\Projs\hello\venv\lib\encodings\cp1255.py
m encodings.cp1256 e:\Projs\hello\venv\lib\encodings\cp1256.py
m encodings.cp1257 e:\Projs\hello\venv\lib\encodings\cp1257.py
m encodings.cp1258 e:\Projs\hello\venv\lib\encodings\cp1258.py
m encodings.cp424 e:\Projs\hello\venv\lib\encodings\cp424.py
m encodings.cp437 e:\Projs\hello\venv\lib\encodings\cp437.py
m encodings.cp500 e:\Projs\hello\venv\lib\encodings\cp500.py
m encodings.cp720 e:\Projs\hello\venv\lib\encodings\cp720.py
m encodings.cp737 e:\Projs\hello\venv\lib\encodings\cp737.py
m encodings.cp775 e:\Projs\hello\venv\lib\encodings\cp775.py
m encodings.cp850 e:\Projs\hello\venv\lib\encodings\cp850.py
m encodings.cp852 e:\Projs\hello\venv\lib\encodings\cp852.py
m encodings.cp855 e:\Projs\hello\venv\lib\encodings\cp855.py
m encodings.cp856 e:\Projs\hello\venv\lib\encodings\cp856.py
m encodings.cp857 e:\Projs\hello\venv\lib\encodings\cp857.py
m encodings.cp858 e:\Projs\hello\venv\lib\encodings\cp858.py
m encodings.cp860 e:\Projs\hello\venv\lib\encodings\cp860.py
m encodings.cp861 e:\Projs\hello\venv\lib\encodings\cp861.py
m encodings.cp862 e:\Projs\hello\venv\lib\encodings\cp862.py
m encodings.cp863 e:\Projs\hello\venv\lib\encodings\cp863.py
m encodings.cp864 e:\Projs\hello\venv\lib\encodings\cp864.py
m encodings.cp865 e:\Projs\hello\venv\lib\encodings\cp865.py
m encodings.cp866 e:\Projs\hello\venv\lib\encodings\cp866.py
m encodings.cp869 e:\Projs\hello\venv\lib\encodings\cp869.py
m encodings.cp874 e:\Projs\hello\venv\lib\encodings\cp874.py
m encodings.cp875 e:\Projs\hello\venv\lib\encodings\cp875.py
m encodings.cp932 e:\Projs\hello\venv\lib\encodings\cp932.py
m encodings.cp949 e:\Projs\hello\venv\lib\encodings\cp949.py
m encodings.cp950 e:\Projs\hello\venv\lib\encodings\cp950.py
m encodings.euc_jis_2004 e:\Projs\hello\venv\lib\encodings\euc_jis_2004.py
m encodings.euc_jisx0213 e:\Projs\hello\venv\lib\encodings\euc_jisx0213.py
m encodings.euc_jp e:\Projs\hello\venv\lib\encodings\euc_jp.py
m encodings.euc_kr e:\Projs\hello\venv\lib\encodings\euc_kr.py
m encodings.gb18030 e:\Projs\hello\venv\lib\encodings\gb18030.py
m encodings.gb2312 e:\Projs\hello\venv\lib\encodings\gb2312.py
m encodings.gbk e:\Projs\hello\venv\lib\encodings\gbk.py
m encodings.hex_codec e:\Projs\hello\venv\lib\encodings\hex_codec.py
m encodings.hp_roman8 e:\Projs\hello\venv\lib\encodings\hp_roman8.py
m encodings.hz e:\Projs\hello\venv\lib\encodings\hz.py
m encodings.idna e:\Projs\hello\venv\lib\encodings\idna.py
m encodings.iso2022_jp e:\Projs\hello\venv\lib\encodings\iso2022_jp.py
m encodings.iso2022_jp_1 e:\Projs\hello\venv\lib\encodings\iso2022_jp_1.py
m encodings.iso2022_jp_2 e:\Projs\hello\venv\lib\encodings\iso2022_jp_2.py
m encodings.iso2022_jp_2004 e:\Projs\hello\venv\lib\encodings\iso2022_jp_2004.py
m encodings.iso2022_jp_3 e:\Projs\hello\venv\lib\encodings\iso2022_jp_3.py
m encodings.iso2022_jp_ext e:\Projs\hello\venv\lib\encodings\iso2022_jp_ext.py
m encodings.iso2022_kr e:\Projs\hello\venv\lib\encodings\iso2022_kr.py
m encodings.iso8859_1 e:\Projs\hello\venv\lib\encodings\iso8859_1.py
m encodings.iso8859_10 e:\Projs\hello\venv\lib\encodings\iso8859_10.py
m encodings.iso8859_11 e:\Projs\hello\venv\lib\encodings\iso8859_11.py
m encodings.iso8859_13 e:\Projs\hello\venv\lib\encodings\iso8859_13.py
m encodings.iso8859_14 e:\Projs\hello\venv\lib\encodings\iso8859_14.py
m encodings.iso8859_15 e:\Projs\hello\venv\lib\encodings\iso8859_15.py
m encodings.iso8859_16 e:\Projs\hello\venv\lib\encodings\iso8859_16.py
m encodings.iso8859_2 e:\Projs\hello\venv\lib\encodings\iso8859_2.py
m encodings.iso8859_3 e:\Projs\hello\venv\lib\encodings\iso8859_3.py
m encodings.iso8859_4 e:\Projs\hello\venv\lib\encodings\iso8859_4.py
m encodings.iso8859_5 e:\Projs\hello\venv\lib\encodings\iso8859_5.py
m encodings.iso8859_6 e:\Projs\hello\venv\lib\encodings\iso8859_6.py
m encodings.iso8859_7 e:\Projs\hello\venv\lib\encodings\iso8859_7.py
m encodings.iso8859_8 e:\Projs\hello\venv\lib\encodings\iso8859_8.py
m encodings.iso8859_9 e:\Projs\hello\venv\lib\encodings\iso8859_9.py
m encodings.johab e:\Projs\hello\venv\lib\encodings\johab.py
m encodings.koi8_r e:\Projs\hello\venv\lib\encodings\koi8_r.py
m encodings.koi8_u e:\Projs\hello\venv\lib\encodings\koi8_u.py
m encodings.latin_1 e:\Projs\hello\venv\lib\encodings\latin_1.py
m encodings.mac_arabic e:\Projs\hello\venv\lib\encodings\mac_arabic.py
m encodings.mac_centeuro e:\Projs\hello\venv\lib\encodings\mac_centeuro.py
m encodings.mac_croatian e:\Projs\hello\venv\lib\encodings\mac_croatian.py
m encodings.mac_cyrillic e:\Projs\hello\venv\lib\encodings\mac_cyrillic.py
m encodings.mac_farsi e:\Projs\hello\venv\lib\encodings\mac_farsi.py
m encodings.mac_greek e:\Projs\hello\venv\lib\encodings\mac_greek.py
m encodings.mac_iceland e:\Projs\hello\venv\lib\encodings\mac_iceland.py
m encodings.mac_latin2 e:\Projs\hello\venv\lib\encodings\mac_latin2.py
m encodings.mac_roman e:\Projs\hello\venv\lib\encodings\mac_roman.py
m encodings.mac_romanian e:\Projs\hello\venv\lib\encodings\mac_romanian.py
m encodings.mac_turkish e:\Projs\hello\venv\lib\encodings\mac_turkish.py
m encodings.mbcs e:\Projs\hello\venv\lib\encodings\mbcs.py
m encodings.palmos e:\Projs\hello\venv\lib\encodings\palmos.py
m encodings.ptcp154 e:\Projs\hello\venv\lib\encodings\ptcp154.py
m encodings.punycode e:\Projs\hello\venv\lib\encodings\punycode.py
m encodings.quopri_codec e:\Projs\hello\venv\lib\encodings\quopri_codec.py
m encodings.raw_unicode_escape e:\Projs\hello\venv\lib\encodings\raw_unicode_escape.py
m encodings.rot_13 e:\Projs\hello\venv\lib\encodings\rot_13.py
m encodings.shift_jis e:\Projs\hello\venv\lib\encodings\shift_jis.py
m encodings.shift_jis_2004 e:\Projs\hello\venv\lib\encodings\shift_jis_2004.py
m encodings.shift_jisx0213 e:\Projs\hello\venv\lib\encodings\shift_jisx0213.py
m encodings.string_escape e:\Projs\hello\venv\lib\encodings\string_escape.py
m encodings.tis_620 e:\Projs\hello\venv\lib\encodings\tis_620.py
m encodings.undefined e:\Projs\hello\venv\lib\encodings\undefined.py
m encodings.unicode_escape e:\Projs\hello\venv\lib\encodings\unicode_escape.py
m encodings.unicode_internal e:\Projs\hello\venv\lib\encodings\unicode_internal.py
m encodings.utf_16 e:\Projs\hello\venv\lib\encodings\utf_16.py
m encodings.utf_16_be e:\Projs\hello\venv\lib\encodings\utf_16_be.py
m encodings.utf_16_le e:\Projs\hello\venv\lib\encodings\utf_16_le.py
m encodings.utf_32 e:\Projs\hello\venv\lib\encodings\utf_32.py
m encodings.utf_32_be e:\Projs\hello\venv\lib\encodings\utf_32_be.py
m encodings.utf_32_le e:\Projs\hello\venv\lib\encodings\utf_32_le.py
m encodings.utf_7 e:\Projs\hello\venv\lib\encodings\utf_7.py
m encodings.utf_8 e:\Projs\hello\venv\lib\encodings\utf_8.py
m encodings.utf_8_sig e:\Projs\hello\venv\lib\encodings\utf_8_sig.py
m encodings.uu_codec e:\Projs\hello\venv\lib\encodings\uu_codec.py
m encodings.zlib_codec e:\Projs\hello\venv\lib\encodings\zlib_codec.py
m errno
m exceptions
m fnmatch e:\Projs\hello\venv\lib\fnmatch.py
m functools c:\python27\Lib\functools.py
m gc
m genericpath e:\Projs\hello\venv\lib\genericpath.py
m getopt c:\python27\Lib\getopt.py
m gettext c:\python27\Lib\gettext.py
m hashlib c:\python27\Lib\hashlib.py
m heapq c:\python27\Lib\heapq.py
m hello__init__ e:\Projs\hello\venv\lib\site-packages\cx_Freeze\initscripts\Console.py
m hello__main__ hello.py
m imp
m inspect c:\python27\Lib\inspect.py
m io c:\python27\Lib\io.py
m itertools
m keyword c:\python27\Lib\keyword.py
m linecache e:\Projs\hello\venv\lib\linecache.py
m locale e:\Projs\hello\venv\lib\locale.py
P logging c:\python27\Lib\logging\__init__.py
m marshal
m math
m msvcrt
m nt
m ntpath e:\Projs\hello\venv\lib\ntpath.py
m opcode c:\python27\Lib\opcode.py
m operator
m optparse c:\python27\Lib\optparse.py
m os e:\Projs\hello\venv\lib\os.py
m pdb c:\python27\Lib\pdb.py
m pickle c:\python27\Lib\pickle.py
m posixpath e:\Projs\hello\venv\lib\posixpath.py
m pprint c:\python27\Lib\pprint.py
m quopri c:\python27\Lib\quopri.py
m random c:\python27\Lib\random.py
m re e:\Projs\hello\venv\lib\re.py
m repr c:\python27\Lib\repr.py
m select c:\python27\DLLs\select.pyd
m shlex c:\python27\Lib\shlex.py
m signal
m sre_compile e:\Projs\hello\venv\lib\sre_compile.py
m sre_constants e:\Projs\hello\venv\lib\sre_constants.py
m sre_parse e:\Projs\hello\venv\lib\sre_parse.py
m stat e:\Projs\hello\venv\lib\stat.py
m string c:\python27\Lib\string.py
m stringprep c:\python27\Lib\stringprep.py
m strop
m struct c:\python27\Lib\struct.py
m subprocess c:\python27\Lib\subprocess.py
m sys
m tempfile c:\python27\Lib\tempfile.py
m textwrap c:\python27\Lib\textwrap.py
m thread
m threading c:\python27\Lib\threading.py
m time
m token c:\python27\Lib\token.py
m tokenize c:\python27\Lib\tokenize.py
m traceback c:\python27\Lib\traceback.py
m types e:\Projs\hello\venv\lib\types.py
m unicodedata c:\python27\DLLs\unicodedata.pyd
P unittest c:\python27\Lib\unittest\__init__.py
m unittest.case c:\python27\Lib\unittest\case.py
m unittest.loader c:\python27\Lib\unittest\loader.py
m unittest.main c:\python27\Lib\unittest\main.py
m unittest.result c:\python27\Lib\unittest\result.py
m unittest.runner c:\python27\Lib\unittest\runner.py
m unittest.signals c:\python27\Lib\unittest\signals.py
m unittest.suite c:\python27\Lib\unittest\suite.py
m unittest.util c:\python27\Lib\unittest\util.py
m warnings e:\Projs\hello\venv\lib\warnings.py
m weakref c:\python27\Lib\weakref.py
m zipimport
m zlib
Missing modules:
? _emx_link imported from os
? ce imported from os
? fcntl imported from subprocess
? org.python.core imported from copy, pickle
? os.path imported from os, shlex
? os2 imported from os
? os2emxpath imported from os
? posix imported from os
? pwd imported from posixpath
? riscos imported from os
? riscosenviron imported from os
? riscospath imported from os
This is not necessarily a problem - the modules may not be needed on this platform.
creating directory build\exe.win32-2.7\libs
Copying data from package encodings...
Copying data from package logging...
Copying data from package unittest...
copying c:\python27\DLLs\_hashlib.pyd -> build\exe.win32-2.7\libs\_hashlib.pyd
copying c:\python27\DLLs\bz2.pyd -> build\exe.win32-2.7\libs\bz2.pyd
copying c:\python27\DLLs\select.pyd -> build\exe.win32-2.7\libs\select.pyd
copying c:\python27\DLLs\unicodedata.pyd -> build\exe.win32-2.7\libs\unicodedata.pyd
(venv) e:\Projs\hello>
Then, if i run this:
#!text
(venv) e:\Projs\hello\build\exe.win32-2.7>hello
ImportError: No module named __startup__
(venv) e:\Projs\hello\build\exe.win32-2.7>
Btw, under virtualenv, cx_Freeze generate different file structure, that without venv.
under venv:
#!text
hello.exe libs python27.dll
where all files in libs folder
And without venv:
#!text
_hashlib.pyd encodings logging python27.zip unicodedata.pyd
bz2.pyd hello.exe python27.dll select.pyd unittest
Original comment by Anthony Tuininga (Bitbucket: anthony_tuininga, GitHub: Unknown):
Looks like you might be using your own compiled version of Python (/usr/local/lib) which uses "lib" whereas the "main" python uses "lib64". These might be conflicting. Can you add a symbolic link in your build/exe.linux-x86_64-2.7 directory from "lib" to "lib64" and see if the modules are miraculously found at that point? Thanks.
Original comment by Kirago (Bitbucket: Kirago, GitHub: Unknown):
and logs:
#!log
running build
running build_exe
creating directory build/exe.linux-x86_64-2.7
copying /usr/local/lib/python2.7/site-packages/cx_Freeze/bases/Console -> build/exe.linux-x86_64-2.7/dcos_resource
writing zip file build/exe.linux-x86_64-2.7/lib/python27.zip
Name File
---- ----
m BUILD_CONSTANTS
m StringIO /usr/local/lib/python2.7/StringIO.py
m UserDict /usr/local/lib/python2.7/UserDict.py
m __builtin__
m __future__ /usr/local/lib/python2.7/__future__.py
m __main__
m __startup__ /usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/__startup__.py
m _abcoll /usr/local/lib/python2.7/_abcoll.py
m _bisect /usr/local/lib/python2.7/lib-dynload/_bisect.so
m _codecs
m _codecs_cn /usr/local/lib/python2.7/lib-dynload/_codecs_cn.so
m _codecs_hk /usr/local/lib/python2.7/lib-dynload/_codecs_hk.so
m _codecs_iso2022 /usr/local/lib/python2.7/lib-dynload/_codecs_iso2022.so
m _codecs_jp /usr/local/lib/python2.7/lib-dynload/_codecs_jp.so
m _codecs_kr /usr/local/lib/python2.7/lib-dynload/_codecs_kr.so
m _codecs_tw /usr/local/lib/python2.7/lib-dynload/_codecs_tw.so
m _collections /usr/local/lib/python2.7/lib-dynload/_collections.so
m _functools /usr/local/lib/python2.7/lib-dynload/_functools.so
m _hashlib /usr/local/lib/python2.7/lib-dynload/_hashlib.so
m _heapq /usr/local/lib/python2.7/lib-dynload/_heapq.so
m _locale /usr/local/lib/python2.7/lib-dynload/_locale.so
m _multibytecodec /usr/local/lib/python2.7/lib-dynload/_multibytecodec.so
m _random /usr/local/lib/python2.7/lib-dynload/_random.so
m _sre
m _strptime /usr/local/lib/python2.7/_strptime.py
m _struct /usr/local/lib/python2.7/lib-dynload/_struct.so
m _threading_local /usr/local/lib/python2.7/_threading_local.py
m _warnings
m _weakref
m _weakrefset /usr/local/lib/python2.7/_weakrefset.py
m abc /usr/local/lib/python2.7/abc.py
m array /usr/local/lib/python2.7/lib-dynload/array.so
m atexit /usr/local/lib/python2.7/atexit.py
m base64 /usr/local/lib/python2.7/base64.py
m bdb /usr/local/lib/python2.7/bdb.py
m binascii /usr/local/lib/python2.7/lib-dynload/binascii.so
m bisect /usr/local/lib/python2.7/bisect.py
m cPickle /usr/local/lib/python2.7/lib-dynload/cPickle.so
m cStringIO /usr/local/lib/python2.7/lib-dynload/cStringIO.so
m calendar /usr/local/lib/python2.7/calendar.py
m cmd /usr/local/lib/python2.7/cmd.py
m codecs /usr/local/lib/python2.7/codecs.py
m collections /usr/local/lib/python2.7/collections.py
m copy /usr/local/lib/python2.7/copy.py
m copy_reg /usr/local/lib/python2.7/copy_reg.py
m datetime /usr/local/lib/python2.7/lib-dynload/datetime.so
m dcos_resource__init__ /usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py
m dcos_resource__main__ dcos_resource.py
m difflib /usr/local/lib/python2.7/difflib.py
m dis /usr/local/lib/python2.7/dis.py
m doctest /usr/local/lib/python2.7/doctest.py
m dummy_thread /usr/local/lib/python2.7/dummy_thread.py
P encodings /usr/local/lib/python2.7/encodings/__init__.py
m encodings.aliases /usr/local/lib/python2.7/encodings/aliases.py
m encodings.ascii /usr/local/lib/python2.7/encodings/ascii.py
m encodings.base64_codec /usr/local/lib/python2.7/encodings/base64_codec.py
m encodings.big5 /usr/local/lib/python2.7/encodings/big5.py
m encodings.big5hkscs /usr/local/lib/python2.7/encodings/big5hkscs.py
m encodings.bz2_codec /usr/local/lib/python2.7/encodings/bz2_codec.py
m encodings.charmap /usr/local/lib/python2.7/encodings/charmap.py
m encodings.cp037 /usr/local/lib/python2.7/encodings/cp037.py
m encodings.cp1006 /usr/local/lib/python2.7/encodings/cp1006.py
m encodings.cp1026 /usr/local/lib/python2.7/encodings/cp1026.py
m encodings.cp1140 /usr/local/lib/python2.7/encodings/cp1140.py
m encodings.cp1250 /usr/local/lib/python2.7/encodings/cp1250.py
m encodings.cp1251 /usr/local/lib/python2.7/encodings/cp1251.py
m encodings.cp1252 /usr/local/lib/python2.7/encodings/cp1252.py
m encodings.cp1253 /usr/local/lib/python2.7/encodings/cp1253.py
m encodings.cp1254 /usr/local/lib/python2.7/encodings/cp1254.py
m encodings.cp1255 /usr/local/lib/python2.7/encodings/cp1255.py
m encodings.cp1256 /usr/local/lib/python2.7/encodings/cp1256.py
m encodings.cp1257 /usr/local/lib/python2.7/encodings/cp1257.py
m encodings.cp1258 /usr/local/lib/python2.7/encodings/cp1258.py
m encodings.cp424 /usr/local/lib/python2.7/encodings/cp424.py
m encodings.cp437 /usr/local/lib/python2.7/encodings/cp437.py
m encodings.cp500 /usr/local/lib/python2.7/encodings/cp500.py
m encodings.cp720 /usr/local/lib/python2.7/encodings/cp720.py
m encodings.cp737 /usr/local/lib/python2.7/encodings/cp737.py
m encodings.cp775 /usr/local/lib/python2.7/encodings/cp775.py
m encodings.cp850 /usr/local/lib/python2.7/encodings/cp850.py
m encodings.cp852 /usr/local/lib/python2.7/encodings/cp852.py
m encodings.cp855 /usr/local/lib/python2.7/encodings/cp855.py
m encodings.cp856 /usr/local/lib/python2.7/encodings/cp856.py
m encodings.cp857 /usr/local/lib/python2.7/encodings/cp857.py
m encodings.cp858 /usr/local/lib/python2.7/encodings/cp858.py
m encodings.cp860 /usr/local/lib/python2.7/encodings/cp860.py
m encodings.cp861 /usr/local/lib/python2.7/encodings/cp861.py
m encodings.cp862 /usr/local/lib/python2.7/encodings/cp862.py
m encodings.cp863 /usr/local/lib/python2.7/encodings/cp863.py
m encodings.cp864 /usr/local/lib/python2.7/encodings/cp864.py
m encodings.cp865 /usr/local/lib/python2.7/encodings/cp865.py
m encodings.cp866 /usr/local/lib/python2.7/encodings/cp866.py
m encodings.cp869 /usr/local/lib/python2.7/encodings/cp869.py
m encodings.cp874 /usr/local/lib/python2.7/encodings/cp874.py
m encodings.cp875 /usr/local/lib/python2.7/encodings/cp875.py
m encodings.cp932 /usr/local/lib/python2.7/encodings/cp932.py
m encodings.cp949 /usr/local/lib/python2.7/encodings/cp949.py
m encodings.cp950 /usr/local/lib/python2.7/encodings/cp950.py
m encodings.euc_jis_2004 /usr/local/lib/python2.7/encodings/euc_jis_2004.py
m encodings.euc_jisx0213 /usr/local/lib/python2.7/encodings/euc_jisx0213.py
m encodings.euc_jp /usr/local/lib/python2.7/encodings/euc_jp.py
m encodings.euc_kr /usr/local/lib/python2.7/encodings/euc_kr.py
m encodings.gb18030 /usr/local/lib/python2.7/encodings/gb18030.py
m encodings.gb2312 /usr/local/lib/python2.7/encodings/gb2312.py
m encodings.gbk /usr/local/lib/python2.7/encodings/gbk.py
m encodings.hex_codec /usr/local/lib/python2.7/encodings/hex_codec.py
m encodings.hp_roman8 /usr/local/lib/python2.7/encodings/hp_roman8.py
m encodings.hz /usr/local/lib/python2.7/encodings/hz.py
m encodings.idna /usr/local/lib/python2.7/encodings/idna.py
m encodings.iso2022_jp /usr/local/lib/python2.7/encodings/iso2022_jp.py
m encodings.iso2022_jp_1 /usr/local/lib/python2.7/encodings/iso2022_jp_1.py
m encodings.iso2022_jp_2 /usr/local/lib/python2.7/encodings/iso2022_jp_2.py
m encodings.iso2022_jp_2004 /usr/local/lib/python2.7/encodings/iso2022_jp_2004.py
m encodings.iso2022_jp_3 /usr/local/lib/python2.7/encodings/iso2022_jp_3.py
m encodings.iso2022_jp_ext /usr/local/lib/python2.7/encodings/iso2022_jp_ext.py
m encodings.iso2022_kr /usr/local/lib/python2.7/encodings/iso2022_kr.py
m encodings.iso8859_1 /usr/local/lib/python2.7/encodings/iso8859_1.py
m encodings.iso8859_10 /usr/local/lib/python2.7/encodings/iso8859_10.py
m encodings.iso8859_11 /usr/local/lib/python2.7/encodings/iso8859_11.py
m encodings.iso8859_13 /usr/local/lib/python2.7/encodings/iso8859_13.py
m encodings.iso8859_14 /usr/local/lib/python2.7/encodings/iso8859_14.py
m encodings.iso8859_15 /usr/local/lib/python2.7/encodings/iso8859_15.py
m encodings.iso8859_16 /usr/local/lib/python2.7/encodings/iso8859_16.py
m encodings.iso8859_2 /usr/local/lib/python2.7/encodings/iso8859_2.py
m encodings.iso8859_3 /usr/local/lib/python2.7/encodings/iso8859_3.py
m encodings.iso8859_4 /usr/local/lib/python2.7/encodings/iso8859_4.py
m encodings.iso8859_5 /usr/local/lib/python2.7/encodings/iso8859_5.py
m encodings.iso8859_6 /usr/local/lib/python2.7/encodings/iso8859_6.py
m encodings.iso8859_7 /usr/local/lib/python2.7/encodings/iso8859_7.py
m encodings.iso8859_8 /usr/local/lib/python2.7/encodings/iso8859_8.py
m encodings.iso8859_9 /usr/local/lib/python2.7/encodings/iso8859_9.py
m encodings.johab /usr/local/lib/python2.7/encodings/johab.py
m encodings.koi8_r /usr/local/lib/python2.7/encodings/koi8_r.py
m encodings.koi8_u /usr/local/lib/python2.7/encodings/koi8_u.py
m encodings.latin_1 /usr/local/lib/python2.7/encodings/latin_1.py
m encodings.mac_arabic /usr/local/lib/python2.7/encodings/mac_arabic.py
m encodings.mac_centeuro /usr/local/lib/python2.7/encodings/mac_centeuro.py
m encodings.mac_croatian /usr/local/lib/python2.7/encodings/mac_croatian.py
m encodings.mac_cyrillic /usr/local/lib/python2.7/encodings/mac_cyrillic.py
m encodings.mac_farsi /usr/local/lib/python2.7/encodings/mac_farsi.py
m encodings.mac_greek /usr/local/lib/python2.7/encodings/mac_greek.py
m encodings.mac_iceland /usr/local/lib/python2.7/encodings/mac_iceland.py
m encodings.mac_latin2 /usr/local/lib/python2.7/encodings/mac_latin2.py
m encodings.mac_roman /usr/local/lib/python2.7/encodings/mac_roman.py
m encodings.mac_romanian /usr/local/lib/python2.7/encodings/mac_romanian.py
m encodings.mac_turkish /usr/local/lib/python2.7/encodings/mac_turkish.py
m encodings.mbcs /usr/local/lib/python2.7/encodings/mbcs.py
m encodings.palmos /usr/local/lib/python2.7/encodings/palmos.py
m encodings.ptcp154 /usr/local/lib/python2.7/encodings/ptcp154.py
m encodings.punycode /usr/local/lib/python2.7/encodings/punycode.py
m encodings.quopri_codec /usr/local/lib/python2.7/encodings/quopri_codec.py
m encodings.raw_unicode_escape /usr/local/lib/python2.7/encodings/raw_unicode_escape.py
m encodings.rot_13 /usr/local/lib/python2.7/encodings/rot_13.py
m encodings.shift_jis /usr/local/lib/python2.7/encodings/shift_jis.py
m encodings.shift_jis_2004 /usr/local/lib/python2.7/encodings/shift_jis_2004.py
m encodings.shift_jisx0213 /usr/local/lib/python2.7/encodings/shift_jisx0213.py
m encodings.string_escape /usr/local/lib/python2.7/encodings/string_escape.py
m encodings.tis_620 /usr/local/lib/python2.7/encodings/tis_620.py
m encodings.undefined /usr/local/lib/python2.7/encodings/undefined.py
m encodings.unicode_escape /usr/local/lib/python2.7/encodings/unicode_escape.py
m encodings.unicode_internal /usr/local/lib/python2.7/encodings/unicode_internal.py
m encodings.utf_16 /usr/local/lib/python2.7/encodings/utf_16.py
m encodings.utf_16_be /usr/local/lib/python2.7/encodings/utf_16_be.py
m encodings.utf_16_le /usr/local/lib/python2.7/encodings/utf_16_le.py
m encodings.utf_32 /usr/local/lib/python2.7/encodings/utf_32.py
m encodings.utf_32_be /usr/local/lib/python2.7/encodings/utf_32_be.py
m encodings.utf_32_le /usr/local/lib/python2.7/encodings/utf_32_le.py
m encodings.utf_7 /usr/local/lib/python2.7/encodings/utf_7.py
m encodings.utf_8 /usr/local/lib/python2.7/encodings/utf_8.py
m encodings.utf_8_sig /usr/local/lib/python2.7/encodings/utf_8_sig.py
m encodings.uu_codec /usr/local/lib/python2.7/encodings/uu_codec.py
m encodings.zlib_codec /usr/local/lib/python2.7/encodings/zlib_codec.py
m errno
m exceptions
m fcntl /usr/local/lib/python2.7/lib-dynload/fcntl.so
m fnmatch /usr/local/lib/python2.7/fnmatch.py
m functools /usr/local/lib/python2.7/functools.py
m gc
m genericpath /usr/local/lib/python2.7/genericpath.py
m getopt /usr/local/lib/python2.7/getopt.py
m gettext /usr/local/lib/python2.7/gettext.py
m hashlib /usr/local/lib/python2.7/hashlib.py
m heapq /usr/local/lib/python2.7/heapq.py
m imp
m inspect /usr/local/lib/python2.7/inspect.py
m itertools /usr/local/lib/python2.7/lib-dynload/itertools.so
m keyword /usr/local/lib/python2.7/keyword.py
m linecache /usr/local/lib/python2.7/linecache.py
m locale /usr/local/lib/python2.7/locale.py
P logging /usr/local/lib/python2.7/logging/__init__.py
m marshal
m math /usr/local/lib/python2.7/lib-dynload/math.so
m ntpath /usr/local/lib/python2.7/ntpath.py
m opcode /usr/local/lib/python2.7/opcode.py
m operator /usr/local/lib/python2.7/lib-dynload/operator.so
m optparse /usr/local/lib/python2.7/optparse.py
m os /usr/local/lib/python2.7/os.py
m pdb /usr/local/lib/python2.7/pdb.py
m pickle /usr/local/lib/python2.7/pickle.py
m posix
m posixpath /usr/local/lib/python2.7/posixpath.py
m pprint /usr/local/lib/python2.7/pprint.py
m pwd
m quopri /usr/local/lib/python2.7/quopri.py
m random /usr/local/lib/python2.7/random.py
m re /usr/local/lib/python2.7/re.py
m repr /usr/local/lib/python2.7/repr.py
m select /usr/local/lib/python2.7/lib-dynload/select.so
m shlex /usr/local/lib/python2.7/shlex.py
m signal
m sre_compile /usr/local/lib/python2.7/sre_compile.py
m sre_constants /usr/local/lib/python2.7/sre_constants.py
m sre_parse /usr/local/lib/python2.7/sre_parse.py
m stat /usr/local/lib/python2.7/stat.py
m string /usr/local/lib/python2.7/string.py
m stringprep /usr/local/lib/python2.7/stringprep.py
m strop /usr/local/lib/python2.7/lib-dynload/strop.so
m struct /usr/local/lib/python2.7/struct.py
m subprocess /usr/local/lib/python2.7/subprocess.py
m sys
m tempfile /usr/local/lib/python2.7/tempfile.py
m textwrap /usr/local/lib/python2.7/textwrap.py
m thread
m threading /usr/local/lib/python2.7/threading.py
m time /usr/local/lib/python2.7/lib-dynload/time.so
m token /usr/local/lib/python2.7/token.py
m tokenize /usr/local/lib/python2.7/tokenize.py
m traceback /usr/local/lib/python2.7/traceback.py
m types /usr/local/lib/python2.7/types.py
m unicodedata /usr/local/lib/python2.7/lib-dynload/unicodedata.so
P unittest /usr/local/lib/python2.7/unittest/__init__.py
m unittest.case /usr/local/lib/python2.7/unittest/case.py
m unittest.loader /usr/local/lib/python2.7/unittest/loader.py
m unittest.main /usr/local/lib/python2.7/unittest/main.py
m unittest.result /usr/local/lib/python2.7/unittest/result.py
m unittest.runner /usr/local/lib/python2.7/unittest/runner.py
m unittest.signals /usr/local/lib/python2.7/unittest/signals.py
m unittest.suite /usr/local/lib/python2.7/unittest/suite.py
m unittest.util /usr/local/lib/python2.7/unittest/util.py
m warnings /usr/local/lib/python2.7/warnings.py
m weakref /usr/local/lib/python2.7/weakref.py
m zlib /usr/local/lib/python2.7/lib-dynload/zlib.so
Missing modules:
? _emx_link imported from os
? _subprocess imported from subprocess
? bz2 imported from encodings.bz2_codec
? ce imported from os
? dcoc_resource imported from dcos_resource__main__
? msvcrt imported from subprocess
? nt imported from ntpath, os
? org.python.core imported from copy, pickle
? os.path imported from os, shlex
? os2 imported from os
? os2emxpath imported from os
? readline imported from cmd, pdb
? riscos imported from os
? riscosenviron imported from os
? riscospath imported from os
This is not necessarily a problem - the modules may not be needed on this platform.
creating directory build/exe.linux-x86_64-2.7/lib/python2.7
Copying data from package encodings...
Copying data from package logging...
Copying data from package unittest...
copying /usr/local/lib/python2.7/lib-dynload/_bisect.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_bisect.so
copying /usr/local/lib/python2.7/lib-dynload/_codecs_cn.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_cn.so
copying /usr/local/lib/python2.7/lib-dynload/_codecs_hk.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_hk.so
copying /usr/local/lib/python2.7/lib-dynload/_codecs_iso2022.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_iso2022.so
copying /usr/local/lib/python2.7/lib-dynload/_codecs_jp.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_jp.so
copying /usr/local/lib/python2.7/lib-dynload/_codecs_kr.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_kr.so
copying /usr/local/lib/python2.7/lib-dynload/_codecs_tw.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_tw.so
copying /usr/local/lib/python2.7/lib-dynload/_collections.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_collections.so
copying /usr/local/lib/python2.7/lib-dynload/_functools.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_functools.so
copying /usr/local/lib/python2.7/lib-dynload/_hashlib.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_hashlib.so
copying /usr/local/lib/python2.7/lib-dynload/_heapq.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_heapq.so
copying /usr/local/lib/python2.7/lib-dynload/_locale.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_locale.so
copying /usr/local/lib/python2.7/lib-dynload/_multibytecodec.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_multibytecodec.so
copying /usr/local/lib/python2.7/lib-dynload/_random.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_random.so
copying /usr/local/lib/python2.7/lib-dynload/_struct.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_struct.so
copying /usr/local/lib/python2.7/lib-dynload/array.so -> build/exe.linux-x86_64-2.7/lib/python2.7/array.so
copying /usr/local/lib/python2.7/lib-dynload/binascii.so -> build/exe.linux-x86_64-2.7/lib/python2.7/binascii.so
copying /usr/local/lib/python2.7/lib-dynload/cPickle.so -> build/exe.linux-x86_64-2.7/lib/python2.7/cPickle.so
copying /usr/local/lib/python2.7/lib-dynload/cStringIO.so -> build/exe.linux-x86_64-2.7/lib/python2.7/cStringIO.so
copying /usr/local/lib/python2.7/lib-dynload/datetime.so -> build/exe.linux-x86_64-2.7/lib/python2.7/datetime.so
copying /usr/local/lib/python2.7/lib-dynload/fcntl.so -> build/exe.linux-x86_64-2.7/lib/python2.7/fcntl.so
copying /usr/local/lib/python2.7/lib-dynload/itertools.so -> build/exe.linux-x86_64-2.7/lib/python2.7/itertools.so
copying /usr/local/lib/python2.7/lib-dynload/math.so -> build/exe.linux-x86_64-2.7/lib/python2.7/math.so
copying /usr/local/lib/python2.7/lib-dynload/operator.so -> build/exe.linux-x86_64-2.7/lib/python2.7/operator.so
copying /usr/local/lib/python2.7/lib-dynload/select.so -> build/exe.linux-x86_64-2.7/lib/python2.7/select.so
copying /usr/local/lib/python2.7/lib-dynload/strop.so -> build/exe.linux-x86_64-2.7/lib/python2.7/strop.so
copying /usr/local/lib/python2.7/lib-dynload/time.so -> build/exe.linux-x86_64-2.7/lib/python2.7/time.so
copying /usr/local/lib/python2.7/lib-dynload/unicodedata.so -> build/exe.linux-x86_64-2.7/lib/python2.7/unicodedata.so
copying /usr/local/lib/python2.7/lib-dynload/zlib.so -> build/exe.linux-x86_64-2.7/lib/python2.7/zlib.so
Original comment by KondalPurma (Bitbucket: KondalPurma, GitHub: Unknown):
Compressed folder with setup,example build output to analyze the issue
Original comment by KondalPurma (Bitbucket: KondalPurma, GitHub: Unknown):
Here is the build command output:
kondal@kondal-linux:~/workspace/HelloLinux$ python cx_freeze_setup.py build running build running build_exe creating directory build/exe.linux-x86_64-2.7 copying /usr/local/lib/python2.7/dist-packages/cx_Freeze-5.0-py2.7-linux-x86_64.egg/cx_Freeze/bases/Console -> build/exe.linux-x86_64-2.7/HelloLinux copying /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 -> build/exe.linux-x86_64-2.7/libpython2.7.so.1.0 writing zip file build/exe.linux-x86_64-2.7/lib/python27.zip
Name File
m BUILD_CONSTANTS
m HelloLinuxinit /usr/local/lib/python2.7/dist-packages/cx_Freeze-5.0-py2.7-linux-x86_64.egg/cx_Freeze/initscripts/Console.py
m HelloLinuxmain HelloLinux.py
m StringIO /usr/lib/python2.7/StringIO.py
m UserDict /usr/lib/python2.7/UserDict.py
m builtin
m future /usr/lib/python2.7/future.py
m main
m startup /usr/local/lib/python2.7/dist-packages/cx_Freeze-5.0-py2.7-linux-x86_64.egg/cx_Freeze/initscripts/startup.py
m _abcoll /usr/lib/python2.7/_abcoll.py
m _codecs
m _codecs_cn /usr/lib/python2.7/lib-dynload/_codecs_cn.x86_64-linux-gnu.so
m _codecs_hk /usr/lib/python2.7/lib-dynload/_codecs_hk.x86_64-linux-gnu.so
m _codecs_iso2022 /usr/lib/python2.7/lib-dynload/_codecs_iso2022.x86_64-linux-gnu.so
m _codecs_jp /usr/lib/python2.7/lib-dynload/_codecs_jp.x86_64-linux-gnu.so
m _codecs_kr /usr/lib/python2.7/lib-dynload/_codecs_kr.x86_64-linux-gnu.so
m _codecs_tw /usr/lib/python2.7/lib-dynload/_codecs_tw.x86_64-linux-gnu.so
m _collections
m _functools
m _hashlib /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so
m _heapq
m _io
m _locale
m _md5
m _multibytecodec /usr/lib/python2.7/lib-dynload/_multibytecodec.x86_64-linux-gnu.so
m _random
m _sha
m _sha256
m _sha512
m _sre
m _strptime /usr/lib/python2.7/_strptime.py
m _struct
m _threading_local /usr/lib/python2.7/_threading_local.py
m _warnings
m _weakref
m _weakrefset /usr/lib/python2.7/_weakrefset.py
m abc /usr/lib/python2.7/abc.py
m array
m atexit /usr/lib/python2.7/atexit.py
m base64 /usr/lib/python2.7/base64.py
m bdb /usr/lib/python2.7/bdb.py
m binascii
m bz2 /usr/lib/python2.7/lib-dynload/bz2.x86_64-linux-gnu.so
m cPickle
m cStringIO
m calendar /usr/lib/python2.7/calendar.py
m cmd /usr/lib/python2.7/cmd.py
m codecs /usr/lib/python2.7/codecs.py
m collections /usr/lib/python2.7/collections.py
m copy /usr/lib/python2.7/copy.py
m copy_reg /usr/lib/python2.7/copy_reg.py
m datetime
m difflib /usr/lib/python2.7/difflib.py
m dis /usr/lib/python2.7/dis.py
m doctest /usr/lib/python2.7/doctest.py
m dummy_thread /usr/lib/python2.7/dummy_thread.py
P encodings /usr/lib/python2.7/encodings/init.py
m encodings.aliases /usr/lib/python2.7/encodings/aliases.py
m encodings.ascii /usr/lib/python2.7/encodings/ascii.py
m encodings.base64_codec /usr/lib/python2.7/encodings/base64_codec.py
m encodings.big5 /usr/lib/python2.7/encodings/big5.py
m encodings.big5hkscs /usr/lib/python2.7/encodings/big5hkscs.py
m encodings.bz2_codec /usr/lib/python2.7/encodings/bz2_codec.py
m encodings.charmap /usr/lib/python2.7/encodings/charmap.py
m encodings.cp037 /usr/lib/python2.7/encodings/cp037.py
m encodings.cp1006 /usr/lib/python2.7/encodings/cp1006.py
m encodings.cp1026 /usr/lib/python2.7/encodings/cp1026.py
m encodings.cp1140 /usr/lib/python2.7/encodings/cp1140.py
m encodings.cp1250 /usr/lib/python2.7/encodings/cp1250.py
m encodings.cp1251 /usr/lib/python2.7/encodings/cp1251.py
m encodings.cp1252 /usr/lib/python2.7/encodings/cp1252.py
m encodings.cp1253 /usr/lib/python2.7/encodings/cp1253.py
m encodings.cp1254 /usr/lib/python2.7/encodings/cp1254.py
m encodings.cp1255 /usr/lib/python2.7/encodings/cp1255.py
m encodings.cp1256 /usr/lib/python2.7/encodings/cp1256.py
m encodings.cp1257 /usr/lib/python2.7/encodings/cp1257.py
m encodings.cp1258 /usr/lib/python2.7/encodings/cp1258.py
m encodings.cp424 /usr/lib/python2.7/encodings/cp424.py
m encodings.cp437 /usr/lib/python2.7/encodings/cp437.py
m encodings.cp500 /usr/lib/python2.7/encodings/cp500.py
m encodings.cp720 /usr/lib/python2.7/encodings/cp720.py
m encodings.cp737 /usr/lib/python2.7/encodings/cp737.py
m encodings.cp775 /usr/lib/python2.7/encodings/cp775.py
m encodings.cp850 /usr/lib/python2.7/encodings/cp850.py
m encodings.cp852 /usr/lib/python2.7/encodings/cp852.py
m encodings.cp855 /usr/lib/python2.7/encodings/cp855.py
m encodings.cp856 /usr/lib/python2.7/encodings/cp856.py
m encodings.cp857 /usr/lib/python2.7/encodings/cp857.py
m encodings.cp858 /usr/lib/python2.7/encodings/cp858.py
m encodings.cp860 /usr/lib/python2.7/encodings/cp860.py
m encodings.cp861 /usr/lib/python2.7/encodings/cp861.py
m encodings.cp862 /usr/lib/python2.7/encodings/cp862.py
m encodings.cp863 /usr/lib/python2.7/encodings/cp863.py
m encodings.cp864 /usr/lib/python2.7/encodings/cp864.py
m encodings.cp865 /usr/lib/python2.7/encodings/cp865.py
m encodings.cp866 /usr/lib/python2.7/encodings/cp866.py
m encodings.cp869 /usr/lib/python2.7/encodings/cp869.py
m encodings.cp874 /usr/lib/python2.7/encodings/cp874.py
m encodings.cp875 /usr/lib/python2.7/encodings/cp875.py
m encodings.cp932 /usr/lib/python2.7/encodings/cp932.py
m encodings.cp949 /usr/lib/python2.7/encodings/cp949.py
m encodings.cp950 /usr/lib/python2.7/encodings/cp950.py
m encodings.euc_jis_2004 /usr/lib/python2.7/encodings/euc_jis_2004.py
m encodings.euc_jisx0213 /usr/lib/python2.7/encodings/euc_jisx0213.py
m encodings.euc_jp /usr/lib/python2.7/encodings/euc_jp.py
m encodings.euc_kr /usr/lib/python2.7/encodings/euc_kr.py
m encodings.gb18030 /usr/lib/python2.7/encodings/gb18030.py
m encodings.gb2312 /usr/lib/python2.7/encodings/gb2312.py
m encodings.gbk /usr/lib/python2.7/encodings/gbk.py
m encodings.hex_codec /usr/lib/python2.7/encodings/hex_codec.py
m encodings.hp_roman8 /usr/lib/python2.7/encodings/hp_roman8.py
m encodings.hz /usr/lib/python2.7/encodings/hz.py
m encodings.idna /usr/lib/python2.7/encodings/idna.py
m encodings.iso2022_jp /usr/lib/python2.7/encodings/iso2022_jp.py
m encodings.iso2022_jp_1 /usr/lib/python2.7/encodings/iso2022_jp_1.py
m encodings.iso2022_jp_2 /usr/lib/python2.7/encodings/iso2022_jp_2.py
m encodings.iso2022_jp_2004 /usr/lib/python2.7/encodings/iso2022_jp_2004.py
m encodings.iso2022_jp_3 /usr/lib/python2.7/encodings/iso2022_jp_3.py
m encodings.iso2022_jp_ext /usr/lib/python2.7/encodings/iso2022_jp_ext.py
m encodings.iso2022_kr /usr/lib/python2.7/encodings/iso2022_kr.py
m encodings.iso8859_1 /usr/lib/python2.7/encodings/iso8859_1.py
m encodings.iso8859_10 /usr/lib/python2.7/encodings/iso8859_10.py
m encodings.iso8859_11 /usr/lib/python2.7/encodings/iso8859_11.py
m encodings.iso8859_13 /usr/lib/python2.7/encodings/iso8859_13.py
m encodings.iso8859_14 /usr/lib/python2.7/encodings/iso8859_14.py
m encodings.iso8859_15 /usr/lib/python2.7/encodings/iso8859_15.py
m encodings.iso8859_16 /usr/lib/python2.7/encodings/iso8859_16.py
m encodings.iso8859_2 /usr/lib/python2.7/encodings/iso8859_2.py
m encodings.iso8859_3 /usr/lib/python2.7/encodings/iso8859_3.py
m encodings.iso8859_4 /usr/lib/python2.7/encodings/iso8859_4.py
m encodings.iso8859_5 /usr/lib/python2.7/encodings/iso8859_5.py
m encodings.iso8859_6 /usr/lib/python2.7/encodings/iso8859_6.py
m encodings.iso8859_7 /usr/lib/python2.7/encodings/iso8859_7.py
m encodings.iso8859_8 /usr/lib/python2.7/encodings/iso8859_8.py
m encodings.iso8859_9 /usr/lib/python2.7/encodings/iso8859_9.py
m encodings.johab /usr/lib/python2.7/encodings/johab.py
m encodings.koi8_r /usr/lib/python2.7/encodings/koi8_r.py
m encodings.koi8_u /usr/lib/python2.7/encodings/koi8_u.py
m encodings.latin_1 /usr/lib/python2.7/encodings/latin_1.py
m encodings.mac_arabic /usr/lib/python2.7/encodings/mac_arabic.py
m encodings.mac_centeuro /usr/lib/python2.7/encodings/mac_centeuro.py
m encodings.mac_croatian /usr/lib/python2.7/encodings/mac_croatian.py
m encodings.mac_cyrillic /usr/lib/python2.7/encodings/mac_cyrillic.py
m encodings.mac_farsi /usr/lib/python2.7/encodings/mac_farsi.py
m encodings.mac_greek /usr/lib/python2.7/encodings/mac_greek.py
m encodings.mac_iceland /usr/lib/python2.7/encodings/mac_iceland.py
m encodings.mac_latin2 /usr/lib/python2.7/encodings/mac_latin2.py
m encodings.mac_roman /usr/lib/python2.7/encodings/mac_roman.py
m encodings.mac_romanian /usr/lib/python2.7/encodings/mac_romanian.py
m encodings.mac_turkish /usr/lib/python2.7/encodings/mac_turkish.py
m encodings.mbcs /usr/lib/python2.7/encodings/mbcs.py
m encodings.palmos /usr/lib/python2.7/encodings/palmos.py
m encodings.ptcp154 /usr/lib/python2.7/encodings/ptcp154.py
m encodings.punycode /usr/lib/python2.7/encodings/punycode.py
m encodings.quopri_codec /usr/lib/python2.7/encodings/quopri_codec.py
m encodings.raw_unicode_escape /usr/lib/python2.7/encodings/raw_unicode_escape.py
m encodings.rot_13 /usr/lib/python2.7/encodings/rot_13.py
m encodings.shift_jis /usr/lib/python2.7/encodings/shift_jis.py
m encodings.shift_jis_2004 /usr/lib/python2.7/encodings/shift_jis_2004.py
m encodings.shift_jisx0213 /usr/lib/python2.7/encodings/shift_jisx0213.py
m encodings.string_escape /usr/lib/python2.7/encodings/string_escape.py
m encodings.tis_620 /usr/lib/python2.7/encodings/tis_620.py
m encodings.undefined /usr/lib/python2.7/encodings/undefined.py
m encodings.unicode_escape /usr/lib/python2.7/encodings/unicode_escape.py
m encodings.unicode_internal /usr/lib/python2.7/encodings/unicode_internal.py
m encodings.utf_16 /usr/lib/python2.7/encodings/utf_16.py
m encodings.utf_16_be /usr/lib/python2.7/encodings/utf_16_be.py
m encodings.utf_16_le /usr/lib/python2.7/encodings/utf_16_le.py
m encodings.utf_32 /usr/lib/python2.7/encodings/utf_32.py
m encodings.utf_32_be /usr/lib/python2.7/encodings/utf_32_be.py
m encodings.utf_32_le /usr/lib/python2.7/encodings/utf_32_le.py
m encodings.utf_7 /usr/lib/python2.7/encodings/utf_7.py
m encodings.utf_8 /usr/lib/python2.7/encodings/utf_8.py
m encodings.utf_8_sig /usr/lib/python2.7/encodings/utf_8_sig.py
m encodings.uu_codec /usr/lib/python2.7/encodings/uu_codec.py
m encodings.zlib_codec /usr/lib/python2.7/encodings/zlib_codec.py
m errno
m exceptions
m fcntl
m fnmatch /usr/lib/python2.7/fnmatch.py
m functools /usr/lib/python2.7/functools.py
m gc
m genericpath /usr/lib/python2.7/genericpath.py
m getopt /usr/lib/python2.7/getopt.py
m gettext /usr/lib/python2.7/gettext.py
m hashlib /usr/lib/python2.7/hashlib.py
m heapq /usr/lib/python2.7/heapq.py
m imp
m inspect /usr/lib/python2.7/inspect.py
m io /usr/lib/python2.7/io.py
m itertools
m keyword /usr/lib/python2.7/keyword.py
m linecache /usr/lib/python2.7/linecache.py
m locale /usr/lib/python2.7/locale.py
P logging /usr/lib/python2.7/logging/init.py
m marshal
m math
m ntpath /usr/lib/python2.7/ntpath.py
m opcode /usr/lib/python2.7/opcode.py
m operator
m optparse /usr/lib/python2.7/optparse.py
m os /usr/lib/python2.7/os.py
m pdb /usr/lib/python2.7/pdb.py
m pickle /usr/lib/python2.7/pickle.py
m posix
m posixpath /usr/lib/python2.7/posixpath.py
m pprint /usr/lib/python2.7/pprint.py
m pwd
m quopri /usr/lib/python2.7/quopri.py
m random /usr/lib/python2.7/random.py
m re /usr/lib/python2.7/re.py
m readline /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so
m repr /usr/lib/python2.7/repr.py
m select
m shlex /usr/lib/python2.7/shlex.py
m signal
m sre_compile /usr/lib/python2.7/sre_compile.py
m sre_constants /usr/lib/python2.7/sre_constants.py
m sre_parse /usr/lib/python2.7/sre_parse.py
m stat /usr/lib/python2.7/stat.py
m string /usr/lib/python2.7/string.py
m stringprep /usr/lib/python2.7/stringprep.py
m strop
m struct /usr/lib/python2.7/struct.py
m subprocess /usr/lib/python2.7/subprocess.py
m sys
m tempfile /usr/lib/python2.7/tempfile.py
m textwrap /usr/lib/python2.7/textwrap.py
m thread
m threading /usr/lib/python2.7/threading.py
m time
m token /usr/lib/python2.7/token.py
m tokenize /usr/lib/python2.7/tokenize.py
m traceback /usr/lib/python2.7/traceback.py
m types /usr/lib/python2.7/types.py
m unicodedata
P unittest /usr/lib/python2.7/unittest/init.py
m unittest.case /usr/lib/python2.7/unittest/case.py
m unittest.loader /usr/lib/python2.7/unittest/loader.py
m unittest.main /usr/lib/python2.7/unittest/main.py
m unittest.result /usr/lib/python2.7/unittest/result.py
m unittest.runner /usr/lib/python2.7/unittest/runner.py
m unittest.signals /usr/lib/python2.7/unittest/signals.py
m unittest.suite /usr/lib/python2.7/unittest/suite.py
m unittest.util /usr/lib/python2.7/unittest/util.py
m warnings /usr/lib/python2.7/warnings.py
m weakref /usr/lib/python2.7/weakref.py
m zlib
Missing modules: ? _emx_link imported from os ? _subprocess imported from subprocess ? ce imported from os ? msvcrt imported from subprocess ? nt imported from ntpath, os ? org.python.core imported from copy, pickle ? os.path imported from os, shlex ? os2 imported from os ? os2emxpath imported from os ? riscos imported from os ? riscosenviron imported from os ? riscospath imported from os This is not necessarily a problem - the modules may not be needed on this platform.
creating directory build/exe.linux-x86_64-2.7/lib/python2.7 Copying data from package encodings... Copying data from package logging... Copying data from package unittest... copying /usr/lib/python2.7/lib-dynload/_codecs_cn.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_cn.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/_codecs_hk.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_hk.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/_codecs_iso2022.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_iso2022.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/_codecs_jp.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_jp.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/_codecs_kr.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_kr.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/_codecs_tw.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_codecs_tw.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_hashlib.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/_multibytecodec.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/_multibytecodec.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/bz2.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/bz2.x86_64-linux-gnu.so copying /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so -> build/exe.linux-x86_64-2.7/lib/python2.7/readline.x86_64-linux-gnu.so kondal@kondal-linux:~/workspace/HelloLinux$ cd build/ kondal@kondal-linux:~/workspace/HelloLinux/build$ cd exe.linux-x86_64-2.7/ kondal@kondal-linux:~/workspace/HelloLinux/build/exe.linux-x86_64-2.7$ ./HelloLinux ImportError: No module named startup kondal@kondal-linux:~/workspace/HelloLinux/build/exe.linux-x86_64-2.7$
Original comment by Anthony Tuininga (Bitbucket: anthony_tuininga, GitHub: Unknown):
Can any of you provide the output from the build command (on the "simple" aka "hello world" example)? That and a listing of the files that were created as well as the output when running that script using Python directly. That should help track things down sufficiently for me to give you an answer. The direct answer (but not helpful!) is that the zip file cannot be located. Some of the Linux distributions do modify Python on occasion so that might be the source of that issue -- but I see there is a Windows issue as well.
Original comment by KondalPurma (Bitbucket: KondalPurma, GitHub: Unknown):
I am having the same issue with my wxpython application and not able to find the solution. Running on Ubuntu 16.04 LTS, Python 2.7.12 , wxpython '3.0.2.0 gtk2 (classic)' cx_Freeze 5.0
I ran into this issue attempting to get Esky working on Ubuntu 14.04 LTS (64-bit) w/ cx_Freeze. The actual error is being thrown from ExecuteScript
when it tries to import __startup__
with module = PyImport_Import(name);
https://github.com/anthony-tuininga/cx_Freeze/blob/master/source/bases/Common.c#L241
When I ran the advanced
sample I saw the exact same issue.
If I add a __startup__.py
next to my executable with:
import sys
sys.path.insert(0, 'lib/python27.zip')
import os
baseName = os.path.normcase(os.path.basename(sys.executable))
name, ext = os.path.splitext(baseName)
__import__(name + "__init__")
I get a little farther, but still not enough to bring my app up unfortunately.
I can confirm per klensy's comment that running cx_Freeze not in a virtualenv does work.
So I had a look at my compiled executable, I'm having this error and something jumped out at me.
In amongst all the binary etc, there's some error messages. Fatal error: %s PATH environment variable not defined! Unable to determine absolute path for executable! Unable to calculate directory of executable! Unable to locate executable on PATH! Cannot create string for startup module name!
Wonder if this can help us find a solution, it feels like it is related.
(Just to clarify, my PATH is definitely set: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin )
Here is a diff between a non-working freeze generated using a virtual environment (left hand side) and a working freeze using the regular installed python (right hand side):
On the left, virtual env, non-working side almost all files are added in a separate sub-directory called 'lib'. In the working case, they are in the same directory as the executable.
That is the problem.
Moving these files out of the 'lib' directory and putting them on the same level as the executable fixes the problem.
Hence, the question is: Why does cx-freeze put files into this 'lib' directory where they are not found???
I can confirm that copying/moving the files from the "lib" directory into same directory as the exe file does work. For the time being I'm going to call my setup.py script using a batch file. After executing the setup.py file i'll have my batch script move the contents of the lib directory into the same directory as the exe file.
It sure would be nice to get this resolved though so it's more reasonable to use cx_freeze with virtualenvs.
This is in progress. Just very slow progress, unfortunately!
Not a problem. Thanhs for the update.
I have the same issue. Creating the dist within a virtualenv but invoking it outside does not work. The workaround posted above (moving content of lib
to same directory of executable) didn't work for me.
Am I following the wrong sequence?
cxfreeze dev.py --target-dir dist
Should be fixed, try pip install git+https://github.com/klensy/cx_Freeze.git@fix_209
. For cx_freeze v5.x branch.
@klensy that seems to have worked for me.
Now getting a different error when executing:
./script
Traceback (most recent call last):
File "<virtenv>/local/lib/python2.7/site-packages/cx_Freeze/initscripts/__startup__.py", line 14, in run
module.run()
File "<virtenv>/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 26, in run
exec(code, m.__dict__)
File "script.py", line 12, in <module>
File "common/utils.py", line 18, in <module>
File "<virtenv>/local/lib/python2.7/site-packages/redis/__init__.py", line 1, in <module>
from redis.client import Redis, StrictRedis
File "<virtenv>/local/lib/python2.7/site-packages/redis/client.py", line 12, in <module>
from redis.connection import (ConnectionPool, UnixDomainSocketConnection,
File "<virtenv>/local/lib/python2.7/site-packages/redis/connection.py", line 2, in <module>
from distutils.version import StrictVersion
File "<virtenv>/lib/python2.7/distutils/__init__.py", line 23, in <module>
__version__ = real_distutils.__version__
AttributeError: 'module' object has no attribute '__version__'
Might be totally unrelated, but seems to be some distutil dependency. No change whether I execute it in a virtualenv or not.
@arnuschky yep, same for me, if freeze this:
import pandas as pd
pd.DataFrame()
Come on people, no freezing pandas please.
Sorry, nearly weekend already. ;)
@arnuschky Moving distutils folder from python (not venv!) and replacing in build, fixing this for me.
@klensy not 100% if this is what you meant, but the following brought me to the next step:
$ cd dist
$ rm -rf lib/distutils
$ cp -r /usr/lib/python2.7/distutils lib/
$ ./script
Traceback (most recent call last):
File "<virtenv>/local/lib/python2.7/site-packages/cx_Freeze/initscripts/__startup__.py", line 14, in run
module.run()
File "<virtenv>/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 26, in run
exec(code, m.__dict__)
File "script.py", line 12, in <module>
File "common/utils.py", line 23, in <module>
File "<virtenv>/local/lib/python2.7/site-packages/nacl/bindings/__init__.py", line 17, in <module>
from nacl.bindings.crypto_box import (
File "<virtenv>/local/lib/python2.7/site-packages/nacl/bindings/crypto_box.py", line 18, in <module>
from nacl._sodium import ffi, lib
ImportError: No module named _cffi_backend
Which is incidentally the same problem I am getting on pyinstaller: https://github.com/pyinstaller/pyinstaller/issues/1684
So I guess it works, except in my case where I am hitting a different (but common) problem with native crypto libs.
@arnuschky Yes, this. In pyinstaller exist some hook for distutils, so need somehow implement it for cx_Freeze.
I am having trouble generating an executable file using python 3.5 and cx_freeze. When trying to run the file I get the following error and found no solution in the searches I did, could someone help me?
my setup.py
import sys from cx_Freeze import setup, Executable
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]}
base = None if sys.platform == "win32": base = "Win32GUI"
setup( name = "micap_erro", version = "0.1", description = "My GUI application!", options = {"build_exe": build_exe_options}, executables = [Executable("codigo_erro_micap02.py", base=base)])
Log:
m datetime C:\Python35\datetime.py m difflib C:\Python35\difflib.py m dis C:\Python35\dis.py m doctest C:\Python35\doctest.py m dummy_threading C:\Python35\dummy_threading.py P email C:\Python35\email__init.py m email._encoded_words C:\Python35\email_encoded_words.py m email._header_value_parser C:\Python35\email_header_value_parser.py m email._parseaddr C:\Python35\email_parseaddr.py m email._policybase C:\Python35\email_policybase.py m email.base64mime C:\Python35\email\base64mime.py m email.charset C:\Python35\email\charset.py m email.contentmanager C:\Python35\email\contentmanager.py m email.encoders C:\Python35\email\encoders.py m email.errors C:\Python35\email\errors.py m email.feedparser C:\Python35\email\feedparser.py m email.generator C:\Python35\email\generator.py m email.header C:\Python35\email\header.py m email.headerregistry C:\Python35\email\headerregistry.py m email.iterators C:\Python35\email\iterators.py m email.message C:\Python35\email\message.py m email.parser C:\Python35\email\parser.py m email.policy C:\Python35\email\policy.py m email.quoprimime C:\Python35\email\quoprimime.py m email.utils C:\Python35\email\utils.py P encodings C:\Python35\encodings__init.py m encodings.aliases C:\Python35\encodings\aliases.py m encodings.ascii C:\Python35\encodings\ascii.py m encodings.base64_codec C:\Python35\encodings\base64_codec.py m encodings.big5 C:\Python35\encodings\big5.py m encodings.big5hkscs C:\Python35\encodings\big5hkscs.py m encodings.bz2_codec C:\Python35\encodings\bz2_codec.py m encodings.charmap C:\Python35\encodings\charmap.py m encodings.cp037 C:\Python35\encodings\cp037.py m encodings.cp1006 C:\Python35\encodings\cp1006.py m encodings.cp1026 C:\Python35\encodings\cp1026.py m encodings.cp1125 C:\Python35\encodings\cp1125.py m encodings.cp1140 C:\Python35\encodings\cp1140.py m encodings.cp1250 C:\Python35\encodings\cp1250.py m encodings.cp1251 C:\Python35\encodings\cp1251.py m encodings.cp1252 C:\Python35\encodings\cp1252.py m encodings.cp1253 C:\Python35\encodings\cp1253.py m encodings.cp1254 C:\Python35\encodings\cp1254.py m encodings.cp1255 C:\Python35\encodings\cp1255.py m encodings.cp1256 C:\Python35\encodings\cp1256.py m encodings.cp1257 C:\Python35\encodings\cp1257.py m encodings.cp1258 C:\Python35\encodings\cp1258.py m encodings.cp273 C:\Python35\encodings\cp273.py m encodings.cp424 C:\Python35\encodings\cp424.py m encodings.cp437 C:\Python35\encodings\cp437.py m encodings.cp500 C:\Python35\encodings\cp500.py m encodings.cp65001 C:\Python35\encodings\cp65001.py m encodings.cp720 C:\Python35\encodings\cp720.py m encodings.cp737 C:\Python35\encodings\cp737.py m encodings.cp775 C:\Python35\encodings\cp775.py m encodings.cp850 C:\Python35\encodings\cp850.py m encodings.cp852 C:\Python35\encodings\cp852.py m encodings.cp855 C:\Python35\encodings\cp855.py m encodings.cp856 C:\Python35\encodings\cp856.py m encodings.cp857 C:\Python35\encodings\cp857.py m encodings.cp858 C:\Python35\encodings\cp858.py m encodings.cp860 C:\Python35\encodings\cp860.py m encodings.cp861 C:\Python35\encodings\cp861.py m encodings.cp862 C:\Python35\encodings\cp862.py m encodings.cp863 C:\Python35\encodings\cp863.py m encodings.cp864 C:\Python35\encodings\cp864.py m encodings.cp865 C:\Python35\encodings\cp865.py m encodings.cp866 C:\Python35\encodings\cp866.py m encodings.cp869 C:\Python35\encodings\cp869.py m encodings.cp874 C:\Python35\encodings\cp874.py m encodings.cp875 C:\Python35\encodings\cp875.py m encodings.cp932 C:\Python35\encodings\cp932.py m encodings.cp949 C:\Python35\encodings\cp949.py m encodings.cp950 C:\Python35\encodings\cp950.py m encodings.euc_jis_2004 C:\Python35\encodings\euc_jis_2004.py m encodings.euc_jisx0213 C:\Python35\encodings\euc_jisx0213.py m encodings.euc_jp C:\Python35\encodings\euc_jp.py m encodings.euc_kr C:\Python35\encodings\euc_kr.py m encodings.gb18030 C:\Python35\encodings\gb18030.py m encodings.gb2312 C:\Python35\encodings\gb2312.py m encodings.gbk C:\Python35\encodings\gbk.py m encodings.hex_codec C:\Python35\encodings\hex_codec.py m encodings.hp_roman8 C:\Python35\encodings\hp_roman8.py m encodings.hz C:\Python35\encodings\hz.py m encodings.idna C:\Python35\encodings\idna.py m encodings.iso2022_jp C:\Python35\encodings\iso2022_jp.py m encodings.iso2022_jp_1 C:\Python35\encodings\iso2022_jp_1.py m encodings.iso2022_jp_2 C:\Python35\encodings\iso2022_jp_2.py m encodings.iso2022_jp_2004 C:\Python35\encodings\iso2022_jp_2004.py m encodings.iso2022_jp_3 C:\Python35\encodings\iso2022_jp_3.py m encodings.iso2022_jp_ext C:\Python35\encodings\iso2022_jp_ext.py m encodings.iso2022_kr C:\Python35\encodings\iso2022_kr.py m encodings.iso8859_1 C:\Python35\encodings\iso8859_1.py m encodings.iso8859_10 C:\Python35\encodings\iso8859_10.py m encodings.iso8859_11 C:\Python35\encodings\iso8859_11.py m encodings.iso8859_13 C:\Python35\encodings\iso8859_13.py m encodings.iso8859_14 C:\Python35\encodings\iso8859_14.py m encodings.iso8859_15 C:\Python35\encodings\iso8859_15.py m encodings.iso8859_16 C:\Python35\encodings\iso8859_16.py m encodings.iso8859_2 C:\Python35\encodings\iso8859_2.py m encodings.iso8859_3 C:\Python35\encodings\iso8859_3.py m encodings.iso8859_4 C:\Python35\encodings\iso8859_4.py m encodings.iso8859_5 C:\Python35\encodings\iso8859_5.py m encodings.iso8859_6 C:\Python35\encodings\iso8859_6.py m encodings.iso8859_7 C:\Python35\encodings\iso8859_7.py m encodings.iso8859_8 C:\Python35\encodings\iso8859_8.py m encodings.iso8859_9 C:\Python35\encodings\iso8859_9.py m encodings.johab C:\Python35\encodings\johab.py m encodings.koi8_r C:\Python35\encodings\koi8_r.py m encodings.koi8_t C:\Python35\encodings\koi8_t.py m encodings.koi8_u C:\Python35\encodings\koi8_u.py m encodings.kz1048 C:\Python35\encodings\kz1048.py m encodings.latin_1 C:\Python35\encodings\latin_1.py m encodings.mac_arabic C:\Python35\encodings\mac_arabic.py m encodings.mac_centeuro C:\Python35\encodings\mac_centeuro.py m encodings.mac_croatian C:\Python35\encodings\mac_croatian.py m encodings.mac_cyrillic C:\Python35\encodings\mac_cyrillic.py m encodings.mac_farsi C:\Python35\encodings\mac_farsi.py m encodings.mac_greek C:\Python35\encodings\mac_greek.py m encodings.mac_iceland C:\Python35\encodings\mac_iceland.py m encodings.mac_latin2 C:\Python35\encodings\mac_latin2.py m encodings.mac_roman C:\Python35\encodings\mac_roman.py m encodings.mac_romanian C:\Python35\encodings\mac_romanian.py m encodings.mac_turkish C:\Python35\encodings\mac_turkish.py m encodings.mbcs C:\Python35\encodings\mbcs.py m encodings.palmos C:\Python35\encodings\palmos.py m encodings.ptcp154 C:\Python35\encodings\ptcp154.py m encodings.punycode C:\Python35\encodings\punycode.py m encodings.quopri_codec C:\Python35\encodings\quopri_codec.py m encodings.raw_unicode_escape C:\Python35\encodings\raw_unicode_escape.py m encodings.rot_13 C:\Python35\encodings\rot_13.py m encodings.shift_jis C:\Python35\encodings\shift_jis.py m encodings.shift_jis_2004 C:\Python35\encodings\shift_jis_2004.py m encodings.shift_jisx0213 C:\Python35\encodings\shift_jisx0213.py m encodings.tis_620 C:\Python35\encodings\tis_620.py m encodings.undefined C:\Python35\encodings\undefined.py m encodings.unicode_escape C:\Python35\encodings\unicode_escape.py m encodings.unicode_internal C:\Python35\encodings\unicode_internal.py m encodings.utf_16 C:\Python35\encodings\utf_16.py m encodings.utf_16_be C:\Python35\encodings\utf_16_be.py m encodings.utf_16_le C:\Python35\encodings\utf_16_le.py m encodings.utf_32 C:\Python35\encodings\utf_32.py m encodings.utf_32_be C:\Python35\encodings\utf_32_be.py m encodings.utf_32_le C:\Python35\encodings\utf_32_le.py m encodings.utf_7 C:\Python35\encodings\utf_7.py m encodings.utf_8 C:\Python35\encodings\utf_8.py m encodings.utf_8_sig C:\Python35\encodings\utf_8_sig.py m encodings.uu_codec C:\Python35\encodings\uu_codec.py m encodings.zlib_codec C:\Python35\encodings\zlib_codec.py m enum C:\Python35\enum.py m errno m fnmatch C:\Python35\fnmatch.py m functools C:\Python35\functools.py m gc m genericpath C:\Python35\genericpath.py m getopt C:\Python35\getopt.py m gettext C:\Python35\gettext.py m glob C:\Python35\glob.py m gzip C:\Python35\gzip.py m hashlib C:\Python35\hashlib.py m heapq C:\Python35\heapq.py P html C:\Python35\html\init.py m html.entities C:\Python35\html\entities.py P http C:\Python35\http\init.py m http.client C:\Python35\http\client.py m http.server C:\Python35\http\server.py m imp C:\Python35\imp.py P importlib C:\Python35\importlib\init__.py m importlib._bootstrap C:\Python35\importlib_bootstrap.py m importlib._bootstrap_external C:\Python35\importlib_bootstrap_external.py m importlib.abc C:\Python35\importlib\abc.py m importlib.machinery C:\Python35\importlib\machinery.py m importlib.util C:\Python35\importlib\util.py m inspect C:\Python35\inspect.py m io C:\Python35\io.py m ipaddress C:\Python35\ipaddress.py m itertools m keyword C:\Python35\keyword.py m linecache C:\Python35\linecache.py m locale C:\Python35\locale.py P logging C:\Python35\logging\init.py m lzma C:\Python35\lzma.py m marshal m math m mimetypes C:\Python35\mimetypes.py m msvcrt m nt m ntpath C:\Python35\ntpath.py m opcode C:\Python35\opcode.py m operator C:\Python35\operator.py m optparse C:\Python35\optparse.py m os C:\Python35\os.py m pdb C:\Python35\pdb.py m pkgutil C:\Python35\pkgutil.py m platform C:\Python35\platform.py m plistlib C:\Python35\plistlib.py m posixpath C:\Python35\posixpath.py m pprint C:\Python35\pprint.py m py_compile C:\Python35\py_compile.py m pydoc C:\Python35\pydoc.py P pydoc_data C:\Python35\pydoc_data\init.py m pydoc_data.topics C:\Python35\pydoc_data\topics.py m pyexpat C:\Python35\DLLs\pyexpat.pyd m quopri C:\Python35\quopri.py m random C:\Python35\random.py m re C:\Python35\re.py m reprlib C:\Python35\reprlib.py m select C:\Python35\DLLs\select.pyd m selectors C:\Python35\selectors.py m shlex C:\Python35\shlex.py m shutil C:\Python35\shutil.py m signal C:\Python35\signal.py m socket C:\Python35\socket.py m socketserver C:\Python35\socketserver.py m sre_compile C:\Python35\sre_compile.py m sre_constants C:\Python35\sre_constants.py m sre_parse C:\Python35\sre_parse.py m ssl C:\Python35\ssl.py m stat C:\Python35\stat.py m string C:\Python35\string.py m stringprep C:\Python35\stringprep.py m struct C:\Python35\struct.py m subprocess C:\Python35\subprocess.py m sys m tarfile C:\Python35\tarfile.py m tempfile C:\Python35\tempfile.py m textwrap C:\Python35\textwrap.py m threading C:\Python35\threading.py m time m token C:\Python35\token.py m tokenize C:\Python35\tokenize.py m traceback C:\Python35\traceback.py m tty C:\Python35\tty.py m types C:\Python35\types.py m unicodedata C:\Python35\DLLs\unicodedata.pyd P unittest C:\Python35\unittest\init.py m unittest.case C:\Python35\unittest\case.py m unittest.loader C:\Python35\unittest\loader.py m unittest.main C:\Python35\unittest\main.py m unittest.result C:\Python35\unittest\result.py m unittest.runner C:\Python35\unittest\runner.py m unittest.signals C:\Python35\unittest\signals.py m unittest.suite C:\Python35\unittest\suite.py m unittest.util C:\Python35\unittest\util.py P urllib C:\Python35\urllib\init.py m urllib.parse C:\Python35\urllib\parse.py m uu C:\Python35\uu.py m warnings C:\Python35\warnings.py m weakref C:\Python35\weakref.py m webbrowser C:\Python35\webbrowser.py m winreg P xml C:\Python35\xml\init.py P xml.parsers C:\Python35\xml\parsers\init__.py m xml.parsers.expat C:\Python35\xml\parsers\expat.py m zipfile C:\Python35\zipfile.py m zipimport m zlib
Missing modules: ? main imported from bdb, pdb ? _dummy_threading imported from dummy_threading ? _frozen_importlib imported from importlib, importlib.abc ? _frozen_importlib_external imported from importlib, importlib._bootstrap, impo rtlib.abc ? _posixsubprocess imported from subprocess ? _winreg imported from platform ? ce imported from os ? grp imported from shutil, tarfile ? java.lang imported from platform ? org.python.core imported from copy ? os.path imported from os, pkgutil, py_compile, unittest, unittest.util ? posix imported from os ? pwd imported from http.server, 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 platfo rm.
Copying data from package collections... Copying data from package email... Copying data from package encodings... Copying data from package html... Copying data from package http... Copying data from package importlib... Copying data from package logging... Copying data from package pydoc_data... Copying data from package unittest... Copying data from package urllib... Copying data from package xml... copying C:\Python35\DLLs_bz2.pyd -> build\exe.win-amd64-3.5_bz2.pyd copying C:\Python35\DLLs_hashlib.pyd -> build\exe.win-amd64-3.5_hashlib.pyd copying C:\Python35\DLLs_lzma.pyd -> build\exe.win-amd64-3.5_lzma.pyd copying C:\Python35\DLLs_socket.pyd -> build\exe.win-amd64-3.5_socket.pyd copying C:\Python35\DLLs_ssl.pyd -> build\exe.win-amd64-3.5_ssl.pyd copying C:\Python35\DLLs\pyexpat.pyd -> build\exe.win-amd64-3.5\pyexpat.pyd copying C:\Python35\DLLs\select.pyd -> build\exe.win-amd64-3.5\select.pyd copying C:\Python35\DLLs\unicodedata.pyd -> build\exe.win-amd64-3.5\unicodedata. pyd
C:\Python35>
@noguche So, u tried run your exe file from build\exe.win-amd64-3.5 folder?
Yes I tried to run directly from the folder and I get the following error:
Traceback(most recent call last): file "C:\Python35\cxFreeze\initscripts_startup.py", line 13, in run module= import(name + "micap_erro")
importError: No module named 'codigo_erro_micap02micap_erro'
Is your python installation is ok? Path C:\Python35\encodings\latin_1.py
should be something like C:\Python35\Lib\encodings\latin_1.py
Is correct, is this:
C: \Python35\Lib\encodings
Sorry to interrupt but it seems that your problem is different from the one of this ticket ("no module named startup"), maybe open a new issue?
In this case will I open a new topic myself? Or is there a way to redirect?
new issue in:
I'm facing an issue with cx_freeze , i'm able to build the executable program but upon launching it using ./sqrt
(sqrt.py is the script) i'm getting the following error : Import Error :no module named __startup__
. I'm using cx_Freeze ver- 5.0.2 on a Linux System , Python 2.7 .
Contents of setup.py are as follows :
from cx_Freeze import setup, Executable
setup(
name = "sqrt",
version = "0.1",
description = "I produce square roots!",
executables = [Executable("sqrt.py")]
)
Contents of sqrt.py are as follows :
import math
sqrt = math.sqrt
x = int(raw_input("Please ente a number : " ))
y = sqrt(x)
print y
I've build the application using the following command : python setup.py build
which creates a build folder with another sub folder named exe.linux-x86_64-2.7
which in turn contains a sqrt , libpython2.7.so.1.0
file (no extensions) and another lib
folder.
The lib
folder contains a python2.7
folder and a python27.zip
. I've also followed with @anthony-tuininga advice to create a symlink to 'lib64' , which does not exist on my system(a 64 bit system). Is the problem caused due to the absence of lib64
?
Was there a general change in where the libraries are stored and is it the same on all platforms?
Like described in this gist there are some problems when freezing distutils from a virtual environment. The workaround in the gist is working but with an upgrade to cx_freeze 5.0.2 I had to change the path to distutils for windows to "lib/distutils" but for osx it had to leave it at "distutils".
So it seems the paths are differently handles on windows and OSX.
Sorry, my last commit was wrong. It has to be the same path for both platforms "lib/distutils"
Is there any update on this?
@hron84 Try this PR pip install git+https://github.com/klensy/cx_Freeze.git@fix_209
, if ok, will merge it.
@klensy I will give a shot as soon as I can. I cannot promise this weekend because... life stuffs. Sorry.
I have merged the PR into the v5.x branch. Please let me know if there are any problems with it. I plan to make a new cx_Freeze 5.x release soon.
Has this problem been resolved? I am using Ubuntu 16.04 with python 2.7.12 and I just installed cx_Freeze today using
sudo pip install cx_Freeze
but the error still shows
ImportError: No module named __startup__
I have tried the above git update by @klensy but it told me
Requirement already satisfied (use --upgrade to upgrade): cx-Freeze==5.0.2 from git+https://github.com/klensy/cx_Freeze.git@fix_209 in /usr/local/lib/python2.7/dist-packages
@keithyuck
Try reinstall (remove cx_freeze and then install) with pip install git+https://github.com/anthony-tuininga/cx_Freeze.git@v5.x
New version not released yet (as far as i can see).
@klensy should I uninstall my package first? (and how) it doesn't seem to let me reinstall
Requirement already satisfied (use --upgrade to upgrade): cx-Freeze==5.0.2 from git+https://github.com/anthony-tuininga/cx_Freeze.git@v5.x in /usr/local/lib/python2.7/dist-packages
and thanks for the fast reply, hope I won't screw up your Friday night :)
@keithyuck
no.
pip uninstall cx_Freeze
pip install git+https://github.com/anthony-tuininga/cx_Freeze.git@v5.x
@klensy the problem persists
This is the error I get when building
running build running build_exe Traceback (most recent call last): File "setup.py", line 3, in <module> setup(name="create_adv", version="0.1", description="", executables=[Executable("create_adv.py")]) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/dist.py", line 349, in setup distutils.core.setup(**attrs) File "/usr/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run self.run_command(cmd_name) File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/dist.py", line 219, in run freezer.Freeze() File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/freezer.py", line 617, in Freeze self._FreezeExecutable(executable) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/freezer.py", line 200, in _FreezeExecutable finder.IncludeFile(exe.script, exe.moduleName) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 633, in IncludeFile deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 326, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 384, in _InternalImportModule namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 463, in _LoadModule self._RunHook("load", module.name, module) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 536, in _RunHook method(self, *args) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/hooks.py", line 564, in load_scipy finder.IncludePackage("scipy._lib") File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 653, in IncludePackage module = self._ImportModule(name, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 384, in _InternalImportModule namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 569, in _ScanCode fromList, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 210, in _EnsureFromList self._ImportModule(subModuleName, deferredImports, caller) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 345, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 384, in _InternalImportModule namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 569, in _ScanCode fromList, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 210, in _EnsureFromList self._ImportModule(subModuleName, deferredImports, caller) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 345, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 326, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 569, in _ScanCode fromList, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 210, in _EnsureFromList self._ImportModule(subModuleName, deferredImports, caller) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 588, in _ScanCode topLevel = False) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 326, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 345, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 384, in _InternalImportModule namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 416, in _LoadModule namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 485, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 588, in _ScanCode topLevel = False) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 569, in _ScanCode fromList, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 210, in _EnsureFromList self._ImportModule(subModuleName, deferredImports, caller) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 310, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 474, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 588, in _ScanCode topLevel = False) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 564, in _ScanCode module, relativeImportIndex) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 326, in _ImportModule deferredImports, namespace = namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 403, in _InternalImportModule parentModule, namespace) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 463, in _LoadModule self._RunHook("load", module.name, module) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/finder.py", line 536, in _RunHook method(self, *args) File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/hooks.py", line 625, in load_Tkinter tk = _tkinter.create() _tkinter.TclError: no display name and no $DISPLAY environment variable
@keithyuck
I cant see No module named __startup__
error, so this is separate issue.
@klensy
The No module named __startup__
error shows up when I attempt to run the executable created. So is the error due to the script not executing completely and not related to this thread?
@arnuschky Did you find solution for this?
OS: Ubuntu 18.04.1 LTS Python: 3.8-dev (3.8.0a0) pip 18.0 Build normal:
python setup.py build
Still happend when I try execute the file via Terminal:
cd build/exe.linux-x86_64-3.8/
./app
Immediately shows the message:
ModuleNotFoundError: No module named '__startup__
OS: Ubuntu 18.04.1 LTS Python: 3.7 pip 10.0.1
When I try execute the file via Terminal:
cd build/exe.linux-x86_64-3.7/
./app
Immediately shows the message:
Fatal Python error: initfsencoding: unable to load the file system codec
ImportError: invalid flags 1540001804 in 'encodings'
Current thread 0x00007f5ec75a0200 (most recent call first):
Aborted (core dumped)
Tested
cx-Freeze versions:
5.1.1 pip install cx_Freeze --upgrade
6.0b1 pip install cx_Freeze==6.0b1
I got the same error while using cx_Freeze 5.1.1 which is indicated to be removed in the build of 5.1. Please do help to fix it. Thank you.
Originally reported by: Anonymous
When trying to run the created executable an import error occurs. ImportError: No module named startup
Have also tried to run the samples from the source folder without success
Running on Mint17.3, Python 2.7, cx_Freeze 5