Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PyCrypto ImportError with 32-bit Linux build #124
Hey Kevin, I'm trying to get an fteproxy build working in a 32-bit Ubuntu 13.10 VM. Running
Is it possible _counter.so didn't successfully make it from /usr/local/lib/python2.7/dist-packages/Crypto/Util/_counter.so into the out00-PYZ.pyz bundle, or did I just mess something up on my system?
I was able to easily recreate this on Ubuntu 13.10 32-bit (Desktop) using the standard fteproxy build instructions  on a fresh VM.
I tried to figure out how to resolve this problem. As an example, I tried replacing the pycypto install that is default on Ubuntu with the one from pip, but this breaks Ubuntu. I also tried using PyCrypto's hiddenimport  functionality to explicitly include _counter and Crypto.Util.counter, but to no avail.
In addition, it appears that this problem is only on Ubuntu 13.10. This is not an issue on 10.x/12.x or 13.04.
Ultimately, the workaround for this issue is installing the latest development version of pyinstaller . For sure not ideal, but I think this is good enough for now.
Can you test if this workaround resolves the problem for you? I've updated  to reflect this issue.
Thanks for looking into this. Just had a chance to give this a shot and here's what happened:
Inspecting VERSION, it turns out it's getting the value
diff --git a/PyInstaller/__init__.py b/PyInstaller/__init__.py index fb6bb57..13601eb 100644 --- a/PyInstaller/__init__.py +++ b/PyInstaller/__init__.py @@ -120,6 +120,6 @@ def get_version(): if len(VERSION) >= 4 and VERSION: version = '%s%s' % (version, VERSION) # include git revision in version string - if VERSION == 'dev' and VERSION > 0: + if VERSION == 'dev' and len(VERSION) >= 5 and VERSION > 0: version = '%s-%s' % (version, VERSION) return version
and then was able to pip install from it and then build fteproxy successfully.
What revision of pyinstaller did you pull when you tried this? I'm on pyinstaller/pyinstaller@
Thanks again for the help with this!
My pleasure, and thank you!
On Tue, Apr 1, 2014 at 1:11 PM, Kevin P. Dyer email@example.com: