Opened 6 years ago

Closed 6 years ago

#57880 closed defect (duplicate)

Loading scipy.interpolate gives a library error

Reported by: ATL-Flaneur (Andreas Yankopolus) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: michaelld (Michael Dickens)
Port: py-scipy

Description

I'm on MacOS 10.14.2 (18C54) and after first running into this problem did a complete removal of MacPorts, system reboot, reinstall of MacPorts base, and Python reinstall with:

sudo port instal py37-ipython py37-scipy py37-matplotlib py37-pip

Then:

ayank$ ipython3
Python 3.7.2 (default, Dec 30 2018, 08:55:50) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import scipy.interpolate
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-011427aca649> in <module>()
----> 1 import scipy.interpolate

/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scipy/interpolate/__init__.py in <module>()
    173 from __future__ import division, print_function, absolute_import
    174 
--> 175 from .interpolate import *
    176 from .fitpack import *
    177 

/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scipy/interpolate/interpolate.py in <module>()
     18                    dot, ravel, poly1d, asarray, intp)
     19 
---> 20 import scipy.linalg
     21 import scipy.special as spec
     22 from scipy.special import comb

/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scipy/linalg/__init__.py in <module>()
    205 from ._solvers import *
    206 from ._procrustes import *
--> 207 from ._decomp_update import *
    208 from ._sketches import *
    209 

_decomp_update.pyx in init scipy.linalg._decomp_update()

ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scipy/linalg/cython_lapack.cpython-37m-darwin.so, 2): Symbol not found: _cbbcsd_
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scipy/linalg/cython_lapack.cpython-37m-darwin.so
  Expected in: flat namespace
 in /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scipy/linalg/cython_lapack.cpython-37m-darwin.so

This Stack Overflow posts seems relevant:

https://stackoverflow.com/questions/35006614/what-does-symbol-not-found-expected-in-flat-namespace-actually-mean

Change History (2)

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Cc: seanfarley removed
Keywords: SciPy removed
Owner: changed from seanfarley, michaelld to seanfarley
Port: py-scipy added; py37-scipy removed

A ticket can only be assigned to a single person.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Resolution: duplicate
Status: assignedclosed

Duplicate of #57829.

Note: See TracTickets for help on using tickets.