Created attachment 1343258 [details] Modified tmp.py file Description of problem: After I messed up my spyder3 installation by installing various packages (in an attend to solve bug 1502871), I ended up with an unusable graphic backend "Automatic". Version-Release number of selected component (if applicable): python3-spyder.noarch 3.2.2-1.fc26 @updates How reproducible: On my system it's very reproducible. Steps to Reproduce: 1. Install lots of things. 2. Reset spyder3 to its default settings. 3. Set tmp.py in ~/.local/spyder-py3 to the tmp.py file of the attachment. 4. Select the graphic backend "Automatic" from Tool -> Preferences -> IPython Console -> Graphics tab - Backend selection [Automatic] 5. Run tmp.py file. Actual results: The IPython console shows the following error: runfile('~/.config/spyder-py3/temp.py', wdir='~/.config/spyder-py3') Traceback (most recent call last): File "<ipython-input-1-318aad34c252>", line 1, in <module> runfile('~/.config/spyder-py3/temp.py', wdir='~/.config/spyder-py3') File "/usr/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 707, in runfile execfile(filename, namespace) File "/usr/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 101, in execfile exec(compile(f.read(), filename, 'exec'), namespace) File "~/.config/spyder-py3/temp.py", line 8, in <module> import matplotlib.pyplot as plt File "/usr/lib64/python3.6/site-packages/matplotlib/pyplot.py", line 115, in <module> _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/usr/lib64/python3.6/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup globals(),locals(),[backend_name],0) File "/usr/lib64/python3.6/site-packages/matplotlib/backends/backend_qt4agg.py", line 18, in <module> from .backend_qt5agg import FigureCanvasQTAggBase as _FigureCanvasQTAggBase File "/usr/lib64/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 16, in <module> from .backend_qt5 import QtCore File "/usr/lib64/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 26, in <module> import matplotlib.backends.qt_editor.figureoptions as figureoptions File "/usr/lib64/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 20, in <module> import matplotlib.backends.qt_editor.formlayout as formlayout File "/usr/lib64/python3.6/site-packages/matplotlib/backends/qt_editor/formlayout.py", line 56, in <module> from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore File "/usr/lib64/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 127, in <module> from PyQt5 import QtCore, QtGui, QtWidgets RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the QObject class Expected results: Spyder3 shows the expected graphic. Additional info: Sorry that I'm filing so many bugs this afternoon but if you need further information, just say it.
Can you try this build and see if the handling of automatic backend is improved in this version? https://koji.fedoraproject.org/koji/buildinfo?buildID=1018985
spyder-3.2.6-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d26f75d9c6
spyder-3.2.6-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d26f75d9c6
spyder-3.2.6-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d26f75d9c6
spyder-3.2.6-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.