Problems using Pydev [message #638806] |
Fri, 12 November 2010 11:06  |
Eclipse User |
|
|
|
Hi group,
I am a beginner with Eclipse and Python. I am using Mac OS 10.6.4 (Snow Leopard)
The installation of Eclipse runs and I can also run Python.
I get the following error when using e.g. the pylab or sympy package:
...
ImportError: dlopen(/opt/local/lib/python2.5/site-packages/matplotlib/_pa th.so, 2): no suitable image found. Did find:
/opt/local/lib/python2.5/site-packages/matplotlib/_path.so: mach-o, but wrong architecture
I performed a platform check within eclipse:
platform.mac_ver() gives
('10.6.4', ('', '', ''), 'i386')
the same check in the terminal gives:
('4294967306.4294967302.4294967300', ('', '', ''), '')
I found that here might be a problem with the "architecture", however I did not find a solution.
What do I have to do get all python packages working in Eclipse?
Actually the same python script runs without errors in the terminal.
Really need help on this.
Best regards
jcdx
|
|
|
|
[solved] Re: Problems using Pydev [message #638961 is a reply to message #638806] |
Sat, 13 November 2010 19:31  |
Eclipse User |
|
|
|
Ok, problem solved.
In order to have matplotlib enabled I found out that I have to use at least python 2.6 on MacOS 64.
The path to the interpreter has to look in the framework path.
On my system:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ Resources/Python.app/Contents/MacOS/Python
To get there use:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ bin/python2.6
So everything is about finding the right path for the interpreter.
I am a little bit confused about the setup of Python on MacOS. Using /usr/bin/python2.6 e.g. does not work.
Have fun using eclipse.
|
|
|
Powered by
FUDForum. Page generated in 0.04381 seconds