-
Notifications
You must be signed in to change notification settings - Fork 19
PyCrypto ImportError with 32-bit Linux build #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Noted, and investigating. |
I was able to easily recreate this on Ubuntu 13.10 32-bit (Desktop) using the standard fteproxy build instructions [1] 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 [2] 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 [3]. 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 [1] to reflect this issue. -Kevin [1] https://github.com/kpdyer/fteproxy/blob/master/BUILDING.md |
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[3]:
version = '%s%s' % (version, VERSION[3])
# include git revision in version string
- if VERSION[3] == 'dev' and VERSION[4] > 0:
+ if VERSION[3] == 'dev' and len(VERSION) >= 5 and VERSION[4] > 0:
version = '%s-%s' % (version, VERSION[4])
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! |
submitted a PR to pyinstaller: pyinstaller/pyinstaller#118 |
Thanks for that! Looks like your PR has already been merged. I'll add a specific revision of pyinstaller to the notes. |
My pleasure, and thank you! On Tue, Apr 1, 2014 at 1:11 PM, Kevin P. Dyer notifications@github.comwrote:
|
Hey Kevin, I'm trying to get an fteproxy build working in a 32-bit Ubuntu 13.10 VM. Running
./bin/fteproxy -h
from a clone of latest master works fine, but after runningmake dist
,fteproxy -h
from the built version produces the following: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?
Thanks!
The text was updated successfully, but these errors were encountered: