Spyder is just black

hughrunyan: <p>Ubuntu 16.04 fresh install, CUDA 9.1, cuDNN 7.0.5, driver 390.59. I tested everything while installing it seemed fine, but the Spyder display in Anaconda is just a black rectangle. I can see the header thing that says Spyder (Python 3.5), but nothing else. Anyone seen this before? It’s only in my PyTorch environment – in a fresh environment Spyder works fine.</p>

ptrblck: <p>I think this might be a Spyder/Qt issue.<br>
Could you check, which pyqt version Spyder is using?<br>
In pyqt5.7 some issues were reported of blank screens.<br>
Sometimes you can resolve it by unplugging your external monitor, if you are working on a laptop, but it’s not a really useful workaround in my opinion.</p>
<p>Could you try to downgrade pyqt to 5.6 and try Spyder again?</p>

hughrunyan: <p>Ya Jupyter works fine, so it’s definitely isolated to Spyder. I don’t see pyqt on pip list…there’s a QtPy? 1.4.1? Doesn’t sound like what you’re after. I’ll install it. I found I could import PyQt 5 from command line python. Which version…ok. So I searched and found two slightly different versions of 5.9 (35 and 36, for python 3.5 and 3.6) in anaconda3/pkgs, as well as two of 5.6. I deleted the two 5.9 and restarted conda navigator, but…same problem. I downloaded a fresh version of 5.6 and deleted the other two and…same problem.</p>

ptrblck: <p>Ok, thanks for the update. The naming of <code>pyqt</code> and <code>qtpy</code> is a little weird, but I meant <code>pyqt 5.6</code>.</p>
<p>Is your internal console showing any errors or is it black as well?<br>
Could you check if you have <code>qtawesome</code> installed? (<code>conda list | grep qtawesome</code>)<br>
If not, could you install it and try it again?</p>

hughrunyan: <p><code>qtawesome 0.4.4 py35hd68ff89_0 fdsf</code></p>
<p><code></code></p>
<p>No other obvious problems in any other part of the navigator or other programs. When I run jupyterlab though, torch.cuda.is_available() gives “True”, but if I run the PyTorch transfer learning demo I get error CUDNN_STATUS_MAPPING_ERROR. Sometimes one or two others. If I comment out the cuda test and just tell it to run on CPU it works fine. Something to do with the drivers or build is still off. <code></code></p>

ptrblck: <p>Is this error thrown every time you run the demo or randomly?<br>
Could you try to run the script with <code>CUDA_LAUNCH_BLOCKING=1 python your_script.py</code> and post the stack trace?<br>
I’m not sure, what’s wrong with your installation, but maybe a re-install of anaconda might help.</p>

TeoDora_Andreea: <p>Thank you so much for this post! It worked, I just typed in the Anaconda Prompt: conda install pyqt=5.6. It worked! Nobody knew what was worng and why I got the black screen. You have my regards, thank you very much!</p>

Sai_Sindhura_Tipirne: <p>Oh god! Finally, this worked! <img src="https://discuss.pytorch.org/images/emoji/apple/smiley.png?v=6" title=":smiley:" class="emoji" alt=":smiley:"></p>

SharadaMG: <p>Thanks for this post. I could also overcome this same issue.<br>
Issue was getting black blank page in spider post installation.</p>
<p>Then I just read this post, and did below command in Anaconda prompt. And then I launched spider, its worked as expected…Thanks a lot for this post.</p>
<p>(base) C:\Users\nice&gt;conda install pyqt=5.6<br>
Solving environment: done</p>
<h2>Package Plan</h2>
<p>environment location: C:\Users\nice\Anaconda3</p>
<p>added / updated specs:<br>
- pyqt=5.6</p>
<p>The following packages will be downloaded:</p>
<pre><code>package                    |            build
---------------------------|-----------------
qt-5.6.2                   |  vc14h6f8c307_12        55.8 MB
matplotlib-2.2.2           |   py37had4c4a9_2         6.5 MB
pyqt-5.6.0                 |   py37ha878b3d_6         4.5 MB
certifi-2018.10.15         |           py37_0         138 KB
qtconsole-4.4.2            |           py37_0         200 KB
sip-4.18.1                 |   py37h6538335_2         269 KB
------------------------------------------------------------
                                       Total:        67.5 MB
</code></pre>
<p>The following packages will be REMOVED:</p>
<pre><code>anaconda:   5.3.0-py37_0
</code></pre>
<p>The following packages will be UPDATED:</p>
<pre><code>certifi:    2018.8.24-py37_1      --&gt; 2018.10.15-py37_0
qtconsole:  4.4.1-py37_0          --&gt; 4.4.2-py37_0
</code></pre>
<p>The following packages will be DOWNGRADED:</p>
<pre><code>matplotlib: 2.2.3-py37hd159220_0  --&gt; 2.2.2-py37had4c4a9_2
pyqt:       5.9.2-py37h6538335_2  --&gt; 5.6.0-py37ha878b3d_6
qt:         5.9.6-vc14h1e9a669_2  --&gt; 5.6.2-vc14h6f8c307_12
sip:        4.19.8-py37h6538335_0 --&gt; 4.18.1-py37h6538335_2
</code></pre>
<p>Proceed ([y]/n)? y</p>
<p>Downloading and Extracting Packages<br>
qt-5.6.2             | 55.8 MB   | #################################### | 100%<br>
matplotlib-2.2.2     | 6.5 MB    | #################################### | 100%<br>
pyqt-5.6.0           | 4.5 MB    | #################################### | 100%<br>
certifi-2018.10.15   | 138 KB    | #################################### | 100%<br>
qtconsole-4.4.2      | 200 KB    | #################################### | 100%<br>
sip-4.18.1           | 269 KB    | #################################### | 100%<br>
Preparing transaction: done<br>
Verifying transaction: done<br>
Executing transaction: done</p>
<p>(base) C:\Users\nice&gt;</p>

Rupinder_Kaur: <p>Thank you sooooo much…pyqt=5.6 worked…really helpful…I had tried almost everything available on the internet to fix this black screen issue of spyder…finally this worked for me.</p>