This is one of the things that I tried, but to no effect.

The following will reproduce the problem on windows.

C:\Erick\intg> python Makespec.py --onefile test.py
C:\Erick\intg> python Build.py test.spec
C:\Erick\intg> test.exe
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "C:\tools\pyinstaller_1.0\iu.py", line 307, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "C:\tools\pyinstaller_1.0\iu.py", line 392, in doimport
    exec co in mod.__dict__
  File "C:\Erick\intg\buildtest\out1.pyz/paramiko", line 67, in ?
  File "C:\tools\pyinstaller_1.0\iu.py", line 307, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "C:\tools\pyinstaller_1.0\iu.py", line 392, in doimport
    exec co in mod.__dict__
  File "C:\Erick\intg\buildtest\out1.pyz/paramiko.transport", line 26, in ?
  File "C:\tools\pyinstaller_1.0\iu.py", line 307, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "C:\tools\pyinstaller_1.0\iu.py", line 392, in doimport
    exec co in mod.__dict__
  File "C:\Erick\intg\buildtest\out1.pyz/paramiko.common", line 106, in ?
  File "C:\Erick\intg\buildtest\out1.pyz/Crypto.Util.randpool", line 82, in 
__init__
AttributeError: 'module' object has no attribute 'digest_size'

test.py
=================
import paramiko

print "try me"
=================

--
--ERick

 -------------- Original message ----------------------
From: "Giovanni Bajo" <[EMAIL PROTECTED]>
> [EMAIL PROTECTED] wrote:
> 
> >     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?
> 
> Given the code, you should probably import every possible hash. Something
> along the lines of:
> 
> hook-Crypto.Utile.randpool.py:
> ===============================
> hiddenimports = [ "Crypto.Hash.*" ]
> ===============================
> -- 
> Giovanni Bajo
> 
> _______________________________________________
> PyInstaller mailing list
> [email protected]
> http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller


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

Reply via email to