[Python-modules-team] Bug#834921: python-ws4py: FTBFS too much often (AssertionError:)

Santiago Vila sanvila at unex.es
Sat Aug 20 15:19:34 UTC 2016


Package: src:python-ws4py
Version: 0.3.4-3
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,sphinxdoc --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 ws4py/messaging.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py
copying ws4py/async_websocket.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py
copying ws4py/utf8validator.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py
copying ws4py/exc.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py
copying ws4py/framing.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py
copying ws4py/compat.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py
copying ws4py/streaming.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py
copying ws4py/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/client
copying ws4py/client/tornadoclient.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/client
copying ws4py/client/geventclient.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/client
copying ws4py/client/threadedclient.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/client
copying ws4py/client/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/client
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/wsgirefserver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/wsgiutils.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/tulipserver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/geventserver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
copying ws4py/server/cherrypyserver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/ws4py/server
   dh_auto_test -i -O--buildsystem=pybuild
I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose test
................................F.........................................................
======================================================================
FAIL: test_mainloop_can_be_stopped_when_no_websocket_were_registered (test.test_manager.WSManagerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/test/test_manager.py", line 65, in test_mainloop_can_be_stopped_when_no_websocket_were_registered
    self.assertTrue(m.running)
AssertionError: False is not true

----------------------------------------------------------------------
Ran 90 tests in 1.566s

FAILED (failures=1)
Exception in thread Thread-10 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  File "ws4py/manager.py", line 303, in run
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1062, in __call__
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1105, in _mock_call
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 429, in _get
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
Unhandled exception in thread started by 
sys.excepthook is missing
lost sys.stderr
E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose test
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:11: 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 faild build logs.

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-ws4py_0.3.4-3_amd64-20160819T104620Z.gz
Type: application/gzip
Size: 11655 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160820/d95178f4/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-ws4py_0.3.4-3_amd64-20160818T215110Z.gz
Type: application/gzip
Size: 11446 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160820/d95178f4/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-ws4py_0.3.4-3_amd64-20160818T193238Z.gz
Type: application/gzip
Size: 12135 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160820/d95178f4/attachment-0005.bin>


More information about the Python-modules-team mailing list