[Python-modules-team] Bug#812649: datanommer.consumer: FTBFS - AttributeError: assert_called_once

Michael Tautschnig mt at debian.org
Mon Jan 25 18:05:04 UTC 2016


Package: datanommer.consumer
Version: 0.6.1-2
Severity: serious
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error.

[...]
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:184: cd /srv/jenkins-slave/workspace/sid-goto-cc-datanommer.consumer/datanommer.consumer-0.6.1/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose tests
/usr/lib/python2.7/dist-packages/sqlalchemy/sql/sqltypes.py:185: SAWarning: Unicode type received non-unicode bind param value '1234'. (this warning may be suppressed after 10 occurrences)
  (util.ellipses_string(value),))
/usr/lib/python2.7/dist-packages/sqlalchemy/sql/sqltypes.py:185: SAWarning: Unicode type received non-unicode bind param value 'topiclol'. (this warning may be suppressed after 10 occurrences)
  (util.ellipses_string(value),))
/usr/lib/python2.7/dist-packages/sqlalchemy/sql/sqltypes.py:185: SAWarning: Unicode type received non-unicode bind param value 'Unclassified'. (this warning may be suppressed after 10 occurrences)
  (util.ellipses_string(value),))
/usr/lib/python2.7/dist-packages/sqlalchemy/sql/sqltypes.py:185: SAWarning: Unicode type received non-unicode bind param value '0.6.4'. (this warning may be suppressed after 10 occurrences)
  (util.ellipses_string(value),))
E
======================================================================
ERROR: test_duplicate_msg_id (tests.test_consumer.TestConsumer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/jenkins-slave/workspace/sid-goto-cc-datanommer.consumer/datanommer.consumer-0.6.1/.pybuild/pythonX.Y_2.7/build/tests/test_consumer.py", line 89, in test_duplicate_msg_id
    mocked_function.assert_called_once()
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 721, in __getattr__
    raise AttributeError(name)
AttributeError: assert_called_once
-------------------- >> begin captured logging << --------------------
fedmsg.crypto.x509: WARNING: Crypto disabled ImportError('No module named M2Crypto',)
moksha.hub: WARNING: Cannot find qpid python module. Make sure you have python-qpid installed.
fedmsg: WARNING: Failed to load 'announce' processor.
fedmsg: WARNING: The 'Twisted-Core' distribution was not found and is required by moksha.hub
fedmsg: WARNING: Failed to load 'logger' processor.
fedmsg: WARNING: The 'Twisted-Core' distribution was not found and is required by moksha.hub
fedmsg: DEBUG: datanommer.enabled is True
fedmsg: INFO:   enabled by config  - datanommer.consumer:Nommer
moksha.hub: DEBUG: Subscribing to consumer topic *
fedmsg: INFO: No backlog handling.  status: None, url: None
datanommer: WARNING: Session already initialized.  Bailing
fedmsg: DEBUG: Nomming {'body': {'msg': {'foo': 'bar'}, 'timestamp': 1234, 'topic': 'topiclol', 'msg_id': '1234', 'i': 1}, 'topic': 'topiclol'}
fedmsg: WARNING: Failed to load 'announce' processor.
fedmsg: WARNING: The 'Twisted-Core' distribution was not found and is required by moksha.hub
fedmsg: WARNING: Failed to load 'logger' processor.
fedmsg: WARNING: The 'Twisted-Core' distribution was not found and is required by moksha.hub
fedmsg: DEBUG: Nomming {'body': {'msg': {'foo': 'bar'}, 'timestamp': 1234, 'topic': 'topiclol', 'msg_id': '1234', 'i': 1}, 'topic': 'topiclol'}
fedmsg: WARNING: Failed to load 'announce' processor.
fedmsg: WARNING: The 'Twisted-Core' distribution was not found and is required by moksha.hub
fedmsg: WARNING: Failed to load 'logger' processor.
fedmsg: WARNING: The 'Twisted-Core' distribution was not found and is required by moksha.hub
fedmsg: ERROR: Got error (trying without uuid): (sqlite3.IntegrityError) UNIQUE constraint failed: messages.msg_id [SQL: u'INSERT INTO messages (msg_id, i, topic, timestamp, certificate, signature, category, source_name, source_version, _msg) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'] [parameters: ('1234', 1, 'topiclol', '1970-01-01 00:20:34.000000', None, None, 'Unclassified', u'datanommer', '0.6.4', '{"foo":"bar"}')]
fedmsg: WARNING: Failed to load 'announce' processor.
fedmsg: WARNING: The 'Twisted-Core' distribution was not found and is required by moksha.hub
fedmsg: WARNING: Failed to load 'logger' processor.
fedmsg: WARNING: The 'Twisted-Core' distribution was not found and is required by moksha.hub
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 1 test in 0.198s

FAILED (errors=1)
E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd /srv/jenkins-slave/workspace/sid-goto-cc-datanommer.consumer/datanommer.consumer-0.6.1/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose tests
dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 --dir . returned exit code 13
debian/rules:3: recipe for target 'build' failed
make: *** [build] Error 25


The full build log is attached; please do let me know if the problem is
unreproducible, in which case I shall try to investigate further.

Best,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datanommer.consumer-build-log.txt.gz
Type: application/x-gunzip
Size: 8156 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160125/99341378/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160125/99341378/attachment.sig>


More information about the Python-modules-team mailing list