Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: DLL load failed #6858

Closed
jiny-blake opened this issue Mar 24, 2021 · 5 comments
Closed

ImportError: DLL load failed #6858

jiny-blake opened this issue Mar 24, 2021 · 5 comments
Labels
no action required No action was needed to resolve.

Comments

@jiny-blake
Copy link

Hi! I am using numba through Anaconda, jupyter lab, with python (under system of Windows)
I could successfully install numba, but during import, the import error occurs, would you please help me with it? Thank you so much!
Below is the information:

ImportError Traceback (most recent call last)
D:\Anaconda\Install\envs\Python+R\lib\site-packages\numba\core\typeconv\typeconv.py in
3 # Numba, if it fails to import, provide some feedback
----> 4 from .core.typeconv import _typeconv
5 except ImportError as e:

ImportError: DLL load failed: 找不到指定的模块。

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last)
in
----> 1 from numba import njit

D:\Anaconda\Install\envs\Python+R\lib\site-packages\numba_init_.py in
22
23 # Re-export typeof
---> 24 from numba.misc.special import (
25 typeof, prange, pndindex, gdb, gdb_breakpoint, gdb_init,
26 literally, literal_unroll,

D:\Anaconda\Install\envs\Python+R\lib\site-packages\numba\misc\special.py in
1 import numpy as np
2
----> 3 from .core.typing.typeof import typeof
4 from .core.typing.asnumbatype import as_numba_type
5

D:\Anaconda\Install\envs\Python+R\lib\site-packages\numba\core\typing_init_.py in
----> 1 from .context import BaseContext, Context
2 from .templates import (signature, make_concrete_template, Signature,
3 fold_arguments)

D:\Anaconda\Install\envs\Python+R\lib\site-packages\numba\core\typing\context.py in
9 import numba
10 from .core import types, errors
---> 11 from .core.typeconv import Conversion, rules
12 from .core.typing import templates
13 from .typeof import typeof, Purpose

D:\Anaconda\Install\envs\Python+R\lib\site-packages\numba\core\typeconv\rules.py in
1 import itertools
----> 2 from .typeconv import TypeManager, TypeCastingRules
3 from .core import types
4
5

D:\Anaconda\Install\envs\Python+R\lib\site-packages\numba\core\typeconv\typeconv.py in
15 "possible please include the following in your error report:\n\n"
16 "sys.executable: %s\n")
---> 17 raise ImportError(msg % (url, reportme, str(e), sys.executable))
18
19 from .core.typeconv import castgraph, Conversion

ImportError: Numba could not be imported.
If you are seeing this message and are undertaking Numba development work, you may need to re-run:

python setup.py build_ext --inplace

(Also, please check the development set up guide https://numba.pydata.org/numba-doc/latest/developer/contributing.html.)

If you are not working on Numba development:

Please report the error message and traceback, along with a minimal reproducer
at: https://github.com/numba/numba/issues/new

If more help is needed please feel free to speak to the Numba core developers
directly at: https://gitter.im/numba/numba

Thanks in advance for your help in improving Numba!

The original error was: 'DLL load failed: 找不到指定的模块。'

If possible please include the following in your error report:

sys.executable: D:\Anaconda\Install\envs\Python+R\python.exe
numbanumbanumbanumbanumbanumbanumbanumba

@sklam
Copy link
Member

sklam commented Mar 24, 2021

I think this is a duplicate of #5600. Installing the latest Visual Studio Redistributable from Microsoft will likely resolve the issue as suggested in #5600 (comment). If the problem is not resolved, please re-open the issue.

@sklam sklam closed this as completed Mar 24, 2021
@stuartarchibald stuartarchibald added no action required No action was needed to resolve. and removed needtriage labels Mar 24, 2021
@jiny-blake
Copy link
Author

Thank you sooo much! Let me have a try!

@esc
Copy link
Member

esc commented Mar 29, 2021

@jiny-blake did it help?

@jiny-blake
Copy link
Author

@jiny-blake did it help?
@esc Yes! It helps!

@esc
Copy link
Member

esc commented Mar 29, 2021

@jiny-blake did it help?
@esc Yes! It helps!

Excellent, thank you for confirming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no action required No action was needed to resolve.
Projects
None yet
Development

No branches or pull requests

4 participants