[Tutor] Error Cannot Import Name Core

Dave Angel davea at davea.name
Wed Nov 12 07:10:08 CET 2014


Felisha Lawrence <felisha.lawrence at gmail.com> Wrote in message:
> Hello, 
> I am trying to install a version of pyart in OSX and I keep getting this error 
> 
> --------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> <ipython-input-21-bb2fade1b952> in <module>()
> ----> 1 import pyart
> 
> /Users/felishalawrence/anaconda/lib/python2.7/site-packages/pyart/__init__.py in <module>()
>       9 from .version import version as __version__
>      10 #import subpackages
> ---> 11 from . import core
>      12 from . import io
>      13 from . import correct
> 
> ImportError: cannot import name core
> 
> Any help as to what this means and how to fix it?

Usually questions involving uncommon 3rd party packages do better
 elsewhere, first choice being the package's support site, and
 second being comp.lang.python . The tutor list is really focused
 on the python language and standard library. Still you may get
 lucky.

You should also always specify Python version, and exact source
 and version of the 3rd party package. Do this with the first
 query on any new thread you create, regardless of where you're
 posting. 

Still, I'm going to mae a wild guess, that the library is intended
 for Python 3.x, and you're trying to use it in 2.7

If my guess is right,  you could probably confirm it by giving the
 location for core.*  Somebody else might then confirm it has
 something to do with relative imports.

Or you could go back to the pyart site and see if they offer
 alternative downloads. 




-- 
DaveA



More information about the Tutor mailing list