Your message dated Sun, 08 Oct 2017 18:04:49 +0000
with message-id <[email protected]>
and subject line Bug#852308: fixed in python-qtconsole 4.3.1-1
has caused the Debian Bug report #852308,
regarding [jupyter-qtconsole]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
852308: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852308
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: jupyter-qtconsole
Version: 4.2.1-3
Severity: normal

Dear Maintainer,

Clicking on the "Print" menu item of QtConsole interface leads to a
crash with the following error:
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/qtconsole/console_widget.py",
> line 747, in print_ printer = QtGui.QPrinter()
> AttributeError: module 'PyQt5.QtWidgets' has no attribute 'QPrinter'

Since it is apparently due to referring to obsolete module organization
when loading python modules to support printing, the follwing patch
seems to fix the issue:

--- /usr/lib/python3/dist-packages/qtconsole/console_widget.py.bak 2017-01-23 
12:02:59.704432492 +0100
+++ /usr/lib/python3/dist-packages/qtconsole/console_widget.py 2017-01-23 
12:11:55.789095501 +0100
@@ -12,6 +12,7 @@
 import webbrowser from qtconsole.qt import QtCore, QtGui
+from PyQt5 import QtPrintSupport
 
 from traitlets.config.configurable import LoggingConfigurable
 from qtconsole.rich_text import HtmlExporter
@@ -744,8 +745,8 @@
         """ Print the contents of the ConsoleWidget to the specified QPrinter.
         """
         if (not printer):
-            printer = QtGui.QPrinter()
-            if(QtGui.QPrintDialog(printer).exec_() != QtGui.QDialog.Accepted):
+            printer = QtPrintSupport.QPrinter()
+            if(QtPrintSupport.QPrintDialog(printer).exec() != 
QtGui.QDialog.Accepted): return self._control.print_(printer)


After applying such changes, test runs to print to a PDF file have been
successful.

Regards,

J.-S. Kroll-Rabotin


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages jupyter-qtconsole depends on:
ii  jupyter-core       4.2.1-1
ii  python3-qtconsole  4.2.1-3
pn  python3:any        <none>

jupyter-qtconsole recommends no packages.

jupyter-qtconsole suggests no packages.

-- no debconf information

Attachment: pgp5PXxt9HovO.pgp
Description: Signature digitale OpenPGP


--- End Message ---
--- Begin Message ---
Source: python-qtconsole
Source-Version: 4.3.1-1

We believe that the bug you reported is fixed in the latest version of
python-qtconsole, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Picca Frédéric-Emmanuel <[email protected]> (supplier of updated 
python-qtconsole package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 08 Oct 2017 12:16:47 +0200
Source: python-qtconsole
Binary: ipython-qtconsole python-qtconsole ipython3-qtconsole python3-qtconsole 
jupyter-qtconsole python-qtconsole-doc
Architecture: source
Version: 4.3.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Picca Frédéric-Emmanuel <[email protected]>
Description:
 ipython-qtconsole - transitional dummy package for python-qtconsole
 ipython3-qtconsole - transitional dummy package for python3-qtconsole
 jupyter-qtconsole - Jupyter - Qt console (binaries)
 python-qtconsole - Jupyter - Qt console (Python 2)
 python-qtconsole-doc - Jupyter - Qt console (documentation)
 python3-qtconsole - Jupyter - Qt console (Python 3)
Closes: 852308
Changes:
 python-qtconsole (4.3.1-1) unstable; urgency=medium
 .
   * New upstream version 4.3.1 (Closes: #852308)
   * Bump standards-Version to 4.1.1 (nothing to do)
   * Switch to compat level 10
Checksums-Sha1:
 9925ad4cbe29cfd7841553ae9fcbb36b530a3287 2745 python-qtconsole_4.3.1-1.dsc
 1979dca3a61f18b14e71b5715c5e9dfc6ff9c2e3 416931 
python-qtconsole_4.3.1.orig.tar.gz
 a2f8b4478fc53e39ddae8e6d082f03535f49a5fc 6068 
python-qtconsole_4.3.1-1.debian.tar.xz
 ae9cf35fa38f7ed8665e99c450c39c4809335257 12967 
python-qtconsole_4.3.1-1_source.buildinfo
Checksums-Sha256:
 a4d9778bdd1c64b63483e9251a8e687617150bf60788bf2ff9b41a32c71d9608 2745 
python-qtconsole_4.3.1-1.dsc
 eff8c2faeda567a0bef5781f419a64e9977988db101652b312b9d74ec0a5109c 416931 
python-qtconsole_4.3.1.orig.tar.gz
 4dcf5d40cd51d6467771ce0761af204c41d2a1e393580852e0e0bd8407d031c8 6068 
python-qtconsole_4.3.1-1.debian.tar.xz
 3507f989af34df295946c28a389e281140faa24b06bca2437559bc1ed7e0336d 12967 
python-qtconsole_4.3.1-1_source.buildinfo
Files:
 6743bc47336eeea5b8a6052aebe67941 2745 python optional 
python-qtconsole_4.3.1-1.dsc
 42df4f81f0b78706d87f759e5c8d6b39 416931 python optional 
python-qtconsole_4.3.1.orig.tar.gz
 91227e7b53a5e4d9d75d1125590083fd 6068 python optional 
python-qtconsole_4.3.1-1.debian.tar.xz
 232d89660790280c571bb3f6ba0c40f2 12967 python optional 
python-qtconsole_4.3.1-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE2bRTt5m4gw2UXmoKW/VOXhK5ALsFAlnaZSMACgkQW/VOXhK5
ALvarxAAt56w2oJxV1sgAlxjD/Ae1E0PK4Mn9qcB2j/oZ6eQ9ZprgoAvX+2Ylmts
+ra+tttK+OG9aXZid5VdURvjuZR8IxEJmH01GVYSrW0LrBPBg3GKvYMa+Auada/4
Q57odRKrwiA1PwdlD0KF2tWBHOQxzMDU4XwuPX96Q2PXHDh4b8DTS/GnXAp6iSPx
4bnCnwOs8bgV+myfkns3A5YWRJBlU1Skj9kyxykZJYrkXoYwD4+YLc8n9MoW92Jj
TA2eN/pGgm30vOJTByLzR53KY8xCHxFbKrz9OG+owaXrPgXiBQ9zEF4nBCl9Ds/D
vvvxhwHltl/H5zXeIi882Ob+TOsmuYL9tuHvSKFRRKn3H4NHpC+E+nX4r0hREEV9
Yv8zEjXopuWBvOzYkPLJRTRcVrEvxVpyLem5/aEIVDY8ccangyxk/F4olGLT7M6I
g5xhgHiZr+fTvMNlhWqMqgBIIbNxEb6oTnhRne/G8Kp0lwx0yeXzrpx2UK9W7Niw
l6GYd0sGbgKgdrQyex0cNrDYtIAlep1h2Kf9/EflZ1oorje3kUA0AuvXG1r/LUkO
Wuv29TQUkw2clM543ChOQBTQM8+syCMUa3LV+QdMaPHlOdS9u4d2qCiOFrQIXxzh
/F6iuwrZGyoSHfgwO295YAvfp8kC/Wp54matIcYhHUuS4sBfrfQ=
=VSBj
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to