Spyder: Spyder menu not showing + right click not working

Created on 30 Jun 2018  路  15Comments  路  Source: spyder-ide/spyder

Issue Report Checklist

  • [x] Searched the issues page for similar reports
  • [x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • [x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)

    • [x] Restarted Spyder

    • [x] Reset preferences with spyder --reset

    • [ ] Reinstalled the latest version of Anaconda

    • [x] Tried the other applicable steps from the Troubleshooting Guide

  • [x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I installed spyder in a freshly created conda environment several days ago and it used to work just fine.
I wanted to use spyder after an Ubuntu update but I cant click on the menu bar entries. When I am clicking on File, Edit, Search ect. thebackground of the text turns blue, so it recognizes the click, but the menu does not show up. I have no idea how to troubleshoot this. I cant still run my python programs in console and hotkeys are working but I cant' access menus and thus the usage is quite limited. Also right mouse click doens't seem to work, or the menu is again not displayed.

What steps reproduce the problem?

  1. open spyder 3.2.8-py36_0
  2. click on menu

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

menu should open

Paste Traceback/Error Below (if applicable)

nothing to copy since internal Console is empty except for standard text

Versions

  • Spyder version: 3.2.8
  • Python version: 3.5
  • Qt version: 5.6.2
  • PyQt version: 5.6.0
  • Operating System name/version: Ubuntu 18.04

Dependencies

IPython >=4.0    :  6.4.0 (OK)
cython >=0.21    :  0.28.2 (OK)
jedi >=0.9.0     :  0.12.0 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
numpy >=1.7      :  1.14.3 (OK)
pandas >=0.13.1  :  0.23.0 (OK)
psutil >=0.3     :  5.4.5 (OK)
pycodestyle >=2.3:  2.4.0 (OK)
pyflakes >=0.6.0 :  1.6.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pylint >=0.25    :  1.8.4 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
rope >=0.9.4     :  0.10.7 (OK)
sphinx >=0.6.6   :  1.7.4 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
Awaiting Followup

Most helpful comment

My co-worker had the same issue and fixed it by leaving full-screen mode with F11. Don't know what exactly is wrong, but it worked.

All 15 comments

Please open a system terminal (e.g. xterm) and run there

conda update qt pyqt sip

and try again.

Solving environment: done

Package Plan

environment location: /home/userxyz/anaconda3/envs/py36

added / updated specs:
- pyqt
- qt
- sip

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
conda-4.5.4                |           py36_0         1.0 MB

The following NEW packages will be INSTALLED:

kiwisolver:       1.0.1-py36h764f252_0

The following packages will be UPDATED:

cairo:            1.14.12-h77bcde2_0    --> 1.14.12-h7636065_2   
conda:            4.5.2-py36_0          --> 4.5.4-py36_0         
dbus:             1.12.2-hc3f9b76_1     --> 1.13.2-h714fa37_1    
fontconfig:       2.12.4-h88586e7_1     --> 2.12.6-h49f89f6_0    
glib:             2.53.6-h5d9569c_2     --> 2.56.1-h000015b_0    
gst-plugins-base: 1.12.4-h33fb286_0     --> 1.14.0-hbbd80ab_1    
gstreamer:        1.12.4-hb53b477_0     --> 1.14.0-hb453b48_1    
harfbuzz:         1.7.4-hc5b324e_0      --> 1.7.6-h5f0a787_1     
libxcb:           1.12-hcd93eb1_4       --> 1.13-h1bed415_1      
libxml2:          2.9.7-h26e45fe_0      --> 2.9.8-hf84eae3_0     
matplotlib:       2.1.2-py36h0e671d2_0  --> 2.2.2-py36h0e671d2_1 
pcre:             8.41-hc27e229_1       --> 8.42-h439df22_0      
pyqt:             5.6.0-py36h0386399_5  --> 5.9.2-py36h751905a_0 
qt:               5.6.2-h974d657_12     --> 5.9.5-h7e424d6_0     
sip:              4.18.1-py36h51ed4ed_2 --> 4.19.8-py36hf484d3e_0

Proceed ([y]/n)? y

Downloading and Extracting Packages
conda 4.5.4######################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
[1]+ Done spyder

Unfortunately this didn't solve my problem. How can I provide further information?

Please run

conda install qt=5.9 pyqt=5.9 sip=4.19

and try again

simply running

conda install qt=5.9 pyqt=5.9 sip=4.19

results:

Solving environment: done

All requested packages already installed.

It didn't solve the problem.
Also

conda config --add channels conda-forge

followed by install also didn't help. But some new unrelated? packages were updated:

Solving environment: | ^[[1done

Package Plan

environment location: /home/userxyz/anaconda3/envs/py36

added / updated specs:
- pyqt=5.9
- qt=5.9
- sip=4.19

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
openssl-1.0.2o             |                0         3.5 MB  conda-forge
ca-certificates-2018.4.16  |                0         139 KB  conda-forge
sip-4.19.8                 |           py36_0         277 KB  conda-forge
certifi-2018.4.16          |           py36_0         142 KB  conda-forge
------------------------------------------------------------
                                       Total:         4.1 MB

The following packages will be UPDATED:

ca-certificates: 2018.03.07-0          --> 2018.4.16-0      conda-forge
certifi:         2018.4.16-py36_0      --> 2018.4.16-py36_0 conda-forge
openssl:         1.0.2o-h20670df_0     --> 1.0.2o-0         conda-forge
sip:             4.19.8-py36hf484d3e_0 --> 4.19.8-py36_0    conda-forge

Proceed ([y]/n)? y

Sorry, I'm out of ideas, so I'm closing this one. My last advice is for you to remove and reinstall Anaconda.

I reinstalled Anaconda and it didn't fix my problem. However I found a different aspect which may hint to the cause. I can access all the menus + right click when I move the spyder window to my internal laptop display or my second screen attached via Displaylink Usb3 Dockingstation. However when I use spyder on my primary screen which is an external Monitor attached directly via HDMI, the menus wont appear. So what could cause this weird problem?

PS I updated Traceback and dependencies

This a problem with Qt not with Spyder, so we can't help you further, sorry.

I found this comment from last year and it did help me with the same problem. It worked to me, I hope it can help you too:

"So in case if anyone stumbles upon this:

I have no idea how it is related but today I've just turned the help pane off and it got back to normal. Before I have turned on/off quite a few of the panes but only this one forced Spyder to render properly and since then things are working properly."

https://github.com/spyder-ide/spyder/issues/4821#issuecomment-345128820

My co-worker had the same issue and fixed it by leaving full-screen mode with F11. Don't know what exactly is wrong, but it worked.

I found this comment from last year and it did help me with the same problem. It worked to me, I hope it can help you too:

"So in case if anyone stumbles upon this:

I have no idea how it is related but today I've just turned the help pane off and it got back to normal. Before I have turned on/off quite a few of the panes but only this one forced Spyder to render properly and since then things are working properly."

#4821 (comment)

Hi,
I had the same issue, and moving the window to a secondary screen let me open menu again.
Just few additional infos:
OS: arch linux
main screen: FHD
secondary screen: 4k

I think this should stay open.
Thanks for your great effort

same issue here

same here, archlinux, standard dark theme, oxygen style set in spyder
https://youtu.be/yDdMbZl7wYc
only file and edit menus are not open, when click them directly, but opens when open another menu and move mouse cursor to the file/edit.
hotkeys like ALT+F are working and menu is opened.
looks like File and Edit have 2 different instances (one above and one below) and direct menu clicks always "eaten" by the top layer.

this happened to me, googling got me here. I saw the reference to F11 above, and immediately recalled accidentally hitting F11 when trying to type a ), hitting F11 again fixed the situation. thanks

F11 also worked for me, but the other way around. It only works when I'm in full-screen mode, in regular mode I can't access the top menu bar. But ok, happy it's "solved". ;-)

F11 does not work for me but i have realized that the problem is only in the external monitor. Also i have moved hald of the spyder to built in monitor and half of the spyder to 2nd monitor, there is no problem in the built in half. And also in this position, there is a problem.
image

But when i change it to this problem solved.
image

Was this page helpful?
0 / 5 - 0 ratings