Python Forum
error in import numba - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: error in import numba (/thread-5783.html)



error in import numba - Sara - Oct-21-2017

When I am trying to run python file .py that uses numba it gives me the below error
  Traceback (most recent call last):
 File "C:\Myfile.py", line 16, in <module>
 import myfile2 as m
 File "C:\myfile2.py", line 8, in <module>
  import numba
  File "C:\Python27\lib\site-packages\numba\__init__.py", line 9, in <module>
  from . import config, errors, runtests, types
  File "C:\Python27\lib\site-packages\numba\config.py", line 11, in <module>
  import llvmlite.binding as ll
  File "C:\Python27\lib\site-packages\llvmlite\binding\__init__.py", line 6, in <module>
  from .dylib import *
  File "C:\Python27\lib\site-packages\llvmlite\binding\dylib.py", line 4, in <module>
  from . import ffi
  File "C:\Python27\lib\site-packages\llvmlite\binding\ffi.py", line 50, in <module>
   raise e
  WindowsError: [Error 126] The specified module could not be found
I've tried to uninstall llvmlite and numba and reinstall them but the same error appear

I used numba in my .py file as below

from numba import jit
at functions for example
@jit(nopython=True, nogil=True)
         def lanes_ransac_select_best(X1, y1, X2, y2,
                             w1_prefits, w2_prefits,
                             residual_threshold, post_fit):



RE: error in import numba - metulburr - Oct-22-2017

126 error is what you get when a dependent DLL cannot be found.

If your using Anaconda, i googled another person having the same issue that fixed it by reinstalling Anaconda.
https://pypi.python.org/pypi/numba