unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30121: python-matplotlib broken.
@ 2018-01-15 13:04 Fis Trivial
  2018-01-15 13:46 ` Konrad Hinsen
  0 siblings, 1 reply; 6+ messages in thread
From: Fis Trivial @ 2018-01-15 13:04 UTC (permalink / raw)
  To: 30121

* Steps to reproduce:

$ python
>>> from matplotlib import pyplot

* Full message:
--8<---------------cut here---------------start------------->8---
Python 3.5.3 (default, Jan  1 1970, 00:00:01)
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from matplotlib import pyplot
Traceback (most recent call last):
  File "/home/fis/.guix-profile/lib/python3.5/site-packages/matplotlib/backends/qt_compat.py", line 176, in <module>
    from PySide import QtCore, QtGui, __version__, __version_info__
ImportError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/fis/.guix-profile/lib/python3.5/site-packages/matplotlib/pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/home/fis/.guix-profile/lib/python3.5/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "/home/fis/.guix-profile/lib/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", line 16, in <module>
    from .backend_qt5 import QtCore
  File "/home/fis/.guix-profile/lib/python3.5/site-packages/matplotlib/backends/backend_qt5.py", line 26, in <module>
    import matplotlib.backends.qt_editor.figureoptions as figureoptions
  File "/home/fis/.guix-profile/lib/python3.5/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 20, in <module>
    import matplotlib.backends.qt_editor.formlayout as formlayout
  File "/home/fis/.guix-profile/lib/python3.5/site-packages/matplotlib/backends/qt_editor/formlayout.py", line 56, in <module>
    from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
  File "/home/fis/.guix-profile/lib/python3.5/site-packages/matplotlib/backends/qt_compat.py", line 179, in <module>
    "Matplotlib qt-based backends require an external PyQt4, PyQt5,\n"
ImportError: Matplotlib qt-based backends require an external PyQt4, PyQt5,
or PySide package to be installed, but it was not found.
>>>
--8<---------------cut here---------------end--------------->8---

* Platform
Fedora 26 x86_64

* Guix version
guix (GNU Guix) bad12e839c2f7823c45aa0121f7d5c9bb70905b7

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30121: python-matplotlib broken.
  2018-01-15 13:04 bug#30121: python-matplotlib broken Fis Trivial
@ 2018-01-15 13:46 ` Konrad Hinsen
  2018-01-15 14:25   ` Fis Trivial
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Hinsen @ 2018-01-15 13:46 UTC (permalink / raw)
  To: Fis Trivial, 30121

On 15/01/2018 14:04, Fis Trivial wrote:

> * Steps to reproduce:
> 
> $ python
>>>> from matplotlib import pyplot

Do you have a matplotlibrc file that sets a Qt-based backend? The 
default backend is TkAgg, which does not require Qt. (Note that PySide 
is a Qt interface for Python.)

Konrad.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30121: python-matplotlib broken.
  2018-01-15 13:46 ` Konrad Hinsen
@ 2018-01-15 14:25   ` Fis Trivial
  2018-01-15 16:41     ` Konrad Hinsen
  0 siblings, 1 reply; 6+ messages in thread
From: Fis Trivial @ 2018-01-15 14:25 UTC (permalink / raw)
  To: Konrad Hinsen, 30121@debbugs.gnu.org

>
> Do you have a matplotlibrc file that sets a Qt-based backend? The default backend is TkAgg, which does not require Qt. (Note that PySide is a Qt interface for Python.)
> 
I myself have never created such a file.

I searched home with `find . -iname "*matplotlib*"`, didn't find the rc file
you mentioned except in some virtualenvs. But that should not be related.

By searching /etc as root, didn't find it either.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30121: python-matplotlib broken.
  2018-01-15 14:25   ` Fis Trivial
@ 2018-01-15 16:41     ` Konrad Hinsen
  2018-01-16  9:37       ` Konrad Hinsen
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Hinsen @ 2018-01-15 16:41 UTC (permalink / raw)
  To: Fis Trivial, 30121@debbugs.gnu.org

Fis Trivial <ybbs.daans@hotmail.com> writes:

>> Do you have a matplotlibrc file that sets a Qt-based backend? The default backend is TkAgg, which does not require Qt. (Note that PySide is a Qt interface for Python.)
>> 
> I myself have never created such a file.
>
> I searched home with `find . -iname "*matplotlib*"`, didn't find the rc file
> you mentioned except in some virtualenvs. But that should not be related.
>
> By searching /etc as root, didn't find it either.

After some more checks, I can confirm your bug report. Matplotlib
actually does use Qt by default under Python 3. I still use Python 2
for most of my work, and under Python 2 matplotlib uses TkAgg as its
default backend.

After a quick look at the definition of python-matplotlib, I suspect
that python-pyqt should be a propagated-input, not a plain input.
I will try this out as soon as possible.

Konrad.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30121: python-matplotlib broken.
  2018-01-15 16:41     ` Konrad Hinsen
@ 2018-01-16  9:37       ` Konrad Hinsen
  2018-01-17 14:38         ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Hinsen @ 2018-01-16  9:37 UTC (permalink / raw)
  To: Fis Trivial, 30121@debbugs.gnu.org

On 15/01/2018 17:41, Konrad Hinsen wrote:

> After a quick look at the definition of python-matplotlib, I suspect
> that python-pyqt should be a propagated-input, not a plain input.
> I will try this out as soon as possible.

That was indeed the cause of the bug. I have submitted a patch:

   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30135

Konrad.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30121: python-matplotlib broken.
  2018-01-16  9:37       ` Konrad Hinsen
@ 2018-01-17 14:38         ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2018-01-17 14:38 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: 30121@debbugs.gnu.org

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> On 15/01/2018 17:41, Konrad Hinsen wrote:
>
>> After a quick look at the definition of python-matplotlib, I suspect
>> that python-pyqt should be a propagated-input, not a plain input.
>> I will try this out as soon as possible.
>
> That was indeed the cause of the bug. I have submitted a patch:
>
>   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30135

Case closed, thanks to the two of you!

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-01-17 14:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15 13:04 bug#30121: python-matplotlib broken Fis Trivial
2018-01-15 13:46 ` Konrad Hinsen
2018-01-15 14:25   ` Fis Trivial
2018-01-15 16:41     ` Konrad Hinsen
2018-01-16  9:37       ` Konrad Hinsen
2018-01-17 14:38         ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).