Hi all,

I first confess to being a newbie, but that will probably be obvious.
I am trying to set up my powerbook for python work. It has 10.3.7, current dev xcode tools, etc.


I want Numeric, numarrray, and scipy modules.
I thought I would upgrade to python 2.4, and tried to do so with a framework install. I ran into problems (getting waste to link in the compile), and realized, that having never used a mac for development (I do have unix experience) I would be better sticking to the core system already provided, Python 2.3.


I then tried to use the package manager in MacPython-2.3 to install Numeric and numarray (from different sites). Numeric worked, numarray did not and was very out of date. So, i tried to compile the new version(1.1.1). I had some trouble with getting it to install, and while struggling with that I realized i better get rid of all traces of the aborted install of Python-2.4 framework.

I removed"
/Library/Frameworks/Python.framework [the default installation site for 2.4 build]
/Library/Python
/Applications/MacPython-2.4
~/.idlerc
/System/Library/Frameworks/Python.framwork/Versions/2.3/Headers/numarray
and any preference files I could find related to python.


over a couple of more times through this, I also
removed and reinstalled /Applications/MacPython-2.3 (twice)

I have removed other modules (Numeric, PIL. OpenGL), because I am not sure if there are conflicts.

Here is the problem:
I build and install numarray-1.1.1 into the /Library/Python directory
I start Python-2.3 and ask for it to import numarray
here is what I get:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/numarray/__init__.py", line 42, in ?
from numarrayall import *
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/numarray/numarrayall.py", line 1, in ?
from numerictypes import *
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/numarray/numerictypes.py", line 35, in ?
import numinclude
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/numarray/numinclude.py", line 4, in ?
import _ndarray
ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/Python: dyld: python can't open library: /Library/Frameworks/Python.framework/Versions/2.4/Python (No such file or directory, errno = 2)


It is still trying to link against a Python-2.4, even though I think I have removed all traces.
Why is it trying to find the long since removed Python-2.4??


Further,
if I import sys, and then import numarray, the import error is the same.
BUT, if I import sys, try to import numarray which generates the same error above, then type sys.path, and then import numarray, the error goes away, but the import seems to have failed none the less.


>>> sys.path
['', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python23.zip', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages']
>>> import numarray
>>> numarray.__version__
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute '__version__'


Any help would be greatly appreciated. Again, why is numarray thinking there is a 2.4 version. In other environments I would just reinstall Python-2.3 from the ground up, but working from the Apple CDs I do not see how to do that. If anyone knows how to do that, it could also be a solution, or not.

Cheers,
Kersey

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to