[Python-modules-team] Bug#804556: datanommer.models: FTBFS: StatementError: raised as a result of Query-invoked autoflush
Chris Lamb
lamby at debian.org
Mon Nov 9 15:00:00 UTC 2015
Source: datanommer.models
Version: 0.6.4-2
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Dear Maintainer,
datanommer.models fails to build from source in unstable/amd64:
[..]
File
"/usr/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py",
line 174, in save_obj
mapper, table, insert)
File
"/usr/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py",
line 785, in _emit_insert_statements
execute(statement, params)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py",
line 914, in execute
return meth(self, multiparams, params)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py",
line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams,
params)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py",
line 1010, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py",
line 1078, in _execute_context
None, None)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py",
line 1341, in _handle_dbapi_exception
exc_info
File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py",
line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py",
line 1073, in _execute_context
context = constructor(dialect, self, conn, *args)
File
"/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py",
line 569, in _init_compiled
self._process_executesingle_defaults()
File
"/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py",
line 1014, in _process_executesingle_defaults
val = self.get_insert_default(c)
File
"/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py",
line 966, in get_insert_default
return self._exec_default(column.default, column.type)
File
"/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py",
line 952, in _exec_default
return default.arg(self)
File "datanommer/models/__init__.py", line 155, in
source_version_default
dist = pkg_resources.get_distribution("datanommer.models")
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
line 551, in get_distribution
dist = get_provider(dist)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
line 431, in get_provider
return working_set.find(moduleOrReq) or
require(str(moduleOrReq))[0]
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
line 952, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
line 839, in resolve
raise DistributionNotFound(req, requirers)
StatementError: (raised as a result of Query-invoked autoflush;
consider using a session.no_autoflush block if this flush is occurring
prematurely) (pkg_resources.DistributionNotFound) The
'datanommer.models' distribution was not found and is required by the
application [SQL: u'INSERT INTO messages (msg_id, i, topic, timestamp,
certificate, signature, category, source_name, source_version, _msg)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'] [parameters: [{'category':
'git', 'certificate': 'blah', 'i': 1, 'timestamp':
datetime.datetime(2012, 8, 7, 2, 47, 30, 886738), '_msg':
'{"commit":{"branch":"master","email":"mjw at redhat.com","message":"Clear
CFLAGS CXXFLAGS LDFLAGS.\\n This is a bit of a
hammer.","name":"Mark
Wielaard","rev":"7a98f80d9b61ce167e4ef8129c81ed9284ecf4e1","stats":{"files":{"valgrind.spec":{"deletions":2,"insertions":1,"lines":3}},"total":{"deletions":2,"files":1,"insertions":1,"lines":3}},"summary":"Clear
CFLAGS CXXFLAGS LDFLAGS.","username":"mjw"}}', 'msg_id': None,
'topic': 'org.debian.prod.git.receive.valgrind.master', 'signature':
'blah'}]]
----------------------------------------------------------------------
Ran 12 tests in 1.241s
FAILED (errors=8)
E: pybuild pybuild:274: test: plugin distutils failed with: exit
code=1: cd
/build/datanommer.models-0.6.4/.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
dpkg-buildpackage: error: debian/rules build gave error exit status 2
[..]
The full build log is attached or can be viewed here:
https://reproducible.debian.net/logs/unstable/amd64/datanommer.models_0.6.4-2.build1.log.gz
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datanommer.models.0.6.4-2.unstable.amd64.log.txt.gz
Type: application/gzip
Size: 10767 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20151109/fc6f76e3/attachment.bin>
More information about the Python-modules-team
mailing list