-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Arrayfire C library loading error even after using ctypes to help debug #201
Comments
Missing DLL found and solved by another working machine. Thanks to this site, which introduces Sysinternals Process Monitor, that I am able to use to find out which DLL is missing. It turns out the missing one is There is one with a similar name |
@umar456 doesnt arrayfire libs have documentation about installing visual studio runtime ? |
It appears that the missing DLL Maybe we can update the instruction page with this tiny selection or make the arrayfire C library independent of the debug mode DLL. |
@hyliu1989 where did you get arrayfire libs from ? |
I got it from the binary provided in https://arrayfire.com/download/. At the time of download, it was Windows v3.6.2. |
Same problem here. |
@ZacDiggum quote from my colleague:
|
@pavanky |
@umar456 can you help figure this out? |
Sorry guys. I can look into this early next week. |
I have been looking into the transitive dependencies for Can you please do the same for the afcpu.dll on your installation and see which |
@hyliu1989 @ZacDiggum Also, can you please tell us how did you install arrayfire-python package ? via conda or pip ? |
I have two different setups at home and at work: I installed af-python via pip (v3.6.20181017) into identical Python 3.6.5 distros (Winpython) in both cases. I'll dig into it and try dependencywalker today. |
@ZacDiggum Regarding the mkl loading issue, is the path to dll files of ArrayFire installation added to |
afaik, you can't really search the list of dlls directly in the dependency-walker GUI. Hence I asked you to save that as text file - save icon in the GUI. The text file can be searched for names like |
Sorry, here is the output from dependencywalker regarding afcpu.dll on the win 7 system with the mkl error: |
@9prady9 I also installed arrayfire-python through pip. Also in my previous thread, I also tried ctypes to bypass python wrapper to see if the problem is in C library. Also I ran the process monitor and recorded what happened after From here you can clearly see that the python process is trying to load ucrtbased.dll and the requirement to load ucrtbased.dll might buried in some other dll that afcpu.dll depends. |
Thank you for the traces and logs, I found the dll that is loading debug VC runtime dll which is in turn loading the ucrtbase debug dll. It is an upstream dependency (glbindingd.dll) but not Having said that, please do note that this is no longer an issue on master and will not be an issue in future releases. Note: I found the reason why my installed version didn't look for debug version of ucrtbase dll, because it was a no-gl ArrayFire installer binary. |
@ZacDiggum @hyliu1989 There is a work around for your current situation if you don't use graphics functionality from ArrayFire. Download the http://arrayfire.s3.amazonaws.com/3.6.2/ArrayFire-no-gl-v3.6.2.exe and use that, that won't look for debug version of dlls. |
@umar456 We should probably just do a new fix release instead of regenerating now and then again doing it for 3.6.3 again. Nvm, we should still fix 3.6.2 gl installer if someone wants to stick to it. |
@9prady9 |
http://arrayfire.s3.amazonaws.com/index.html#!/
Go to 3.6.2 folder and you will see no-gl installer binaries for all
platforms that we currently support.
…On Sat 16 Feb, 2019, 00:09 Hsiou-Yuan (Herbert) Liu < ***@***.*** wrote:
Hi @9prady9 <https://github.com/9prady9> Where can we download the no GL
version for Ubuntu? I wonder that can also be a workaround for #183
<#183> .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#201 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADHnOiVfdPhWcj_fSo-qq16FHItUNo9Kks5vNv7bgaJpZM4Z4k9j>
.
|
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 errorTo 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
It seems that a dependent DLL is missing but the error message is not very helpful....
The text was updated successfully, but these errors were encountered: