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
Tensorflow 2.0.0 cpu, import error: DLL load failed #36138
Comments
If I may add: This issue - DLL not found - looks very similar to the recently closed which were solved by either
@faltinl tried all of those but none worked. The above screenshot shows the "DLL not found" error using TF 2.0. |
There are many DLLs that are loaded and depending on which one fails to load the solution is different. It would be great if we have the DLL name listed in the issue. |
Yeah! Do you know a good way of getting it, apart from adding a print statement to line 342 of |
What is your CPU make and model? |
|
From what I can tell, this CPU does not have AVX instruction set. That is
the cause of your problem. You can build TF from source to use it, however
prebuilt binaries will not work for you.
…On Thu, Jan 23, 2020, 10:27 PM Leo Faltin ***@***.***> wrote:
What is your CPU make and model? 0> data added to system information
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#36138?email_source=notifications&email_token=AB4UEOOVKL67T4UI326UAGDQ7KC5HA5CNFSM4KKKPVE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJZ3I4I#issuecomment-578008177>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4UEOIFJE4LVKJA7WJV263Q7KC5HANCNFSM4KKKPVEQ>
.
|
Tnx. That's raising several questions for me:
|
thanks @gunan! (I would just be wondering why 1.8 has worked for @faltinl then, since AVX builds should have happened since 1.6)? @faltinl on the build-from-source page (which also contains the instructions how to build from source on Windows) https://www.tensorflow.org/install/source it says
so in theory, even 1.8 should not have worked? Anyways, since that was a version that you say worked for you, I would suggest reverting to that one:
|
Tnx for replies, @gunan and @skeydan ! I tried Since TF1.8 possibly also required AVX, I tried ... a completely different reaction. Again no success message either but 6 "future warnings". I suspect this might be related to my Miniconda3, which didn't yet exist at the time of TF1.5. I still have the version Anaconda3-5.1.0-Windows-x86_64.exe, which I used in spring 2018 for my then working installation. What do you think - should I try to replace my present Miniconda3 with this old version? The configuration would then correspond entirely to what I had in working condition at that time, except for my then R3.5.1. That would then be the very last step... Regardless of all these attempts, I would still like to know, @gunan, which restrictions I would have to face using tensorflow 2.0.0 installed from source without AVX in my cpu and how exactly I should carry out the installation under these preconditions. |
These are just warnings... Can you try running a simple program against that installation? Although you'd need to make sure you don't use any newer than 1.5 features ... |
No, unfortunately not - I even don't come that far. Using the installation sequence I was used to apply earlier (with tensorflow 1.5, reticulate 1.10 and keras 2.1.6 (also 2.2.0), with a
Whichever "install_..." command I actually use, I get the error message
Without any of the
Obviously, there is no reticulation between the 3 packages. |
Please don't use R in this issue, this one's purpose is just to get your TensorFlow installation working from the Python side. I meant pasting a simple example in Python, just to see if 1.5 is working on your machine. Honestly though, I don't know how much sense it makes using TF 1.5. (Our current R wrappers might not be compatible with 1.5 either.) As to compiling 2.0 from source on Windows, I certainly leave all recommendations to @gunan - but given that building from source on a current laptop, on linux, takes hours I don't know... Perhaps it's worthwhile thinking about working in the cloud somewhere. |
Well, I don't have an example in Python - and if I had, I simply wouldn't know how to get it running there. Except for typing in the few commands forwarded in your posts I have never before used Python. My entry to Keras and all that happened by reading @jjallaire's and @fchollet's book "Deep Learning with R" which had me so excited to start working in that field and learning everything needed while going along, starting with R. It's really extremely disappointing to feel that all that should now come to such a sudden end, simply because I concluded from this article that it could be the right opportunity to update my existing - and working - Keras-setup. If I look at my (at the moment) only available resource, just finding a machine on the market exhibiting the required properties seems already to be a problem. Important experience for me: In order to avoid the frustrating experience with unexpected requirements like this AVX thing, I have to be much more cautious with my decisions regarding updates. Sorry about molesting you with all that. You are the one who deserves it the least, taking into account all the positive support I received and appreciated from your side over these years... |
One potential difference could be, if you are getting TF binaries through conda/anaconda. When it comes to To test TF 1.x, here is a simple snippet you can try this example: |
AFAIK all the conda packages of Tensorflow released by Anaconda, Inc do not require AVX, our target CPU minimum is nocona (x86_64 with SSE3). |
to @gunan:
No, certainly not (at least not that I noticed it!-), but what might have happened is that I downloaded v1.8, but overlooked that the version was automatically downgraded, e.g. during installation. (I must confess that, for me, Anaconda is a necessary evil - my aim is to work with Keras for R within RStudio).
Yeah, I'm using that snippet for tests already. However, since TF2.0.0 the command to @jjhelmus: Is SSE / SSE3 a feature which is usually offered in addition to AVX or rather as an alternative, i.e. does one replace the other or are they independent features? |
@faltinl Could you please let us know if you still need help on this ? if it is resolved then please feel free to move this issue to close status ? Thanks! |
Sorry for keeping that issue open without further need. I am actually using TF2.6.0.9000. And since recently, when initializing my R programs, I get the notice
So apparently the problem has been solved (or solved itself) by updating Tensorflow regularly... Thank you all for your continued interest and support! |
System information
Bios V1.08
L2 Cache 1024kB
i. under Rstudio 1.2.5033 with R 3.6.2 (20191212) & Miniconda3 4.7.12 (Py 3.7.4-64bit)
ii. under conda (since i. failed, see below)
Describe the problem
i. Since I used keras (including reticulate & tensorflow) for the last 3 yrs under RStudio, but had various problems with my very old installation, I definitely want to continue with tensorflow + keras under RStudio and tried to install tensorflow 2.0.0. under RStudio:
then test sequence - is tensorflow installed?
Thus, although installation was terminated correctly, tensorflow was not found, i.e. not working.
ii. After forwarding this issue under Installation w/ Miniconda, Reticulate 1.14, Tensorflow 2.0.0 & Keras 2.2.5.0 failing #964 to RStudio/keras, tests were made to get tensorflow 2.0.0 pip installed directly under Miniconda3 (also under Anaconda3 and starting with R3.5.3 and R3.6.1), all with the same result:
This produced the following error log (sorry, I'm unable to copy text from the python shell window), indicating
ImportError: DLL load failed
twice:Any other info
Unfortunately, I am an absolute newbie as regards Python - taking that into account, please help...
The text was updated successfully, but these errors were encountered: