-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
ImportError: DLL load failed: The specified module could not be found. #45
Comments
For reference, this seems to be the (somewhat sad) workaround:
|
Please ask your users to post the issue here with more details. |
@ocefpaf there's some more detail in the two issues I linked to. What do you need to know? |
While the workaround works, it is suboptimal in cases where Could we somehow force an installation of the depended package ( Sorry for not providing details but i am not on Windows atm, if its needed I can provide them tomorrow. |
OK. So it seems that the issue happens on Windows.
Can you try a fresh env? It usually helps to debug things, conda create --name TEST --channel conda-forge pillow wordcloud
conda activate TEST
python -c 'import wordcloud; print(wordcloud.__version__)' If that fails please paste the results of |
You can also just |
Pillow has a public Python interface, and a private C core. When the Python layer tries to use the C layer, it does a version check to ensure they're both the same version. The error in amueller/word_cloud#356 is when they have different versions. What must be happening is there's one version of pip installed Pillow and another version of conda installed Pillow. Then whichever Python part of Pillow is being run is trying to access the C part from the other version. |
That is why we need the fresh env test in #45 (comment) |
Closing this as stale. If someone is still experiencing this please open a new issue with more details so we can investigate. |
I keep getting issues on that, I'll try to direct them here. |
Please do. Unfortunately we could not reproduce that error and without communication with the people reporting it things get hard to reproduce. Thanks! |
@ocefpaf I just stumbled into this (at least, it looks like the same issue to me) in an AppVeyor CI for a feedstock: https://ci.appveyor.com/project/conda-forge/pycroscopy-feedstock/build/1.0.17/job/7e4a3cl9i0f9wvxv |
Recently this may be related to conda/conda#7626 |
@ocefpaf thanks, although I'm honestly not deep enough into conda to fully understand what's going on there. Do you have any practical suggestion to get out of the rabbit hole in our specific case of conda-forge/pycroscopy-feedstock#4? |
@ocefpaf in fact, in the failing CI, do you have any suggestions? |
Make noise here conda/conda#7626 There is nothing we can do, it is a bun in conda. |
but does |
Most |
I solved by using subprocess, remove all improper installations of pillow and wordcloud left overs using |
This issue is still blocking this PR conda-forge/pycroscopy-feedstock#4 |
really? I can't see a single one using the |
solved with a hack from conda-forge/hyperspy-feedstock#24, simply adding this version constraint in the recipe: |
Can you reopen here, please? The issue still happens: widgetti/ipyvolume#208 (comment) |
Or maybe |
Some of my users have reported an error trying to import PIL:
amueller/word_cloud#356
They are using this version:
This seems related: python-pillow/Pillow#2945
The text was updated successfully, but these errors were encountered: