These are chat archives for spyder-ide/public

7th
Mar 2019
CAM Gerlach
@CAM-Gerlach
Mar 07 00:35
@jterry94_gitlab How did you install Spyder—Anaconda? Homebrew? Fink/MacPorts? pip? What version of macOS, Python, Spyder, Qt and PyQt are you running? Are you running it in a Anaconda environment/virtualenv?
Jeff Terry
@jterry94_gitlab
Mar 07 00:40
anaconda
Mac OS 10.13.3. Spyder was started by just calling the Spyder command from the command line prompt. Python 3.6.8 is the version
Jeff Terry
@jterry94_gitlab
Mar 07 00:45
Not sure about the rest
CAM Gerlach
@CAM-Gerlach
Mar 07 00:50
@jterry94_gitlab Try typing conda activate base before running the spyder command. If that doesn't work, use conda list to find the relevant versions of Qt, PyQt and Spyder. Did you just install Anaconda or was it on there previously? Has Spyder worked before on that machine? Do you have other versions of Python installed (besides system Python)? Also, let us know the output of which python after activate-ing your environment.
Jeff Terry
@jterry94_gitlab
Mar 07 00:51
Everything was a fresh install on a new computer
Jeff Terry
@jterry94_gitlab
Mar 07 00:58
condo activate base didn't change anything. which python points to the anaconda installed version. Qt version of 5.9.7, PyQt 5.9.2, and Spyder 3.3.3
CAM Gerlach
@CAM-Gerlach
Mar 07 01:14
@jterry94_gitlab The correct command should be conda activate base, not "condo". In any case, if you type jupyter qtconsole, does QtConsole work fine or does it have the same problem? I'm really not sure about that, since I don't recall getting a report of this previously and everything I can find on Google only talks about problems with wxPython, not PyQt that Spyder uses.
Jeff Terry
@jterry94_gitlab
Mar 07 01:16
sorry typo It was conda
Thanks. in jupyter we get a bunch of errors trying. We had this problem and solved it previously. I have reached out to the two students who have graduated that solved the problem. Hopefully, they get back to us. I will pass along the solution, if they respond.
CAM Gerlach
@CAM-Gerlach
Mar 07 01:23

in jupyter we get a bunch of errors trying.

@jterry94_gitlab Huh? What do you mean? Trying what? In Jupyter notebook, or another Jupyter application? Did you mean jupyter qtconsole wouldn't launch either?

Jeff Terry
@jterry94_gitlab
Mar 07 01:28
No it launched but when we tried to run our code there were errors
CAM Gerlach
@CAM-Gerlach
Mar 07 01:31
Wait, so did Spyder launch successfully as well, you were just having problems running your own code with it?
Jeff Terry
@jterry94_gitlab
Mar 07 01:37
Spyder launches but when we run our code we got that error
Our code runs in Spyder. It just won't display any plots.
CAM Gerlach
@CAM-Gerlach
Mar 07 01:42
Try changing the graphics backend under Preferences > IPython Console > Graphics > Backend Are you trying to run something that uses the wxPython GUI framework? Those errors seem associated with that. If you have issues in QtConsole as well, then it isn't a Spyder issue. Try it in the plain IPython interpreter (ipython), and if that doesn't work, the standard python interpreter. If it doesn't work in the latter, then it has something to do with the environment on your machine; if it doesn't run in the fomer but does in the latter, then its an IPython issue and should be reported to them; if it works in plain ipython then its a QtConsole issue and should be reported there. If it did work in Spyder on your other machines, then most likely you're just missing some package or other configuration it needs. Regardless, this doesn't really have anything to do with Spyder if its your own code and it doesn't work in other environments as well.
Up until now I thought you were actually reporting an error with Spyder itself not working, not some error in your own code.
Jeff Terry
@jterry94_gitlab
Mar 07 01:53
Sorry about the confusion. I will try that. We have seen the error before, fixed it, then lost the knowledge. I thought maybe someone here may have seen the behavior before and might know what the fix was. I'll try the suggestions.