Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#35 cx_freeze can not import some package

4.3
open
nobody
None
6
4 hours ago
2012-12-11
hamilton
No

My scripts use paramiko。When i build a exe file,i get follow errors:

C:\Users\LENOVO\workspace\pydev>cxfreeze check_remote_host_v.01.py
copying C:\Python27\lib\site-packages\cx_Freeze\bases\Console.exe -> C:\Users\LENOVO\workspace\pydev\dist\check_remote_host_v.01.exe
copying C:\Windows\system32\python27.dll -> C:\Users\LENOVO\workspace\pydev\dist\python27.dll
writing zip file C:\Users\LENOVO\workspace\pydev\dist\check_remote_host_v.01.exe

Name File
---- ----
m ConfigParser C:\Python27\lib\ConfigParser.py
P Crypto C:\Python27\lib\site-packages\Crypto__init.py
P Crypto.Cipher C:\Python27\lib\site-packages\Crypto\Cipher__init
.py
m Crypto.Cipher.AES C:\Python27\lib\site-packages\Crypto\Cipher\AES.py
m Crypto.Cipher.ARC4 C:\Python27\lib\site-packages\Crypto\Cipher\ARC4.py
m Crypto.Cipher.Blowfish C:\Python27\lib\site-packages\Crypto\Cipher\Blowfish.py
m Crypto.Cipher.DES C:\Python27\lib\site-packages\Crypto\Cipher\DES.py
m Crypto.Cipher.DES3 C:\Python27\lib\site-packages\Crypto\Cipher\DES3.py
m Crypto.Cipher._AES C:\Python27\lib\site-packages\Crypto\Cipher_AES.pyd
m Crypto.Cipher._ARC4 C:\Python27\lib\site-packages\Crypto\Cipher_ARC4.pyd
m Crypto.Cipher._Blowfish C:\Python27\lib\site-packages\Crypto\Cipher_Blowfish.pyd
m Crypto.Cipher._DES C:\Python27\lib\site-packages\Crypto\Cipher_DES.pyd
m Crypto.Cipher._DES3 C:\Python27\lib\site-packages\Crypto\Cipher_DES3.pyd
m Crypto.Cipher.blockalgo C:\Python27\lib\site-packages\Crypto\Cipher\blockalgo.py
P Crypto.Hash C:\Python27\lib\site-packages\Crypto\Hash__init.py
m Crypto.Hash.HMAC C:\Python27\lib\site-packages\Crypto\Hash\HMAC.py
m Crypto.Hash.MD5 C:\Python27\lib\site-packages\Crypto\Hash\MD5.py
m Crypto.Hash.SHA C:\Python27\lib\site-packages\Crypto\Hash\SHA.py
m Crypto.Hash.SHA256 C:\Python27\lib\site-packages\Crypto\Hash\SHA256.py
m Crypto.Hash._SHA256 C:\Python27\lib\site-packages\Crypto\Hash_SHA256.pyd
m Crypto.Hash.hashalgo C:\Python27\lib\site-packages\Crypto\Hash\hashalgo.py
P Crypto.Protocol C:\Python27\lib\site-packages\Crypto\Protocol__init
.py
m Crypto.Protocol.KDF C:\Python27\lib\site-packages\Crypto\Protocol\KDF.py
P Crypto.PublicKey C:\Python27\lib\site-packages\Crypto\PublicKey__init.py
m Crypto.PublicKey.DSA C:\Python27\lib\site-packages\Crypto\PublicKey\DSA.py
m Crypto.PublicKey.RSA C:\Python27\lib\site-packages\Crypto\PublicKey\RSA.py
m Crypto.PublicKey._DSA C:\Python27\lib\site-packages\Crypto\PublicKey_DSA.py
m Crypto.PublicKey._RSA C:\Python27\lib\site-packages\Crypto\PublicKey_RSA.py
m Crypto.PublicKey._slowmath C:\Python27\lib\site-packages\Crypto\PublicKey_slowmath.py
m Crypto.PublicKey.pubkey C:\Python27\lib\site-packages\Crypto\PublicKey\pubkey.py
P Crypto.Random C:\Python27\lib\site-packages\Crypto\Random__init
.py
P Crypto.Random.Fortuna C:\Python27\lib\site-packages\Crypto\Random\Fortuna__init.py
m Crypto.Random.Fortuna.FortunaAccumulator C:\Python27\lib\site-packages\Crypto\Random\Fortuna\FortunaAccumulator.py
m Crypto.Random.Fortuna.FortunaGenerator C:\Python27\lib\site-packages\Crypto\Random\Fortuna\FortunaGenerator.py
m Crypto.Random.Fortuna.SHAd256 C:\Python27\lib\site-packages\Crypto\Random\Fortuna\SHAd256.py
P Crypto.Random.OSRNG C:\Python27\lib\site-packages\Crypto\Random\OSRNG__init
.py
m Crypto.Random.OSRNG.fallback C:\Python27\lib\site-packages\Crypto\Random\OSRNG\fallback.py
m Crypto.Random.OSRNG.nt C:\Python27\lib\site-packages\Crypto\Random\OSRNG\nt.py
m Crypto.Random.OSRNG.posix C:\Python27\lib\site-packages\Crypto\Random\OSRNG\posix.py
m Crypto.Random.OSRNG.rng_base C:\Python27\lib\site-packages\Crypto\Random\OSRNG\rng_base.py
m Crypto.Random.OSRNG.winrandom C:\Python27\lib\site-packages\Crypto\Random\OSRNG\winrandom.pyd
m Crypto.Random._UserFriendlyRNG C:\Python27\lib\site-packages\Crypto\Random_UserFriendlyRNG.py
m Crypto.Random.random C:\Python27\lib\site-packages\Crypto\Random\random.py
P Crypto.Util C:\Python27\lib\site-packages\Crypto\Util__init.py
m Crypto.Util.Counter C:\Python27\lib\site-packages\Crypto\Util\Counter.py
m Crypto.Util._counter C:\Python27\lib\site-packages\Crypto\Util_counter.pyd
m Crypto.Util._number_new C:\Python27\lib\site-packages\Crypto\Util_number_new.py
m Crypto.Util.asn1 C:\Python27\lib\site-packages\Crypto\Util\asn1.py
m Crypto.Util.number C:\Python27\lib\site-packages\Crypto\Util\number.py
m Crypto.Util.py21compat C:\Python27\lib\site-packages\Crypto\Util\py21compat.py
m Crypto.Util.py3compat C:\Python27\lib\site-packages\Crypto\Util\py3compat.py
m Crypto.Util.strxor C:\Python27\lib\site-packages\Crypto\Util\strxor.pyd
m Crypto.pct_warnings C:\Python27\lib\site-packages\Crypto\pct_warnings.py
m StringIO

m UserDict

m
builtin
m
future C:\Python27\lib__future.py
m main check_remote_host_v.01.py
m _abcoll
m _bisect
m _codecs
m _codecs_cn
m _codecs_hk
m _codecs_iso2022
m _codecs_jp
m _codecs_kr
m _codecs_tw
m _collections
m _ctypes C:\Python27\DLLs_ctypes.pyd
m _functools
m _hashlib C:\Python27\DLLs_hashlib.pyd
m _heapq
m _locale
m _md5
m _multibytecodec
m _random
m _sha
m _sha256
m _sha512
m _socket C:\Python27\DLLs_socket.pyd
m _sre
m _ssl C:\Python27\DLLs_ssl.pyd
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
m _winreg
m abc
m argparse C:\Python27\lib\argparse.py
m array
m atexit C:\Python27\lib\atexit.py
m base64
m bdb C:\Python27\lib\bdb.py
m binascii
m bisect C:\Python27\lib\bisect.py
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
m collections C:\Python27\lib\collections.py
m copy
m copy_reg
P ctypes C:\Python27\lib\ctypes__init.py
m ctypes._endian C:\Python27\lib\ctypes_endian.py
m ctypes.wintypes C:\Python27\lib\ctypes\wintypes.py
m cx_Freeze
init C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.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

m encodings.aliases

m encodings.ascii

m encodings.base64_codec

m encodings.big5

m encodings.big5hkscs

m encodings.bz2_codec

m encodings.charmap

m encodings.cp037

m encodings.cp1006

m encodings.cp1026

m encodings.cp1140

m encodings.cp1250

m encodings.cp1251

m encodings.cp1252

m encodings.cp1253

m encodings.cp1254

m encodings.cp1255

m encodings.cp1256

m encodings.cp1257

m encodings.cp1258

m encodings.cp424

m encodings.cp437

m encodings.cp500

m encodings.cp720

m encodings.cp737

m encodings.cp775

m encodings.cp850

m encodings.cp852

m encodings.cp855

m encodings.cp856

m encodings.cp857

m encodings.cp858

m encodings.cp860

m encodings.cp861

m encodings.cp862

m encodings.cp863

m encodings.cp864

m encodings.cp865

m encodings.cp866

m encodings.cp869

m encodings.cp874

m encodings.cp875

m encodings.cp932

m encodings.cp949

m encodings.cp950

m encodings.euc_jis_2004

m encodings.euc_jisx0213

m encodings.euc_jp

m encodings.euc_kr

m encodings.gb18030

m encodings.gb2312

m encodings.gbk

m encodings.hex_codec

m encodings.hp_roman8

m encodings.hz

m encodings.idna

m encodings.iso2022_jp

m encodings.iso2022_jp_1

m encodings.iso2022_jp_2

m encodings.iso2022_jp_2004
m encodings.iso2022_jp_3

m encodings.iso2022_jp_ext
m encodings.iso2022_kr

m encodings.iso8859_1

m encodings.iso8859_10

m encodings.iso8859_11

m encodings.iso8859_13

m encodings.iso8859_14

m encodings.iso8859_15

m encodings.iso8859_16

m encodings.iso8859_2

m encodings.iso8859_3

m encodings.iso8859_4

m encodings.iso8859_5

m encodings.iso8859_6

m encodings.iso8859_7

m encodings.iso8859_8

m encodings.iso8859_9

m encodings.johab

m encodings.koi8_r

m encodings.koi8_u

m encodings.latin_1

m encodings.mac_arabic

m encodings.mac_centeuro

m encodings.mac_croatian

m encodings.mac_cyrillic

m encodings.mac_farsi

m encodings.mac_greek

m encodings.mac_iceland

m encodings.mac_latin2

m encodings.mac_roman

m encodings.mac_romanian

m encodings.mac_turkish

m encodings.mbcs

m encodings.palmos

m encodings.ptcp154

m encodings.punycode

m encodings.quopri_codec

m encodings.raw_unicode_escape
m encodings.rot_13

m encodings.shift_jis

m encodings.shift_jis_2004
m encodings.shift_jisx0213
m encodings.string_escape
m encodings.tis_620

m encodings.undefined

m encodings.unicode_escape
m encodings.unicode_internal
m encodings.utf_16

m encodings.utf_16_be

m encodings.utf_16_le

m encodings.utf_32

m encodings.utf_32_be

m encodings.utf_32_le

m encodings.utf_7

m encodings.utf_8

m encodings.utf_8_sig

m encodings.uu_codec

m encodings.zlib_codec

m errno

m exceptions

m fnmatch C:\Python27\lib\fnmatch.py
m functools C:\Python27\lib\functools.py
m gc

m genericpath

m getopt C:\Python27\lib\getopt.py
m getpass C:\Python27\lib\getpass.py
m gettext C:\Python27\lib\gettext.py
m hashlib C:\Python27\lib\hashlib.py
m heapq C:\Python27\lib\heapq.py
m imp

m inspect C:\Python27\lib\inspect.py
m itertools

m keyword C:\Python27\lib\keyword.py
m linecache

m locale C:\Python27\lib\locale.py
P logging C:\Python27\lib\logging__init
.py
m marshal
m math
m md5 C:\Python27\lib\md5.py
m mmap
m msvcrt
m nt
m ntpath
m opcode C:\Python27\lib\opcode.py
m operator
m optparse C:\Python27\lib\optparse.py
m os
P paramiko C:\Python27\lib\site-packages\paramiko__init.py
m paramiko.agent C:\Python27\lib\site-packages\paramiko\agent.py
m paramiko.auth_handler C:\Python27\lib\site-packages\paramiko\auth_handler.py
m paramiko.ber C:\Python27\lib\site-packages\paramiko\ber.py
m paramiko.buffered_pipe C:\Python27\lib\site-packages\paramiko\buffered_pipe.py
m paramiko.channel C:\Python27\lib\site-packages\paramiko\channel.py
m paramiko.client C:\Python27\lib\site-packages\paramiko\client.py
m paramiko.common C:\Python27\lib\site-packages\paramiko\common.py
m paramiko.compress C:\Python27\lib\site-packages\paramiko\compress.py
m paramiko.config C:\Python27\lib\site-packages\paramiko\config.py
m paramiko.dsskey C:\Python27\lib\site-packages\paramiko\dsskey.py
m paramiko.file C:\Python27\lib\site-packages\paramiko\file.py
m paramiko.hostkeys C:\Python27\lib\site-packages\paramiko\hostkeys.py
m paramiko.kex_gex C:\Python27\lib\site-packages\paramiko\kex_gex.py
m paramiko.kex_group1 C:\Python27\lib\site-packages\paramiko\kex_group1.py
m paramiko.logging22 C:\Python27\lib\site-packages\paramiko\logging22.py
m paramiko.message C:\Python27\lib\site-packages\paramiko\message.py
m paramiko.packet C:\Python27\lib\site-packages\paramiko\packet.py
m paramiko.pipe C:\Python27\lib\site-packages\paramiko\pipe.py
m paramiko.pkey C:\Python27\lib\site-packages\paramiko\pkey.py
m paramiko.primes C:\Python27\lib\site-packages\paramiko\primes.py
m paramiko.proxy C:\Python27\lib\site-packages\paramiko\proxy.py
m paramiko.resource C:\Python27\lib\site-packages\paramiko\resource.py
m paramiko.rsakey C:\Python27\lib\site-packages\paramiko\rsakey.py
m paramiko.server C:\Python27\lib\site-packages\paramiko\server.py
m paramiko.sftp C:\Python27\lib\site-packages\paramiko\sftp.py
m paramiko.sftp_attr C:\Python27\lib\site-packages\paramiko\sftp_attr.py
m paramiko.sftp_client C:\Python27\lib\site-packages\paramiko\sftp_client.py
m paramiko.sftp_file C:\Python27\lib\site-packages\paramiko\sftp_file.py
m paramiko.sftp_handle C:\Python27\lib\site-packages\paramiko\sftp_handle.py
m paramiko.sftp_server C:\Python27\lib\site-packages\paramiko\sftp_server.py
m paramiko.sftp_si C:\Python27\lib\site-packages\paramiko\sftp_si.py
m paramiko.ssh_exception C:\Python27\lib\site-packages\paramiko\ssh_exception.py
m paramiko.transport C:\Python27\lib\site-packages\paramiko\transport.py
m paramiko.util C:\Python27\lib\site-packages\paramiko\util.py
m paramiko.win_pageant C:\Python27\lib\site-packages\paramiko\win_pageant.py
m pdb C:\Python27\lib\pdb.py
m pickle C:\Python27\lib\pickle.py
m platform C:\Python27\lib\platform.py
m plistlib C:\Python27\lib\plistlib.py
m posixpath

m pprint C:\Python27\lib\pprint.py
m pyexpat C:\Python27\DLLs\pyexpat.pyd
m quopri

m random C:\Python27\lib\random.py
m re C:\Python27\lib\re.py
m repr

m select C:\Python27\DLLs\select.pyd
m sha C:\Python27\lib\sha.py
m shlex C:\Python27\lib\shlex.py
m signal

m socket C:\Python27\lib\socket.py
m sre_compile C:\Python27\lib\sre_compile.py
m sre_constants C:\Python27\lib\sre_constants.py
m sre_parse C:\Python27\lib\sre_parse.py
m ssl C:\Python27\lib\ssl.py
m stat

m string

m stringprep

m strop

m struct

m subprocess C:\Python27\lib\subprocess.py
m sys

m telnetlib C:\Python27\lib\telnetlib.py
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

m types

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
m weakref
P xml C:\Python27\lib\xml__init.py
P xml.parsers C:\Python27\lib\xml\parsers__init
.py
m xml.parsers.expat C:\Python27\lib\xml\parsers\expat.py
m zipimport
m zlib

Missing modules:
? Crypto.PublicKey._fastmath imported from Crypto.Util.number
? r_hmac imported from paramiko.packet
? win32api imported from platform
? win32con imported from platform
? win32gui imported from paramiko.win_pageant
? win32pipe imported from platform

copying C:\Python27\lib\site-packages\Crypto\Cipher_AES.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Cipher._AES.pyd
copying C:\Python27\lib\site-packages\Crypto\Cipher_ARC4.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Cipher._ARC4.pyd
copying C:\Python27\lib\site-packages\Crypto\Cipher_Blowfish.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Cipher._Blowfish.pyd
copying C:\Python27\lib\site-packages\Crypto\Cipher_DES.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Cipher._DES.pyd
copying C:\Python27\lib\site-packages\Crypto\Cipher_DES3.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Cipher._DES3.pyd
copying C:\Python27\lib\site-packages\Crypto\Hash_SHA256.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Hash._SHA256.pyd
copying C:\Python27\lib\site-packages\Crypto\Random\OSRNG\winrandom.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Random.OSRNG.winrandom.pyd
copying C:\Python27\lib\site-packages\Crypto\Util_counter.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Util._counter.pyd
copying C:\Python27\lib\site-packages\Crypto\Util\strxor.pyd -> C:\Users\LENOVO\workspace\pydev\dist\Crypto.Util.strxor.pyd
copying C:\Python27\DLLs_ctypes.pyd -> C:\Users\LENOVO\workspace\pydev\dist_ctypes.pyd
copying C:\Python27\DLLs_hashlib.pyd -> C:\Users\LENOVO\workspace\pydev\dist_hashlib.pyd
copying C:\Python27\DLLs_socket.pyd -> C:\Users\LENOVO\workspace\pydev\dist_socket.pyd
copying C:\Python27\DLLs_ssl.pyd -> C:\Users\LENOVO\workspace\pydev\dist_ssl.pyd
copying C:\Python27\DLLs\bz2.pyd -> C:\Users\LENOVO\workspace\pydev\dist\bz2.pyd
copying C:\Python27\DLLs\pyexpat.pyd -> C:\Users\LENOVO\workspace\pydev\dist\pyexpat.pyd
copying C:\Python27\DLLs\select.pyd -> C:\Users\LENOVO\workspace\pydev\dist\select.pyd
copying C:\Python27\DLLs\unicodedata.pyd -> C:\Users\LENOVO\workspace\pydev\dist\unicodedata.pyd

the package can import in idle,but can not import by cxfreeze

Discussion


Anonymous


Cancel   Add attachments