Re: [PyCUDA] pycuda 0.93 - Snow Leopard - error: invalid command 'bdist_egg'
Hi Ian, thanks for your comments. Indeed the error seems to point in this 32 vs 64 bit architecture problem under SnowLeopard. However I just can't find the piece which is not in 32 bit. My python is in 32-bit, i checked with [hal:Versions/2.6/bin] dkubas% /usr/bin/python -c 'import os; print os.uname()[4]' i386 and to check if there is another python: [hal:Versions/2.6/bin] dkubas% type -a python python is /usr/bin/python I am using CUDA-2.3 which for Mac only comes in 32-bit And I put a '-m32' and '-arch -i386' in all the places I could think off to build pycuda: [hal:~/pool/pycuda-0.93/build] dkubas% ls bdist.macosx-10.6-i386lib.macosx-10.6-i386-2.6 temp.macosx-10.6-i386-2.6 Have a good trip, cheers, Daniel Ian Ozsvald wrote: Hi Daniel. I'm just about to fly out of the country for a while so I'll just chip in briefly...you're on Snow Leopard and other people have had trouble with 32 bit vs 64 bit compiles in the past. Have you confirmed that your CUDA and pyCUDA (and Python?) are both either 32 bit or 64 bit (but not mixed)? Ian. On 6 March 2010 19:46, Daniel Kubas dku...@gmail.com wrote: Dear Andreas, thanks for the fast response! after removing all previous setup tools via sudo rm -Rf /Library/Python/2.6/site-packages/setup* and downloading http://pypi.python.org/pypi/distribute version 0.6.10 and installing sudo python distribute_setup.py the pycuda sudo make install finishes without crash. But I can't open the champagne yet, when trying to execute the test [hal:~/pool/pycuda-0.93/test] dkubas% python test_driver.py Traceback (most recent call last): File test_driver.py, line 3, in module import pycuda.autoinit File /Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/autoinit.py, line 1, in module import pycuda.driver as cuda File /Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/driver.py, line 1, in module from _driver import * ImportError: dlopen(/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/_driver.so, 2): no suitable image found. Did find: /Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/_driver.so: mach-o, but wrong architecture I get a wrong architecture :( giving up for today, cheers, Daniel Andreas Klöckner wrote: On Samstag 06 März 2010, Daniel Kubas wrote: Dear Mac-Pycuda users did someone of you encounter a error: invalid command 'bdist_egg' during sudo make install ? below my setup and more details of the error, thanks a million in advance for your help, cheers, Daniel I'm not sure, but this could partly be a result of the setuptools/distribute disaster. See http://wiki.tiker.net/DistributeVsSetuptools and try to use distribute instead of setuptools. HTH, Andreas ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
Re: [PyCUDA] pycuda 0.93 - Snow Leopard - error: invalid command 'bdist_egg'
On Montag 08 März 2010, Daniel Kubas wrote: Hi Andreas, yes I built the boost library (1.39) with the recommended flag 'architecture=x86' and even omitting '--with-libraries=signals,thread,python' If you haven't tried this already: Try poking at PyCUDA's _driver.so with 'otool -L' and then checking that all shared libraries depended on are actually 32-bit. Andreas signature.asc Description: This is a digitally signed message part. ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
Re: [PyCUDA] pycuda 0.93 - Snow Leopard - error: invalid command 'bdist_egg'
Hi, It works now! Although /usr/bin/python -c 'import os; print os.uname()[4]'says i386 it might be lying . I forced python into 32-bit mode using setenv 'VERSIONER_PYTHON_PREFER_32_BIT yes' (got this trick from http://mail.python.org/pipermail/python-list/2009-October/1222481.html) now the test runs like: /usr/bin/python test_driver.py /Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/compiler.py:11: UserWarning: call_capture_stdout is deprecated: use call_capture_output instead return call_capture_stdout([nvcc, --version]) -- Ran 16 tests in 0.130s OK :-) I just hope the 'UserWarning' is not critical and I can finally start using Pycuda for my science and find exoplanets with it ;-) cheers, Daniel Andreas Klöckner wrote: On Montag 08 März 2010, Daniel Kubas wrote: Hi Andreas, yes I built the boost library (1.39) with the recommended flag 'architecture=x86' and even omitting '--with-libraries=signals,thread,python' If you haven't tried this already: Try poking at PyCUDA's _driver.so with 'otool -L' and then checking that all shared libraries depended on are actually 32-bit. Andreas ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
Re: [PyCUDA] pycuda 0.93 - Snow Leopard - error: invalid command 'bdist_egg'
On Montag 08 März 2010, Daniel Kubas wrote: Hi, It works now! Glad to hear that. (got this trick from http://mail.python.org/pipermail/python-list/2009-October/1222481.html) Bryan also put that trick on http://wiki.tiker.net/PyCuda/Installation/Mac#Notes_about_Snow_Leopard a while ago, I think. I just hope the 'UserWarning' is not critical and I can finally start using Pycuda for my science and find exoplanets with it ;-) It isn't. If you'd like to not see it, downgrade to Pytools 9 or upgrade PyCUDA to git master. Andreas signature.asc Description: This is a digitally signed message part. ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
Re: [PyCUDA] pycuda 0.93 - Snow Leopard - error: invalid command 'bdist_egg'
Dear Andreas, thanks for the fast response! after removing all previous setup tools via sudo rm -Rf /Library/Python/2.6/site-packages/setup* and downloading http://pypi.python.org/pypi/distribute version 0.6.10 and installing sudo python distribute_setup.py the pycuda sudo make install finishes without crash. But I can't open the champagne yet, when trying to execute the test [hal:~/pool/pycuda-0.93/test] dkubas% python test_driver.py Traceback (most recent call last): File test_driver.py, line 3, in module import pycuda.autoinit File /Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/autoinit.py, line 1, in module import pycuda.driver as cuda File /Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/driver.py, line 1, in module from _driver import * ImportError: dlopen(/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/_driver.so, 2): no suitable image found. Did find: /Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/_driver.so: mach-o, but wrong architecture I get a wrong architecture :( giving up for today, cheers, Daniel Andreas Klöckner wrote: On Samstag 06 März 2010, Daniel Kubas wrote: Dear Mac-Pycuda users did someone of you encounter a error: invalid command 'bdist_egg' during sudo make install ? below my setup and more details of the error, thanks a million in advance for your help, cheers, Daniel I'm not sure, but this could partly be a result of the setuptools/distribute disaster. See http://wiki.tiker.net/DistributeVsSetuptools and try to use distribute instead of setuptools. HTH, Andreas ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net