[Pythonmac-SIG] Using fink 2.2's site-packages in MacPython
Lance Boyle
lanceboyle@myrealbox.com
Thu, 3 Apr 2003 05:02:52 -0700
I have Python 2.2.2 working as both the "Apple" installation and the
fink installation. Included in these are packages Numeric, Scientific,
and scipy.
Now, I want to get happy using MacPython 2.2.2. I want to make the fink
site-packages directory work with MacPython, so I use EditPythonPrefs
and add a few lines to the list of search paths
(/sw/lib/bla_bla_bla--see below).
I'm not happy. Here's why:
Python 2.2.2 (#138, Oct 25 2002, 23:10:42) [CW CARBON GUSI2 THREADS GC]
Type "copyright", "credits" or "license" for more information.
MacPython IDE 1.0.1
>>> import sys
>>> sys.path
['HD0:Applications:Programming:Python:Python 2.2.2:Mac:Tools:IDE',
'HD0:Applications:Programming:Python:Python 2.2.2:',
'HD0:Applications:Programming:Python:Python 2.2.2',
'HD0:Applications:Programming:Python:Python 2.2.2:Mac:Lib',
'HD0:Applications:Programming:Python:Python 2.2.2:Mac:Lib:lib-compat',
'HD0:Applications:Programming:Python:Python
2.2.2:Mac:Lib:lib-scriptpackages',
'HD0:Applications:Programming:Python:Python 2.2.2:Lib:lib-dynload',
'HD0:Applications:Programming:Python:Python 2.2.2:Lib',
'HD0:Applications:Programming:Python:Python 2.2.2:Lib:site-packages',
'HD0:sw:lib:python2.2:site-packages',
'HD0:sw:lib:python2.2:site-packages:Numeric',
'HD0:sw:lib:python2.2:site-packages:Scientific',
'HD0:sw:lib:python2.2:site-packages:scipy']
>>> import Numeric
Traceback (most recent call last):
File "<input>", line 1, in ?
File "HD0:sw:lib:python2.2:site-packages:Numeric:Numeric.py", line
91, in ?
import multiarray
ImportError: No module named multiarray
>>> import Scientific
>>> import scipy
Traceback (most recent call last):
File "<input>", line 1, in ?
File "HD0:sw:lib:python2.2:site-packages:scipy:__init__.py", line 36,
in ?
from scipy_base import *
File "HD0:sw:lib:python2.2:site-packages:scipy_base:__init__.py",
line 99, in ?
import fastumath
ImportError: No module named fastumath
>>>
There are no such problems when using Python from Terminal.app. What
gives?
I get pretty much the same thing when I just copy the relevant folders
from /sw/lib/python2.2/site-packages into MacPython's site-packages
folder.
It looks like there's been a power surge in the transporter's pattern
buffer, Cap'n.
Jerry
Tempe, AZ