Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

WingIDE, pyside2, and Miniconda on windows

I'm trying to use WingIDE to edit a PySide2 application on Windows (initial writing and debugging occurred on a Mac, and I'm now trying to get it working on windows). My install of python is from Miniconda, version 3.7.1, but I installed pyside2 via pip (in the anaconda prompt) because the version installed by conda install was too old for my purposes. When I run my script from the Anaconda prompt it works properly, which leads me to believe that PySide2 is installed correctly.

However, when I try to launch the same script from inside WingIDE, or, in fact, just try to import PySide2 from the python shell, it fails with the following error:

>>>import PySide2
Traceback (most recent call last):
  Python Shell, prompt 6, line 1
    # Used internally for debug sandbox under external interpreter
  File "C:\Users\Israel\Miniconda3\Lib\site-packages\PySide2\__init__.py", line 51, in <module>
    _setupQtDirectories()
  File "C:\Users\Israel\Miniconda3\Lib\site-packages\PySide2\__init__.py", line 21, in _setupQtDirectories
    import shiboken2
  File "C:\Users\Israel\Miniconda3\Lib\site-packages\shiboken2\__init__.py", line 8, in <module>
    from .shiboken2 import *
builtins.ImportError: DLL load failed: The specified module could not be found.

Which would indicate to me that it is being unable to find/load a DLL that is being found and loaded properly when running the Anaconda prompt. I have compared the python path between the two instances of python, and aside from some ordering differences they are the same. Additionally, I have confirmed that Wing is running the same executable as the Anaconda prompt, and I do not have multiple installs of python on my system anyway (I set it up clean just for this). What am I missing? Something in the environment variables?