Bug 1506250 - Problem with graphic backend "Automatic"
Summary: Problem with graphic backend "Automatic"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: spyder
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mukundan Ragavan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-25 13:34 UTC by jakob.jakobson18
Modified: 2018-02-01 21:45 UTC (History)
3 users (show)

Fixed In Version: spyder-3.2.6-3.fc27
Clone Of:
Environment:
Last Closed: 2018-02-01 21:45:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Modified tmp.py file (143 bytes, text/plain)
2017-10-25 13:34 UTC, jakob.jakobson18
no flags Details

Description jakob.jakobson18 2017-10-25 13:34:06 UTC
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.

Comment 1 Mukundan Ragavan 2018-01-19 02:47:07 UTC
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

Comment 2 Fedora Update System 2018-01-19 02:47:49 UTC
spyder-3.2.6-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d26f75d9c6

Comment 3 Fedora Update System 2018-01-20 13:36:33 UTC
spyder-3.2.6-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d26f75d9c6

Comment 4 Fedora Update System 2018-01-21 10:40:31 UTC
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

Comment 5 Fedora Update System 2018-02-01 21:45:58 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.