Bug#835489: Fails to start

2016-09-07 Thread Dmitry Eremin-Solenikov
Package: pyqso
Followup-For: Bug #835489

Please consider the attached patch that fixed all the issues of PyQSO vs
Python3. I have uploaded the corresponding package to
mentors.debian.net (https://mentors.debian.net/package/pyqso). Thanks in 
advance.

-- 
With best wishes
Dmitry

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

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

Versions of packages pyqso depends on:
ii  gir1.2-gtk-3.0   3.21.5-3
ii  libjs-jquery 1.12.4-1
ii  libjs-underscore 1.8.3~dfsg-1
ii  python-libhamlib23.0.1-1
ii  python3-gi-cairo 3.20.1-1
ii  python3-matplotlib   1.5.2~rc2-1
ii  python3-mpltoolkits.basemap  1.0.7+dfsg-4
ii  python3-numpy1:1.11.1~rc1-1
pn  python3:any  

pyqso recommends no packages.

pyqso suggests no packages.

-- no debconf information
diff -Napur pyqso-0.3-old/debian/changelog pyqso-0.3/debian/changelog
--- pyqso-0.3-old/debian/changelog	2016-07-08 04:55:53.0 +0300
+++ pyqso-0.3/debian/changelog	2016-09-08 01:01:19.026455214 +0300
@@ -1,3 +1,14 @@
+pyqso (0.3-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rebuild with Python3 (Closes: #835489).
+  * Change packages in dependencies to rerefence Python3 packages.
+  * Move python(3)-libhamlib2 to Recomends, as the Python3 version of package
+is not yet available in Debian.
+  * Bump standards version to 3.9.8 (No changes needed).
+
+ -- Dmitry Eremin-Solenikov   Thu, 08 Sep 2016 01:00:46 +0300
+
 pyqso (0.3-1) unstable; urgency=medium
 
   * Imported Upstream version 0.3.
diff -Napur pyqso-0.3-old/debian/control pyqso-0.3/debian/control
--- pyqso-0.3-old/debian/control	2016-07-08 04:51:02.0 +0300
+++ pyqso-0.3/debian/control	2016-09-08 01:01:46.095566806 +0300
@@ -5,10 +5,10 @@ Section: hamradio
 Priority: optional
 Build-Depends: debhelper (>= 9),
dh-python,
-   python-all,
+   python3-all,
python-setuptools,
python-sphinx
-Standards-Version: 3.9.6
+Standards-Version: 3.9.8
 Vcs-Browser: http://anonscm.debian.org/cgit/pkg-hamradio/pyqso.git
 Vcs-Git: http://anonscm.debian.org/git/pkg-hamradio/pyqso.git
 Homepage: http://christianjacobs.uk/pyqso
@@ -16,15 +16,15 @@ Homepage: http://christianjacobs.uk/pyqs
 Package: pyqso
 Architecture: all
 Depends: ${misc:Depends},
- ${python:Depends},
- python-libhamlib2,
+ ${python3:Depends},
  gir1.2-gtk-3.0,
- python-gi-cairo,
- python-mpltoolkits.basemap,
- python-numpy,
- python-matplotlib,
+ python3-gi-cairo,
+ python3-mpltoolkits.basemap,
+ python3-numpy,
+ python3-matplotlib,
  libjs-jquery,
  libjs-underscore
+Recommends: python3-libhamlib2,
 Description: logging tool for amateur radio operators
  PyQSO is a logging tool for amateur radio operators. It provides a simple
  graphical interface through which users can manage information about the
diff -Napur pyqso-0.3-old/debian/rules pyqso-0.3/debian/rules
--- pyqso-0.3-old/debian/rules	2016-07-08 04:51:02.0 +0300
+++ pyqso-0.3/debian/rules	2016-09-08 00:38:38.589181137 +0300
@@ -2,7 +2,7 @@
 export PYBUILD_NAME=pyqso
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python3 --buildsystem=pybuild
 
 override_dh_auto_build:
 	PYTHONPATH=. http_proxy='localhost' sphinx-build -N -bhtml docs/source/ build/html  # HTML generator


Bug#835489: Fails to start

2016-08-26 Thread Dmitry Eremin-Solenikov
Package: pyqso
Version: 0.3-1
Severity: grave

pyqso fails to start with the following console log.

/usr/bin/pyqso:20: PyGIWarning: Gtk was imported without specifying a version 
first. Use gi.require_version('Gtk', '3.0') before import to ensure that the 
right version gets loaded.
  from gi.repository import Gtk, GdkPixbuf
Traceback (most recent call last):
  File "/usr/bin/pyqso", line 22, in 
import configparser
ImportError: No module named configparser

After installing manually python-configparser, pyqso fails to find
unittest.mock module:

/usr/bin/pyqso:20: PyGIWarning: Gtk was imported without specifying a version 
first. Use gi.require_version('Gtk', '3.0') before import to ensure that the 
right version gets loaded.
  from gi.repository import Gtk, GdkPixbuf
INFO:root:PyQSO version 0.3
/usr/lib/python2.7/dist-packages/pyqso/logbook.py:20: PyGIWarning: PangoCairo 
was imported without specifying a version first. Use 
gi.require_version('PangoCairo', '1.0') before import to ensure that the right 
version gets loaded.
  from gi.repository import Gtk, Pango, PangoCairo
/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: 
Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may 
take a moment.')
Traceback (most recent call last):
  File "/usr/bin/pyqso", line 38, in 
from pyqso.logbook import *
  File "/usr/lib/python2.7/dist-packages/pyqso/logbook.py", line 38, in 
from pyqso.log import *
  File "/usr/lib/python2.7/dist-packages/pyqso/log.py", line 26, in 
from pyqso.record_dialog import *
  File "/usr/lib/python2.7/dist-packages/pyqso/record_dialog.py", line 34, in 

from pyqso.callsign_lookup import *
  File "/usr/lib/python2.7/dist-packages/pyqso/callsign_lookup.py", line 22, in 

import unittest.mock
ImportError: No module named mock

The module unittest.mock is provided only by Python 3.x. However manually 
starting pyqso with python3 also fails:

$ python3 /usr/bin/pyqso
/usr/bin/pyqso:20: PyGIWarning: Gtk was imported without specifying a version 
first. Use gi.require_version('Gtk', '3.0') before import to ensure that the 
right version gets loaded.
  from gi.repository import Gtk, GdkPixbuf
INFO:root:PyQSO version 0.3
Traceback (most recent call last):
  File "/usr/bin/pyqso", line 37, in 
from pyqso.adif import *
ImportError: No module named 'pyqso'


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

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

Versions of packages pyqso depends on:
ii  gir1.2-gtk-3.0  3.20.9-1
ii  libjs-jquery1.12.4-1
ii  libjs-underscore1.7.0~dfsg-1
ii  python-gi-cairo 3.20.1-1
ii  python-libhamlib2   3.0.1-1
ii  python-matplotlib   1.5.2~rc2-1
ii  python-mpltoolkits.basemap  1.0.7+dfsg-4
ii  python-numpy1:1.11.1~rc1-1
pn  python:any  

pyqso recommends no packages.

pyqso suggests no packages.

-- no debconf information