Dear list,
I offer some helpful advice on how to get pygsl partially installed on
Snow Leopard. However, after getting the setup.py script to work, the
installation step fails. Can anybody help?
1. Update the Makefile of you Python installation
I initially received lots of lipo 'unknown architecture' errors when
first installation. I tracked this down to the Python Makefile for by
Python installation which for me was here,
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/
config/Makefile
I then changed all the reference to the MacOS version number (which I
think were MacOS10.4u.sdk or something like that) point to the Snow
Leopard SDK in /Developers/SDKs/MacOS10.6.sdk.
The source code will now compile using,
sudo python setup.py install
2. Move the installation
Pygsl is installed in /Library/Python/2.6/site-packages, so I then
move this manually (cut and paste) to /Library/Frameworks/
Python.framework/Versions/Current/lib/python2.6/site-packages
3. Test in Terminal (this fails for me can you help!)
The shell cannot detect pygsl.
In a new terminal,
$ python -v
>>> import pygsl
import pygsl # directory /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/pygsl
# /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/pygsl/__init__.pyc matches /Library/Frameworks/
Python.framework/Versions/2.6/lib/python2.6/site-packages/pygsl/
__init__.py
import pygsl # precompiled from /Library/Frameworks/Python.framework/
Versions/2.6/lib/python2.6/site-packages/pygsl/__init__.pyc
dlopen("/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/pygsl/init.so", 2);
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/pygsl/__init__.py", line 57, in <module>
import pygsl.init
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/pygsl/init.so, 2): Symbol not found:
_gsl_version
Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/pygsl/init.so
Expected in: flat namespace
in /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/pygsl/init.so
Best regards,
Dan
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
pygsl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pygsl-discuss