Which version of py2app do you use? Do you use the system python (/usr/bin/python) or a custom install (python.org installer, macports, homebrew, self built, ...)? If you use the system python: which OSX release do you use?
Ronald On 11 Apr, 2012, at 10:51, Terry Simons wrote: > Hi, > > I'm using py2applet to build a tool that uses paramiko/pycrypto. > > Everything seems to build fine, but I get an error when launching my app that > pycrypto's Crypto/Util/_counter.so object couldn't be found. > > It looks like the app is trying to load it from the OS installed Python, > which I am a bit surprised by, since I've included --site-packages, and > everything appears to be getting bundled up correctly. > > I poked around in the module and didn't find any hard-coded paths or anything > like that, so I'm at a loss, but it looks like it's attempting to load from > /usr/lib instead of my App's bundle... is that a red herring, or is it really > loading from the wrong place? > > The _counter.so file is definitely present in the App's > Contents/Resources/lib/python2.7/lib-dynload directory, but the app isn't > apparently finding it when it launches. > > Here's the error that I'm seeing: > > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "build/bdist.macosx-10.7-intel/egg/paramiko/__init__.py", line 69, in > <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "build/bdist.macosx-10.7-intel/egg/paramiko/transport.py", line 32, in > <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "build/bdist.macosx-10.7-intel/egg/paramiko/util.py", line 32, in > <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "build/bdist.macosx-10.7-intel/egg/paramiko/common.py", line 98, in > <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "build/bdist.macosx-10.7-intel/egg/Crypto/Random/__init__.py", line > 29, in <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "build/bdist.macosx-10.7-intel/egg/Crypto/Random/_UserFriendlyRNG.py", > line 38, in <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File > "build/bdist.macosx-10.7-intel/egg/Crypto/Random/Fortuna/FortunaAccumulator.py", > line 39, in <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File > "build/bdist.macosx-10.7-intel/egg/Crypto/Random/Fortuna/FortunaGenerator.py", > line 35, in <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "build/bdist.macosx-10.7-intel/egg/Crypto/Util/Counter.py", line 30, > in <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "Crypto/Util/_counter.pyc", line 18, in <module> > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > File "Crypto/Util/_counter.pyc", line 15, in __load > 4/11/12 1:29:47.273 AM [0x0-0x115115].org.pythonmac.unspecified.test_example: > ImportError: '/usr/lib/python2.7/lib-dynload/Crypto/Util/_counter.so' not > found > > Thanks for any suggestions. > > - Terry > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG