[Python-modules-team] Bug#834917: python-async: FTBFS too much often ('NoneType' object is not callable)

Santiago Vila sanvila at unex.es
Sat Aug 20 15:18:56 UTC 2016


Package: src:python-async
Version: 0.6.2-2
Severity: serious

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python3.5 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:184: /usr/bin/python setup.py build 
running build
running build_py

[... snipped ...]

copying async/graph.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async
copying async/thread.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async
copying async/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/task.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/test_graph.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/test_channel.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/test_pool.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/lib.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/test_performance.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/test_thread.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
copying async/test/test_example.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/async/test
   dh_auto_test -i -O--buildsystem=pybuild
I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose 
...EThreadpool: Starting single task (async = 0) with 0 threads
Threadpool: processed 1000 individual items, with 0 threads, one at a time, in 0.009996 s ( 100040.643038 items / s )
Threadpool: processed 1000 individual items in chunks of 250, with 0 threads, one at a time, in 0.009609 s ( 104069.275240 items / s)
done with everything
Threadpool: starting async dependency test in 0 threads
Dependent Tasks: evaluated 1000 items of 5 dependent in 0.009781 s ( 102237 items / s )
Dependent Tasks: evaluated 1000 items with read(1) of 5 dependent in 0.042389 s ( 23590 items / s )
Dependent Tasks: evaluated 1000 items with read(1), min_size=250, of 5 dependent in 0.011971 s ( 83535 items / s )
Dependent Tasks: evaluated 2 connected pools and 1000 items with read(0), of 9 dependent tasks in 0.018785 s ( 53233 items / s )
Dependent Tasks: evaluated 2 connected pools and 1000 items with read(1), of 9 dependent tasks in 0.040263 s ( 24836 items / s )
..
======================================================================
ERROR: test_base (async.test.test_performance.TestThreadPoolPerformance)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/async/test/test_performance.py", line 30, in test_base
    for num_threads in range(0, self.max_threads*2 + 1, self.max_threads // 2):
ValueError: range() step argument must not be zero
-------------------- >> begin captured logging << --------------------
root: DEBUG: async: Actual asynchronous operation was disabled as it is slower that way
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 6 tests in 0.772s

FAILED (errors=1)
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/async/thread.py", line 173, in run
  File "/usr/lib/python2.7/Queue.py", line 179, in get
  File "/usr/lib/python2.7/threading.py", line 384, in notify
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose 
dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 returned exit code 13
debian/rules:6: recipe for target 'build-indep' failed
make: *** [build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Because this source package only generates "Arch: all" packages, this
is the same as a FTBFS bug in the usual sense, and the fact that I was
doing "dpkg-buildpackage -A" does not mean anything special.

I attach three different failed build logs.

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-async_0.6.2-2_amd64-20160819T104748Z.gz
Type: application/gzip
Size: 6905 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160820/2cea550f/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-async_0.6.2-2_amd64-20160818T215457Z.gz
Type: application/gzip
Size: 6894 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160820/2cea550f/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-async_0.6.2-2_amd64-20160818T193410Z.gz
Type: application/gzip
Size: 6901 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160820/2cea550f/attachment-0005.bin>


More information about the Python-modules-team mailing list