Skip to main content.
June 26th, 2009

Making py2exe Work with Paramiko

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

No Comments »

June 20th, 2009

Mini Searches with Answers

Posted by Greg Pinero (Primary Searcher) as Uncategorized at 5:00 AM UTC

No Comments »

June 19th, 2009

Tips for Using the Paramiko SFTP Client

Posted by Greg Pinero (Primary Searcher) as Python at 10:53 PM UTC

No Comments »

June 18th, 2009

PyCrypto - Fixing Setup script exited with error: The .NET Framework SDK needs to be instal led before building extensions for Python

Posted by Greg Pinero (Primary Searcher) as Python at 12:30 PM UTC

No Comments »

June 14th, 2009

Hide Furniture Scratches - An Inexpensive Method

Posted by Greg Pinero (Primary Searcher) as Other at 5:42 AM UTC

No Comments »

« Previous Entries