spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.37k stars 1.62k forks source link

Anaconda3 Spyder Launch Error: DLL load failed #3939

Closed ruoyuwangeel4930 closed 6 years ago

ruoyuwangeel4930 commented 7 years ago

Description of your problem

What steps will reproduce the problem?

  1. Newly installed Anaconda3 for windows x86.
  2. Launch Spyder 3.0.0 in Anaconda Navigator.
  3. Nothing would happen then.

What is the expected output? What do you see instead?

Please provide any additional information below Every time I try to launch Spyder, a cmd window pops up and closes immediately. Spyder wouldn't launch (the cmd window says couldn't find the program). The ipython works fine.

Versions and main components

Dependencies

Please go to the menu entry Help > Optional Dependencies (or Help > Dependencies), press the button Copy to clipboard and paste the contents below:

default

ccordoba12 commented 7 years ago

Did you install Anaconda in a directory with non-ascii characters?

ruoyuwangeel4930 commented 7 years ago

I don't think so. The whole path is just C:\Program Files\Anaconda3. I tried to reinstall in other directory and the problem is still there.

ccordoba12 commented 7 years ago

Please try in a directory without spaces and that it's in your Users personal directory to see if that fixes this error.

ruoyuwangeel4930 commented 7 years ago

Thanks for your reply:-). I tried to install in directory such as D:\Software\Anaconda and installed a lower version of Anaconda. It showed the same error information. Then I examined the QtWebEngineWidgets.py file and found none of the modules it imports is in the folder (as the picture showed below).

image

Should there be these files in the folder or there are some setting error in my .ini files? but I changed nothing after installation.

ccordoba12 commented 7 years ago

It seems you have Canopy and Anaconda both installed in your machine. What if you uninstall Canopy and try again?

ruoyuwangeel4930 commented 7 years ago

This problem exists before I install Canopy. I have homework due that day, that's why I install it after Anaconda.

jsh9 commented 7 years ago

I encountered a similar issue. I first installed anaconda 2 on my Windows 10 (64 bit), and then I created an Python 3.6 environment inside my Anaconda 2 (as suggested here: https://conda.io/docs/user-guide/tasks/manage-python.html#installing-a-different-version-of-python).

Then I installed spyder into this new environment, and run spyder. But I saw this error message, apparently qt related:

Traceback (most recent call last):
  File "C:\Anaconda2\envs\py36\Scripts\spyder-script.py", line 5, in <module>
    sys.exit(spyder.app.start.main())
  File "C:\Anaconda2\envs\py36\lib\site-packages\spyder\app\start.py", line 145, in main
    from spyder.app import mainwindow
  File "C:\Anaconda2\envs\py36\lib\site-packages\spyder\app\mainwindow.py", line 78, in <module>
    from qtpy.compat import from_qvariant
  File "C:\Anaconda2\envs\py36\lib\site-packages\qtpy\compat.py", line 15, in <module>
    from .QtWidgets import QFileDialog
  File "C:\Anaconda2\envs\py36\lib\site-packages\qtpy\QtWidgets.py", line 22, in <module>
    from PyQt5.QtWidgets import *
ImportError: DLL load failed: The specified procedure could not be found.

Is there a bug fix on the way? I want to switch to Python 3, but is getting bogged down by these bugs.

============ Slight update ============

OK, so I think I might have pin-pointed the cause of this Qt issue.

  1. I uninstalled and installed Python 3 (this time I installed the whole Anaconda 3 in a separate folder than my Anaconda 2). Spyder works fine. I closed Spyder.
  2. And I installed Keras using conda install keras. Spyder works fine. I closed Spyder.
  3. Then I installed CNTK 2.2 following this link (https://docs.microsoft.com/en-us/cognitive-toolkit/setup-windows-python?tabs=cntkpy22), using pip install https://cntk.ai/PythonWheel/CPU-Only/cntk-2.2-cp36-cp36m-win_amd64.whl
  4. And now I cannot open Spyder (same error message as above), and also I cannot load matplotlib.pyplot. The matplotlib error message is:
    >>> import matplotlib.pyplot as plt
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "C:\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 29, in <module>
    import matplotlib.colorbar
    File "C:\Anaconda3\lib\site-packages\matplotlib\colorbar.py", line 36, in <module>
    import matplotlib.contour as contour
    File "C:\Anaconda3\lib\site-packages\matplotlib\contour.py", line 21, in <module>
    import matplotlib.font_manager as font_manager
    File "C:\Anaconda3\lib\site-packages\matplotlib\font_manager.py", line 58, in <module>
    from matplotlib import afm, cbook, ft2font, rcParams, get_cachedir
    ImportError: DLL load failed: The specified procedure could not be found.

So it seems that CNTK 2.2 is messing with things in Python 3. I installed Keras and CNTK 2.2 on my Anaconda 2, and saw no errors.

Just providing as detailed information for the developers as I possibly can, and thanks in advance.

ccordoba12 commented 6 years ago

Closing as a duplicate of issue #5876.

kiranvarghesev commented 6 years ago

@ After updation of Anaconda TFlearn not working While import it shows error on Spyder import tflearn from . import _imaging as core

ImportError: DLL load failed: The specified module could not be found.

psahunitk commented 5 years ago

Please try in a directory without spaces and that it's in your Users personal directory to see if that fixes this error.

I tried without spaces still facing the same problem.

psahunitk commented 5 years ago

Hello, I have been facing an issue from last 3 days regarding the installation of Anaconda3.

Following steps I have already tried:

  1. pyqt5 installation. However, this worked as It can able to launch Anaconda Navigator. But again the problem in launching Spyder any version only. Otherwise all other versions like IPython, Jupyter are working fine. image

  2. pyside installation: Here I can able to launch Spyder but the problem I observed as it's all about Anaconda2 with Python 2.7 rather than Anaconda3 with Python 3.7. Hope you have understood the problem, can you help me to answer this issue. With Regards, Pradeepta Sahu

DEMONCELL1 commented 4 years ago

Screenshot (86)

i am getting this error please tell me how to solve this error

Ritvik-Sapra commented 3 years ago

I had to pip install PyQt5 because one day Anaconda just stopped working. Since then it showed that Spyder is not compatible with the latest version of PyQt5..