Debian Bug report logs - #868927
python-pybedtools FTBFS with more than one supported Python3 version

version graph

Package: src:python-pybedtools; Maintainer for src:python-pybedtools is Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>;

Affects: src:python-gffutils, python3-pybedtools

Reported by: Lucas Nussbaum <lucas@debian.org>

Date: Wed, 19 Jul 2017 16:07:24 UTC

Severity: serious

Tags: buster, patch, sid

Found in version python-pybedtools/0.7.8-1

Fixed in version python-pybedtools/0.7.10-1

Done: Andreas Tille <tille@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#868927; Package src:python-pybedtools. (Wed, 19 Jul 2017 16:07:27 GMT) (full text, mbox, link).


Acknowledgement sent to Lucas Nussbaum <lucas@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>. (Wed, 19 Jul 2017 16:07:27 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Lucas Nussbaum <lucas@debian.org>
To: submit@bugs.debian.org
Subject: python-pybedtools: FTBFS: pybedtools/cbedtools.cxx:4:20: fatal error: Python.h: No such file or directory
Date: Wed, 19 Jul 2017 17:55:55 +0200
Source: python-pybedtools
Version: 0.7.8-1
Severity: serious
Tags: buster sid
User: debian-qa@lists.debian.org
Usertags: qa-ftbfs-20170719 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc/ -I/usr/include/python3.6m -c pybedtools/cbedtools.cxx -o build/temp.linux-amd64-3.6/pybedtools/cbedtools.o
> cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
> pybedtools/cbedtools.cxx:4:20: fatal error: Python.h: No such file or directory
>  #include "Python.h"
>                     ^
> compilation terminated.
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
> E: pybuild pybuild:283: build: plugin distutils failed with: exit code=1: /usr/bin/python3.6 setup.py build 
> dh_auto_build: pybuild --build --test-nose -i python{version} -p 3.6 3.5 returned exit code 13
> debian/rules:19: recipe for target 'override_dh_auto_build' failed
> make[1]: *** [override_dh_auto_build] Error 25

The full build log is available from:
   http://aws-logs.debian.net/2017/07/19/python-pybedtools_0.7.8-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#868927; Package src:python-pybedtools. (Wed, 19 Jul 2017 17:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to Adrian Bunk <bunk@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>. (Wed, 19 Jul 2017 17:48:03 GMT) (full text, mbox, link).


Message #10 received at 868927@bugs.debian.org (full text, mbox, reply):

From: Adrian Bunk <bunk@debian.org>
To: 868927@bugs.debian.org
Subject: python-pybedtools FTBFS with more than one supported Python3 version
Date: Wed, 19 Jul 2017 20:45:33 +0300
Control: retitle -1 python-pybedtools FTBFS with more than one supported Python3 version
Control: tags -1 patch

Below is the fix (stolen from Ubuntu).

cu
Adrian


--- 0.7.8-1/debian/control	2017-01-14 09:51:01.000000000 +0000
+++ 0.7.8-1ubuntu1/debian/control	2017-06-26 10:59:20.000000000 +0000
@@ -7,9 +8,8 @@ Build-Depends: debhelper (>= 10),
                dh-python,
                bedtools,
                python3,
-               python3-all,
+               python3-all-dev,
                python3-setuptools,
-               python3-dev,
                python3-pysam,
                python3-matplotlib,
                python3-nose,




Changed Bug title to 'python-pybedtools FTBFS with more than one supported Python3 version' from 'python-pybedtools: FTBFS: pybedtools/cbedtools.cxx:4:20: fatal error: Python.h: No such file or directory'. Request was from Adrian Bunk <bunk@debian.org> to 868927-submit@bugs.debian.org. (Wed, 19 Jul 2017 17:48:03 GMT) (full text, mbox, link).


Added tag(s) patch. Request was from Adrian Bunk <bunk@debian.org> to 868927-submit@bugs.debian.org. (Wed, 19 Jul 2017 17:48:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#868927; Package src:python-pybedtools. (Wed, 19 Jul 2017 19:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Tille <tille@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>. (Wed, 19 Jul 2017 19:39:04 GMT) (full text, mbox, link).


Message #19 received at 868927@bugs.debian.org (full text, mbox, reply):

From: Andreas Tille <tille@debian.org>
To: Adrian Bunk <bunk@debian.org>, 868927@bugs.debian.org
Subject: Re: Bug#868927: python-pybedtools FTBFS with more than one supported Python3 version
Date: Wed, 19 Jul 2017 21:37:35 +0200
Hi Adrian,

thanks for the patch.  I applied it in Git and also updated to the latest
upstream version.  However, when trying to build I'm running into

...
I: pybuild pybuild:219: cp /build/python-pybedtools-0.7.10/debian/mpl-expected.png /build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/test/
I: pybuild base:184: cd /build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build; python3.6 -m nose --attr '!url'
E
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'pysam.libchtslib')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.6/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.6/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 675, in _load
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/__init__.py", line 12, in <module>
    from . import contrib
  File "/build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/contrib/__init__.py", line 3, in <module>
    from . import venn_maker
  File "/build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/contrib/venn_maker.py", line 12, in <module>
    from pybedtools import helpers
  File "/build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/helpers.py", line 13, in <module>
    import pysam
  File "/usr/lib/python3/dist-packages/pysam/__init__.py", line 5, in <module>
    from pysam.libchtslib import *
ModuleNotFoundError: No module named 'pysam.libchtslib'

----------------------------------------------------------------------
Ran 1 test in 0.011s

FAILED (errors=1)
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build; python3.6 -m nose --attr '!url'
dh_auto_test: pybuild --test --test-nose -i python{version} -p 3.6 3.5 returned exit code 13
debian/rules:13: recipe for target 'build' failed
make: *** [build] Error 25
...


I guess python-pysam is not yet build for Python3 3.6.

Kind regards

      Andreas.

-- 
http://fam-tille.de



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#868927; Package src:python-pybedtools. (Wed, 19 Jul 2017 19:51:06 GMT) (full text, mbox, link).


Acknowledgement sent to Adrian Bunk <bunk@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>. (Wed, 19 Jul 2017 19:51:06 GMT) (full text, mbox, link).


Message #24 received at 868927@bugs.debian.org (full text, mbox, reply):

From: Adrian Bunk <bunk@debian.org>
To: Andreas Tille <tille@debian.org>
Cc: 868927@bugs.debian.org
Subject: Re: Bug#868927: python-pybedtools FTBFS with more than one supported Python3 version
Date: Wed, 19 Jul 2017 22:47:09 +0300
On Wed, Jul 19, 2017 at 09:37:35PM +0200, Andreas Tille wrote:
>...
> I guess python-pysam is not yet build for Python3 3.6.

That's #867017/#867018, which seems to require that you update 
python-pysam to 0.11.2.2

> Kind regards
> 
>       Andreas.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#868927; Package src:python-pybedtools. (Thu, 20 Jul 2017 05:57:08 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Tille <tille@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>. (Thu, 20 Jul 2017 05:57:08 GMT) (full text, mbox, link).


Message #29 received at 868927@bugs.debian.org (full text, mbox, reply):

From: Andreas Tille <tille@debian.org>
To: Adrian Bunk <bunk@debian.org>, 868927@bugs.debian.org
Subject: Re: Bug#868927: python-pybedtools FTBFS with more than one supported Python3 version
Date: Thu, 20 Jul 2017 07:56:02 +0200
Hi Adrian,

On Wed, Jul 19, 2017 at 10:47:09PM +0300, Adrian Bunk wrote:
> 
> That's #867017/#867018, which seems to require that you update 
> python-pysam to 0.11.2.2

Yes, I'm aware of it but I need to start the chain of dependencies
at htslib - samtools - python-pysam.

I'll try to work on this today.

Kind regards

      Andreas.

-- 
http://fam-tille.de



Added indication that 868927 affects python3-pybedtools Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Mon, 02 Oct 2017 03:27:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#868927; Package src:python-pybedtools. (Fri, 06 Oct 2017 19:51:02 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Tille <tille@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>. (Fri, 06 Oct 2017 19:51:02 GMT) (full text, mbox, link).


Message #36 received at 868927@bugs.debian.org (full text, mbox, reply):

From: Andreas Tille <tille@debian.org>
To: 868927@bugs.debian.org
Subject: Re: Bug#868927: python-pybedtools FTBFS with more than one supported Python3 version
Date: Fri, 6 Oct 2017 21:50:25 +0200
On Wed, Jul 19, 2017 at 10:47:09PM +0300, Adrian Bunk wrote:
> On Wed, Jul 19, 2017 at 09:37:35PM +0200, Andreas Tille wrote:
> >...
> > I guess python-pysam is not yet build for Python3 3.6.
> 
> That's #867017/#867018, which seems to require that you update 
> python-pysam to 0.11.2.2

That's done now.  Unfortunately there is one remaining issue in the test
suite: 

...
I: pybuild base:184: cd /build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build; python3.6 -m nose --attr '!url'
..................................................................................................                                                                                        E.....................................................................................................................................................................................................................................................................................................................................................................................................S..
======================================================================
ERROR: pybedtools.test.test1.test_issue_178
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/test/test1.py", line 2108, in test_issue_178
    pybedtools.contrib.bigwig.bam_to_bigwig(fn, genome='dm3', output='tmp.bw')
  File "/build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/contrib/bigwig.py", line 123, in bam_to_bigwig
    p = subprocess.Popen(cmds, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'bedGraphToBigWig': 'bedGraphToBigWig'

----------------------------------------------------------------------
Ran 491 tests in 12.192s

FAILED (SKIP=1, errors=1)
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build; python3.6 -m nose --attr '!url'
dh_auto_test: pybuild --test --test-nose -i python{version} -p "3.6 3.5" returned exit code 13
...

Kind regards

       Andreas.

-- 
http://fam-tille.de



Added indication that 868927 affects src:python-gffutils Request was from Adrian Bunk <bunk@debian.org> to control@bugs.debian.org. (Wed, 01 Nov 2017 20:33:04 GMT) (full text, mbox, link).


Reply sent to Andreas Tille <tille@debian.org>:
You have taken responsibility. (Wed, 08 Nov 2017 09:00:06 GMT) (full text, mbox, link).


Notification sent to Lucas Nussbaum <lucas@debian.org>:
Bug acknowledged by developer. (Wed, 08 Nov 2017 09:00:06 GMT) (full text, mbox, link).


Message #43 received at 868927-close@bugs.debian.org (full text, mbox, reply):

From: Andreas Tille <tille@debian.org>
To: 868927-close@bugs.debian.org
Subject: Bug#868927: fixed in python-pybedtools 0.7.10-1
Date: Wed, 08 Nov 2017 08:56:32 +0000
Source: python-pybedtools
Source-Version: 0.7.10-1

We believe that the bug you reported is fixed in the latest version of
python-pybedtools, 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 868927@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated python-pybedtools 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 08 Nov 2017 09:00:50 +0100
Source: python-pybedtools
Binary: python3-pybedtools
Architecture: source
Version: 0.7.10-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Andreas Tille <tille@debian.org>
Description:
 python3-pybedtools - Python 3 wrapper around BEDTools for bioinformatics work
Closes: 868927
Changes:
 python-pybedtools (0.7.10-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream version
   * Build-Depends: python3-all-dev (Thanks for the hint to Adrian Bunk
     <bunk@debian.org>)
     Closes: #868927
   * Standards-Version: 4.1.1 (no changes needed)
   * do not uselessly parse d/changelog
   * hardening
   * Exclude test test_issue_178 since it fails for strange reasons (to be
     clarified with upstream)
Checksums-Sha1:
 e5e1edcf6605f4a1a835859159df4f2875d210e8 2316 python-pybedtools_0.7.10-1.dsc
 3da9a68cb24e07ddb88b6f01a2c996e8a625b183 12445775 python-pybedtools_0.7.10.orig.tar.gz
 62701c75346e81dfe20605ccc7e77ce113d62b4e 27496 python-pybedtools_0.7.10-1.debian.tar.xz
 ea3cd7bb5dacfd40d36e5c335ea099504e0b7734 12904 python-pybedtools_0.7.10-1_source.buildinfo
Checksums-Sha256:
 5f2352316180728f1be38ec96cf1fb8727e150083f0026472508fdf097cbd8f9 2316 python-pybedtools_0.7.10-1.dsc
 bc81c1655e998d8090d852f109925fc7fd3dad3ff90371cf80807dd4438a826a 12445775 python-pybedtools_0.7.10.orig.tar.gz
 8eae8a6d1e03180906e6147219dc37e791eadeafb6eee50aa2056866ab53bcd5 27496 python-pybedtools_0.7.10-1.debian.tar.xz
 4742b7939b8bae8ab6e5565b44483ffce33c15ad745c647f097ab2c485733df5 12904 python-pybedtools_0.7.10-1_source.buildinfo
Files:
 bab5efcec408480d64fe21451651e7c9 2316 python optional python-pybedtools_0.7.10-1.dsc
 2791d8005a3ce286e597de5adc68a369 12445775 python optional python-pybedtools_0.7.10.orig.tar.gz
 662ac59d428119967262b814cfc0ca8e 27496 python optional python-pybedtools_0.7.10-1.debian.tar.xz
 57ac21d5d5dbfadfcba28bf3489f2567 12904 python optional python-pybedtools_0.7.10-1_source.buildinfo

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

iQJCBAEBCAAsFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAloCvOEOHHRpbGxlYUBy
a2kuZGUACgkQV4oElNHGRtHskw/9ERaU63JRm/70l2f2AbBuX3KW8Sp1Y3iVdKkY
JNl5fkWH8lIymHLqQw4LKH99JnZRNTgqQykhrAa4mRwuo605ZT8H5YOldI/QuJEB
D7gpdpdJfu10U69kzqXrg6r01MsbvRN6YNtL4VsqPyphGebgGSDOUK5podYGmzFJ
D2Ge5x4LLTcx7UWWXJGOu1+f/733e95vbrxH0UpjpaCyDFmc0hD5UdwVmTCjEFME
YWGJq4zClrmk0kJ7t3THCEK9dXVpfHb9Q3WQEU/u/TDkvjmvuvZLaFZxOvjVopXf
0sXCfagG4enpHzcrmC9wqCS4mO4Z1FLTNxtRcvwjXg3eAbjDKZAN7c7up1HVuuz0
lx+C0jvY62DsY66coVjlLEBtRhbpkCaoTflkN5mfvByjALLazwvjFOyT8wbC50Nf
ig4t+ujoy2hX20NVPJfoaphIuOZ2r/Y1QasRxxRkJXfuC6iJ0MPgdy0HCmoS4tdc
ijQA1Q0stMP2G0CVdLq8DU9h+iizfTsGQ0DzbNAY/4taFuE47I/HloZ3WElQ9iIz
gpKM71PQoGU8cgV2Iu8O+K70ejEl9Op21yhZS31ClUutm885Lu922PfMhjufIF1P
ud2QflMjaCGQ8fjWzrYAtBy7W6Zedv99PrQGXqTMktBPDE9eBuxpq6g9uHPjDP4x
uoyK+qQ=
=Sxo+
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 12 Dec 2017 07:27:40 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:52:41 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.