[Debian-med-packaging] Bug#801112: python-biopython: FTBFS due to test failure with multiple python3 versions supported

Scott Kitterman debian at kitterman.com
Tue Oct 6 12:10:52 UTC 2015


Source: python-biopython
Version: 1.65+dfsg-2
Severity: serious
Justification: fails to build from source (but built successfully in the past)

The package FTBFS with the following error during the binNMU to add python3.5
support:

======================================================================
ERROR: test_DocSQL (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_DocSQL
Traceback (most recent call last):
  File "/«BUILDDIR»/python-biopython-1.65+dfsg/.pybuild/pythonX.Y_3.5/build/Bio/DocSQL.py", line 33, in <module>
    import MySQLdb
ImportError: No module named 'MySQLdb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/«BUILDDIR»/python-biopython-1.65+dfsg/.pybuild/pythonX.Y_3.5/build/Tests/test_DocSQL.py", line 7, in <module>
    import Bio.DocSQL
  File "/«BUILDDIR»/python-biopython-1.65+dfsg/.pybuild/pythonX.Y_3.5/build/Bio/DocSQL.py", line 35, in <module>
    raise MissingPythonDependencyError("Install MySQLdb if you want to use "
Bio.MissingPythonDependencyError: Install MySQLdb if you want to use Bio.DocSQL.

I did verify that python-mysqldb is built with support for python3.5, so the
issue appears to be in this package.

Scott K



More information about the Debian-med-packaging mailing list