Skip to content
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

DLL Load Fail #30

Open
eruraweth opened this issue Nov 6, 2021 · 1 comment
Open

DLL Load Fail #30

eruraweth opened this issue Nov 6, 2021 · 1 comment

Comments

@eruraweth
Copy link

eruraweth commented Nov 6, 2021

Hi all,

I'm running this package and learning Anaconda/python for the first time. And am struggling with this error.

classify(path_prefix = "C:/Users/bird_/Desktop/C7_07162019",
data_info = "C:/Users/bird_/Desktop/image_labels.csv",
model_dir ="C:/Users/bird_/Desktop/MLWIC2_helper_files",
python_loc = "C:/Users/bird_/anaconda3/envs/enviro",
save_predictions = "model_predictions.txt",
architecture = 'resnet',
depth = 18,
top_n = 5,
batch_size = 128,
make_output = TRUE,
output_name = "MLWIC2_output.csv", num_cores = 16,
os="Windows",
num_classes=1000 )

Your data_info file exists: C:/Users/bird_/Desktop/image_labels.csv.
Your `path_prefix exists: C:/Users/bird_/Desktop/C7_07162019.
You are running on a Windows computer.
Traceback (most recent call last):
File "run.py", line 14, in
import numpy as np
File "C:\Users\bird_\ANACON1\envs\enviro\lib\site-packages\numpy_init_.py", line 140, in
from . import distributor_init
File "C:\Users\bird
\ANACON
1\envs\enviro\lib\site-packages\numpy_distributor_init.py", line 34, in
from . import _mklinit
ImportError: DLL load failed: The specified module could not be found.
The classify function did not run properly.

I'm running it in an Anaconda environment with python 3.7, with numpy 1.16.0 (tried 1.16.4 too), and tensorflow 1.14.0.

I have reinstalled and updated Microsoft Visual C++, I have manually added msvcp71.dll into the system files and into the DLL file under anaconda3. I have tried adding to the PATH ~/Library/bin, I have uninstalled and reinstalled numpy. I am running out of options that already exist on the internet. Can anyone help???

TIA!!

@mikeyEcology

@bghogan
Copy link

bghogan commented Dec 13, 2022

Just got over the same problem. For me, it was that the python.exe in the environment being used by R Studio, and the one being used by the anaconda prompt were different (or something like that anyway).

If you open anaconda prompt, and go to the r-reticulate environment ('activate r-reticulate') and type 'where python' - do you see an entry of python.exe other than the r-reticulate one? I did (in windows apps) which on being deleted fixed the issue after updating numpy again.

Edit: just realized how old this problem was - sorry for zombie posting, only just started trying this library out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants