Python Forum
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error in import numba
#1
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):
Reply
#2
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
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 7 6,144 Aug-03-2023, 06:00 PM
Last Post: Gribouillis
  import module error tantony 5 3,358 Dec-15-2022, 01:55 PM
Last Post: Lauraburmrs
  Cryptic Error with import statement Led_Zeppelin 2 2,478 Jan-11-2022, 01:13 PM
Last Post: Led_Zeppelin
  Install any library via pip get an error cannot import name 'SCHEME_KEYS' from 'pip. Anldra12 2 10,485 Jan-04-2022, 01:05 PM
Last Post: Anldra12
  import module with syntax error Skaperen 7 5,158 Jun-22-2021, 10:38 AM
Last Post: Skaperen
  Numba nopython error Tyrel 5 2,783 Jun-20-2021, 07:19 AM
Last Post: Tyrel
  Import Error Christian 3 3,130 Apr-17-2021, 11:27 PM
Last Post: bowlofred
  Folium import error kashif_flavio 2 3,565 Dec-07-2020, 08:58 AM
Last Post: bowlofred
  Import error Beingcode 0 2,466 Nov-20-2020, 02:57 AM
Last Post: Beingcode
Smile Import error with local file colt 1 1,878 Nov-08-2020, 07:56 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020