Glad to see the Installer making it back to the land of the living.  I am 
trying to build an exe that imports paramiko which in turn imports pycrypto 
(version 2.0, python 2.4); I have narrowed it down to pycrypto being the 
problem.  The exe builds fine but when I try to use the exe I get an 
AttributeError exception from Crypto.Util.randpool complaining that it has no 
attribute 'digest_size' - the actual python script does not generate this error.
    The warning file mentions an __import__hack, I have tried several different 
versions of a hook-Crypto.Util.randpool.py file but with no success.  Any ideas?


warningimage_nsm.txt file
===========================
W: delayed conditional __import__ hack detected at line 0 - 
Crypto.Util.randpool (C:\Python24\lib\site-packages\Crypto\Util\randpool.pyc)

Offending conditional __import__ code in Crypto\Util\randpoool
==================================================
class RandomPool:
    def __init__(self, numbytes = 160, cipher=None, hash=None):
        if hash is None:
            from Crypto.Hash import SHA as hash

        if isinstance(hash, types.StringType):
            # ugly hack to force __import__ to give us the end-path module
            hash = __import__('Crypto.Hash.'+hash,
                              None, None, ['new'])
            warnings.warn("'hash' parameter should now be a hashing module")





--ERick
_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to