Bug 1506244

Summary: Problem with graphic backends in spyder
Product: [Fedora] Fedora Reporter: jakob.jakobson18
Component: spyderAssignee: Mukundan Ragavan <nonamedotc>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: nonamedotc, richard.shadbolt, thozza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-26 22:15:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Modified tmp.py file
none
Screenshot of the graphics window none

Description jakob.jakobson18 2017-10-25 13:31:48 UTC
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 "Tkinter".


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 "Tkinter" from Tool -> Preferences -> IPython Console -> Graphics tab - Backend selection [Tkinter]
5. Run tmp.py file.


Actual results:
The tmp.py file runs and the graphic window opens but no graphic is drawn.

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 jakob.jakobson18 2017-10-25 13:36:11 UTC
Created attachment 1343263 [details]
Modified tmp.py file

Comment 2 jakob.jakobson18 2017-10-25 13:43:32 UTC
Created attachment 1343277 [details]
Screenshot of the graphics window

>
> Actual results:
> The tmp.py file runs and the graphic window opens but no graphic is drawn.
>

This is the actual graphic window.

Comment 3 Mukundan Ragavan 2017-10-25 18:18:49 UTC
I am sorry but I cannot reproduce most of these issues. I am able to plot using inline, gtk3 and tkinter. 

qt4 crashes, but I wonder if that has to do with spyder being compiled with QT5 completely. I might be wrong here.

qt5 plot opens but does not show anything - just like the screenshot in comment #2.

I wonder if this is a matplotlib-qt5 issue. Because, every other setting seems to work fine ...

Comment 4 Shadders 2017-10-26 20:00:08 UTC
Hi,
Set the relevant preferences to Tkinter, and receive the error :

ModuleNotFoundError: No module named 'matplotlib.backends.backend_qt4agg'

As per https://bugzilla.redhat.com/show_bug.cgi?id=1502871

Regards,
Shadders.

Comment 5 Mukundan Ragavan 2017-10-26 22:15:43 UTC
Let's keep the discussion in one place. :)

Closing this.

*** This bug has been marked as a duplicate of bug 1502871 ***