soft-matter / trackpy-examples

sample images, examples, and speed tests for trackpy
Other
21 stars 42 forks source link

ImportError: cannot import name _fitpack #22

Closed Jumpet closed 9 years ago

Jumpet commented 9 years ago

Hello @tacaswell and @danielballan again,

I am trying to run some code for data I went through over the weekend. I was able to get it to run but now I am running into another issue. With no changes in the code besides the time between then and now I'm gettting a crippling error that says, ImportError: cannot import name _fitpack

How do I resolve this.?/what is _fitpack?

most recent calls runfile('C:/Users/Zach/.spyder2/water example.py', wdir='C:/Users/Zach/.spyder2') Traceback (most recent call last):

File "", line 1, in runfile('C:/Users/Zach/.spyder2/water example.py', wdir='C:/Users/Zach/.spyder2')

File "C:\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 682, in runfile execfile(filename, namespace)

File "C:\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 71, in execfile exec(compile(scripttext, filename, 'exec'), glob, loc)

File "C:/Users/Zach/.spyder2/water example.py", line 20, in import trackpy as tp

File "C:\Anaconda\lib\site-packages\trackpyinit.py", line 5, in from trackpy.api import *

File "C:\Anaconda\lib\site-packages\trackpy\api.py", line 4, in from .motion import *

File "C:\Anaconda\lib\site-packages\trackpy\motion.py", line 8, in from scipy import interpolate

File "C:\Anaconda\lib\site-packages\scipy\interpolateinit.py", line 160, in from .interpolate import *

File "C:\Anaconda\lib\site-packages\scipy\interpolate\interpolate.py", line 24, in from . import fitpack

File "C:\Anaconda\lib\site-packages\scipy\interpolate\fitpack.py", line 31, in from . import _fitpack

ImportError: cannot import name _fitpack

tacaswell commented 9 years ago

Your scipy installation is broken. I would try re-installing in a fresh enviroment, if that does not work this should go to the continuum support lists.