Re: Error importing package. Skimage, Scipy or Macports error?
On Sun, Sep 23, 2012 at 8:07 AM, Brian Holt <bdholt1@gmail.com> wrote:
My first guess would the the PYTHONPATH... Could you have a look to see if adding scikits-image root directory makes any difference?
Brian On Sep 23, 2012 8:48 AM, "bricklemacho" <bricklemacho@gmail.com> wrote:
I am trying to run the plot_hog.py demo an I get the error below. If I copy skimage/feature/hog.py and import form the current working directory the plot_hog.py runs.
The error seems to be something to do with importing match_template. Not sure where to start , all packages were installed via macports. Is this a scikits-image, scipy or a macports issue?
Any help appreciated, error message below.
Brickle.
------------- $ python plot_hog.py Traceback (most recent call last): File "scikitsHoG.py", line 1, in <module> from skimage.feature import hog File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/skimage/feature/__init__.py", line 5, in <module> from .template import match_template File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/skimage/feature/template.py", line 4, in <module> from . import _template File "_template.pyx", line 36, in init skimage.feature._template (skimage/feature/_template.c:3980) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/signal/__init__.py", line 198, in <module> from spline import * ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/signal/spline.so, 2): Symbol not found: ___ieee_divdc3 Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/signal/spline.so Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/signal/spline.so
Hey Brickle, Do you get the same error if you just call: from scipy import signal If so, you may need to rebuild scipy. Best, -Tony
participants (1)
-
Tony Yu