Python Forum

Full Version: error in import numba
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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):
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