CXF works in virtual env, but cannot import __startup__ normally

Issue #240 new
vbadrin
created an issue

I have read Issue #209, and far as I can tell, my problem is different even though the symptom is the same.

When I run python setup.py build in my virtual environment, everything works just fine. In my regular shell, the build goes ok, but I get the following error message.

"ImportError: No module named startup"

My build output below. Ideas..?

--

OS : Ubuntu 18.04

Linux : 4.4.0-77-generic

Python : 2.7

CXFreeze version : 5.0

Build output..

running build running build_exe creating directory build/exe.linux-x86_64-2.7 copying /usr/local/lib/python2.7/dist-packages/cx_Freeze/bases/Console -> build/exe.linux-x86_64-2.7/hello 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 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/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 helloinit /usr/local/lib/python2.7/dist-packages/cx_Freeze/initscripts/Console.py m hellomain hello.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 zipimport
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