Open athompson673 opened 7 years ago
Update it would be better to change QT_API as now I'm having an issue with sitecustomize.py* (part of spyder) also expecting a hardcoded: "pyqt5" where is this env. var. set?
The likely problem here is that your install location contains more than 30 characters. We need to fix this. Thanks for reporting.
It's just the default install for single user... my username is only 8 chars long. I set the env. var. to "pyqt5" through the windows dialogue, and it now works.
This:
C:\Users\usrname\AppData\Local\Continuum\Anaconda3
is not 8 chars long, I understand that it is the default location, it is a bug that we need to fix. You should not need to set QT_API.
On a fresh install of anaconda I had several issues with starting spyder. the first was to fix qt.conf as mentioned here. then I got the error mentioned in the title... I took a look at qtconsole\qt.py which threw the error based on the basis that
os.environ.get('QT_API', None)
did not match any of the options given in qtconsole\qt_loaders.py. as the error stated "PyQt5" did not match it's hardcoded "pyqt5". Changing qtconsole\qt_loaders.py fixed the issue for me, but as I see it, this could also be changed by altering whatever sets QT_API (I did not look for where that happens)full traceback: