Bug#802060: aiopg: FTBFS: ImportError: No module named 'psycopg2'

2015-10-28 Thread Hans Joachim Desserud

tags 802060 patch
thanks

Hello,

I found this bug report when I spotted that this package also failed
to build in the current Ubuntu development release. I was able to
reproduce it on my Sid system and fixed it by installing these two
packages:
python3-psycopg2
python3-sqlalchemy

The first one was understandable, because it is the corresponding
python3 package to the one already listed among the build
dependencies. It is not clear to my why sqlalchemy was needed,
and furthermore why only the python3 version was required.
(I doublechecked and I did not have python-sqlalchemy installed
already)

Nevertheless, the attached patch should resolve this issue.
I took the liberty of adding the same version number requirement for
python3-psycopg2 in order to keep it in sync with the package above.

--
mvh / best regards
Hans Joachim Desserud
http://desserud.orgIndex: debian/control
===
--- debian/control	(revisjon 34523)
+++ debian/control	(arbeidskopi)
@@ -6,7 +6,9 @@
 Build-Depends: debhelper (>= 9), dh-python, python3-all, 
  python3-setuptools,
 # tests:
- python-psycopg2 (>= 2.5.2)
+ python-psycopg2 (>= 2.5.2),
+ python3-psycopg2 (>= 2.5.2),
+ python3-sqlalchemy
 Standards-Version: 3.9.6
 Homepage: http://aiopg.readthedocs.org/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/aiopg/trunk/


Bug#802060: aiopg: FTBFS: ImportError: No module named 'psycopg2'

2015-10-17 Thread Chris West (Faux)
Source: aiopg
Version: 0.7.0-1
Severity: serious
Justification: fails to build from source
Tags: sid stretch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-CC: reproducible-bui...@lists.alioth.debian.org

Dear Maintainer,

The package fails to build:

writing manifest file 'aiopg.egg-info/SOURCES.txt'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:170: cd /aiopg-0.7.0/.pybuild/pythonX.Y_3.5/build; python3.5 -m 
unittest discover -v 
aiopg (unittest.loader._FailedTest) ... ERROR

==
ERROR: aiopg (unittest.loader._FailedTest)
--
ImportError: Failed to import test module: aiopg
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
package = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in 
_get_module_from_name
__import__(name)
  File "/aiopg-0.7.0/.pybuild/pythonX.Y_3.5/build/aiopg/__init__.py", line 5, 
in 
from .connection import connect, Connection, TIMEOUT as DEFAULT_TIMEOUT
  File "/aiopg-0.7.0/.pybuild/pythonX.Y_3.5/build/aiopg/connection.py", line 5, 
in 
import psycopg2
ImportError: No module named 'psycopg2'


--
Ran 1 test in 0.000s

FAILED (errors=1)

Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/aiopg.html

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