[SciPy-user] Scipy on MacOS X, troubles

Aaron Hoover ahoover at eecs.berkeley.edu
Fri Nov 3 14:22:50 EST 2006


Just thought I'd chime in with another possible solution. I seem to 
remember seeing similar errors
after compiling SciPy on my MBP. If I recall correctly, updating my 
cctools fixed the problem.

-Aaron

Erin Sheldon wrote:
> Hi Marco -
>
> I also had success with MacPorts (formerly darwinports).
> It seems to be a very stable solution.  For me it required
> compiling gcc 4.1, however, so it may require patience.
>
> I was pleased enough to create at how-to on
> this wiki page:
>   http://howdy.physics.nyu.edu/index.php/Numpy_For_Mac_Using_Macports
>
> Erin
>
> On 11/3/06, Sam frizou <excellent.frizou at gmail.com> wrote:
>   
>> Hi,
>>
>> I installed numpy and scipy on tiger with darminports (py-numpy and py-scipy)
>>
>> everything works well.
>>
>> On 11/3/06, Marco <gaedol at gmail.com> wrote:
>>     
>>> Hi all,
>>> new to the ML, here. :)
>>>
>>> I have some troubles with SciPy on Tiger.
>>>
>>> I have complied scipy (and numpy) on my laptop  (ibook g4) using all
>>> the hints on the "Installing SciPy on MacOSX" page, but i still have
>>> some problems.
>>> If i do something list "import scipy", on python 2.4.3 (ActiveState),
>>> it all runs well, and i have scipy to use.
>>> If, instead, i use "from scipy import *" then i obtain, as an answer
>>> from python:
>>>
>>>       
>>>>>> from scipy import *
>>>>>>             
>>> Traceback (most recent call last):
>>>   File "<stdin>", line 1, in ?
>>>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/__init__.py",
>>> line 5, in ?
>>>     import umfpack
>>>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/__init__.py",
>>> line 3, in ?
>>>     from umfpack import *
>>>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/umfpack.py",
>>> line 11, in ?
>>>     import scipy.sparse as sp
>>>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/__init__.py",
>>> line 5, in ?
>>>     from sparse import *
>>>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparse.py",
>>> line 12, in ?
>>>     import sparsetools
>>> ImportError: Failure linking new module:
>>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so:
>>> Symbol not found: _sprintf$LDBLStub
>>>   Referenced from:
>>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so
>>>   Expected in: dynamic lookup
>>>
>>>
>>> Now,
>>> i could modify the codebase to use the "import scipy" and not "from
>>> scipy import *" (that's code i've been writing on linux and then moved
>>> to mac), but it would take time, maybe too much.
>>>
>>> I have been lookin on list archives, and found something but i've not
>>> really understood what to do...
>>> So,
>>> any good soul? :)
>>>
>>> TIA,
>>>
>>> marco
>>>
>>> PS
>>> RTFM welcomed only if with links on what to read :)
>>> _______________________________________________
>>> SciPy-user mailing list
>>> SciPy-user at scipy.org
>>> http://projects.scipy.org/mailman/listinfo/scipy-user
>>>
>>>       
>> --
>> On obtient beaucoup plus avec un mot gentil et une arme qu'avec
>> seulement un mot gentil - "Al Capone".
>> _______________________________________________
>> SciPy-user mailing list
>> SciPy-user at scipy.org
>> http://projects.scipy.org/mailman/listinfo/scipy-user
>>
>>     
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   




More information about the SciPy-User mailing list