When running py2exe with a script importing Paramiko I noticed this in the output:
The following modules appear to be missing ... paramiko ...
And then in the log file created when I run the exe I saw this:
Traceback (most recent call last): ... ImportError: No module named paramiko
This has to do with py2exe not being able to handle egg files. So what I did is pulled out the paramiko directory from the egg, and placed that in my site-packages directory, and then deleted the egg. It works now though the setup function still tells me this:
The following modules appear to be missing
['Crypto.PublicKey._fastmath', 'Crypto.Util.winrandom', '_ssl', 'r_hmac']
Luckily as far as I can tell, I don’t use those modules anywhere.
This guy had the same problem and
made some sort of programmatic solution but it didn’t work for me. Since when I ran the setup function, it didn’t throw an ImportError.
Posted by Greg Pinero (Primary Searcher) as Python at 7:49 PM UTC
RSS 2.0