Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #170 (new defect)

Opened 5 months ago

Last modified 2 months ago

pycrypto egg with python 2.6 on win32 - UnboundLocalError

Reported by: michal.dtz@gmail.com Owned by: giovannibajo
Priority: normal Milestone:
Component: PyInstaller Version:
Severity: blocker Keywords:
Cc:

Description

Hi there,

I'm trying to build an application, that includes pycrypto, and I hit the following error. I don't know anything about PyInstaller? internals, nor I have time to learn it, so at least maybe the log file will help you fixing this bug...

I: Skipping mscoree.dll dependency of msvcm90.dll I: Analyzing C:\Windows\system32\python26.dll I: Dependent assemblies of C:\Windows\system32\python26.dll: I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none I: Skipping KERNEL32.dll dependency of python26.dll I: Skipping USER32.dll dependency of python26.dll I: Skipping ADVAPI32.dll dependency of python26.dll I: Skipping SHELL32.dll dependency of python26.dll I: Analyzing C:\Python26\lib\site-packages\pycrypto-2.0.1-py2.6-win32.egg\Crypto /Cipher/AES.pyd Traceback (most recent call last):

File "Build.py", line 1291, in <module>

main(args[0], configfilename=opts.configfile)

File "Build.py", line 1269, in main

build(specfile)

File "Build.py", line 1232, in build

execfile(spec)

File "client\client.spec", line 3, in <module>

pathex=C:\\Users\\FHU Kagami\\Downloads\\branches\\py26win?)

File "Build.py", line 292, in init

self.postinit()

File "Build.py", line 243, in postinit

self.assemble()

File "Build.py", line 405, in assemble

platform=target_platform))

File "C:\Users\FHU Kagami\Downloads\branches\py26win\bindepend.py", line 310,

in Dependencies

for ftocnm, fn in selectAssemblies(pth):

File "C:\Users\FHU Kagami\Downloads\branches\py26win\bindepend.py", line 376,

in selectAssemblies

for assembly in getAssemblies(pth):

File "C:\Users\FHU Kagami\Downloads\branches\py26win\bindepend.py", line 344,

in getAssemblies

if RT_MANIFEST in res and len(res[RT_MANIFEST]):

UnboundLocalError?: local variable 'res' referenced before assignment

Attachments

Change History

Changed 5 months ago by fhoech

Thanks for the report. Can you try the latest revision of the py26win branch, it should now raise an exception which will hopefully hint at the actual problem (getAssemblies couldn't get resources from a binary).

Changed 5 months ago by fhoech

Turns out pycrypto support is currently broken (also in 1.4 and trunk r817, with Python 2.5) if pycrypto is installed as egg. A work-around would be installing pycrypto unpacked.

Add/Change #170 (pycrypto egg with python 2.6 on win32 - UnboundLocalError)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.