Spyder does not import/load Numba

64 views
Skip to first unread message

fausto....@gmail.com

unread,
Oct 10, 2023, 8:41:55 PM10/10/23
to spyder

Hi,

A script cannot import Numba when executed from Spyder in Run file 
(F5) mode. So far this is the only instance import fails on Spyder --
stuff such as Numpy, Scipy and mpmath are imported fine.

I get the following error messages:

Traceback (most recent call last):

  File C:\Program Files\Python\Lib\site-packages\numba\core\typeconv\typeconv.py:4
    from numba.core.typeconv import _typeconv

ImportError: cannot import name '_typeconv' from 'numba.core.typeconv' (C:\Program Files\Python\Lib\site-packages\numba\core\typeconv\__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  Cell In[5], line 1
    import numba

  File C:\Program Files\Python\Lib\site-packages\numba\__init__.py:73
    from numba.misc.special import (

  File C:\Program Files\Python\Lib\site-packages\numba\misc\special.py:3
    from numba.core.typing.typeof import typeof

  File C:\Program Files\Python\Lib\site-packages\numba\core\typing\__init__.py:1
    from .context import BaseContext, Context

  File C:\Program Files\Python\Lib\site-packages\numba\core\typing\context.py:11
    from numba.core.typeconv import Conversion, rules

  File C:\Program Files\Python\Lib\site-packages\numba\core\typeconv\rules.py:2
    from .typeconv import TypeManager, TypeCastingRules

  File C:\Program Files\Python\Lib\site-packages\numba\core\typeconv\typeconv.py:16
    raise ImportError(msg)

ImportError: Numba could not be imported.
--------------------------------------------------------------------------------
If you are seeing this message and are undertaking Numba development work, you may need to rebuild Numba.
Please see the development set up guide:

https://numba.readthedocs.io/en/stable/developer/contributing.html.

--------------------------------------------------------------------------------
If you are not working on Numba development, the original error was: 'cannot import name '_typeconv' from 'numba.core.typeconv' (C:\Program Files\Python\Lib\site-packages\numba\core\typeconv\__init__.py)'.
For help, please visit:

https://numba.readthedocs.io/en/stable/user/faq.html#numba-could-not-be-imported


I wonder if this isn't an internal path problem, but don't know where and
what to look for.

Thanks for any help.

Fausto


Reply all
Reply to author
Forward
0 new messages