Windows Arrayfire C library loading error even after using ctypes to help debug
@9prady9 já está trabalhando nisso.
Desde 3/2/2019.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
It seems there is a missing DLL problem that prevents Arrayfire from running on a new installed Windows machine.
The Python (3.7.1) is installed through Anaconda, and the Arrayfire binary installation file and Visual C++ Runtime 2015 are also installed. All in x64 version (so not exactly the same as #166).
However, when importing in Python by import arrayfire, I still get the following error
RuntimeError: Could not load any ArrayFire libraries.
Please look at https://github.com/arrayfire/arrayfire-python/wiki for more information.
To distill the cause of the error, I use ctypes to import the arrayfire DLL to see if it is successful, only to find that the DLL file cannot be loaded either
In [2]: import ctypes
In [3]: import os
In [4]: dll_path = r'C:\Program Files\ArrayFire\v3\lib\afcpu.dll'
In [5]: os.path.exists(dll_path)
Out[5]: True
In [6]: ctypes.cdll.LoadLibrary(dll_path)
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-6-97edb3acce44> in <module>
----> 1 ctypes.cdll.LoadLibrary(dll_path)
C:\ProgramData\Anaconda3\lib\ctypes\__init__.py in LoadLibrary(self, name)
432
433 def LoadLibrary(self, name):
--> 434 return self._dlltype(name)
435
436 cdll = LibraryLoader(CDLL)
C:\ProgramData\Anaconda3\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
354
355 if handle is None:
--> 356 self._handle = _dlopen(self._name, mode)
357 else:
358 self._handle = handle
OSError: [WinError 126] The specified module could not be found
It seems that a dependent DLL is missing but the error message is not very helpful....
- Linguagem predominante
- Python
- Estrelas
- 422
- Forks
- 63
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de arrayfire/arrayfire-python
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
arrayfire/arrayfire-python#271 ·
-
Unwrap phase function Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
arrayfire/arrayfire-python#270 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
arrayfire/arrayfire-python#269 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
arrayfire/arrayfire-python#268 · 1 comentário ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
arrayfire/arrayfire-python#267 · 1 comentário · 1 reação ·
Todas as issues de arrayfire/arrayfire-python
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
learningequality/ricecooker#747 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
run-llama/llama_index#23199 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
KhronosGroup/glTF-Blender-IO#2769 ·