Issue in importing awkward array package: DLL load failed while importing _ext

Viewed 789

I am trying to use awkward in my Windows 10 system. I am using python 3.8.2. After installing the package, when I import it, I am getting this DLL import error.

>>> import awkward as ak
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\MSS\Work\PyWorkspace37\awkward_poc\venv\lib\site-packages\awkward\__init__.py", line 23, in <module>
    import awkward.layout
  File "C:\Users\MSS\Work\PyWorkspace37\awkward_poc\venv\lib\site-packages\awkward\layout.py", line 5, in <module>
    from awkward._ext import Index8
ImportError: DLL load failed while importing _ext: The specified module could not be found.

How to know which DLL is missing and how to mitigate it?

1 Answers

The DLL is Awkward Array's C++ part, "awkward/_ext.pyc", which the installation should have put into place. I see two possibilities: (1) the installation went horribly wrong and should be restarted from a clean slate, or (2) the file is there but can't be loaded. If the directory it was installed to doesn't have executable permissions, that could be it. (Python code can be executed from a disk/directory without executable permissions, but native machine code can't be, which can cause some surprises.)

When it comes to installation issues, I can only make guesses because your system is different than mine. We try to use standard installation procedures, so if you use the standard Python inhalation tools (pip, conda) then it ought to work without problems, but evidently that didn't happen here.

Related