Staging error: ImportError: cannot import name dumps

Bug #1034626 reported by David Ames
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
U1DB
Fix Released
High
John O'Brien

Bug Description

Recent staging deploy broke engines

No handlers could be found for logger "bzr"
Traceback (most recent call last):
  File "/srv/u1db.staging.one.ubuntu.com/staging/u1dbservers/utilities/run_engine", line 16, in <module>
    from u1dbservers.server_logging import setup_logger, oops_wsgi_wrapping
  File "/srv/u1db.staging.one.ubuntu.com/staging/u1dbservers-rev-98/utilities/../lib/u1dbservers/server_logging.py", line 21, in <module>
    from oops_amqp import Publisher
  File "/usr/lib/python2.7/dist-packages/oops_amqp/__init__.py", line 107, in <module>
    from oops_amqp.publisher import Publisher
  File "/usr/lib/python2.7/dist-packages/oops_amqp/publisher.py", line 24, in <module>
    from bson import dumps
ImportError: cannot import name dumps

Revision history for this message
David Ames (thedac) wrote :

After updating python-oops-amqp to 0.0.6 we now get

NameError: global name 'partial' is not defined
No handlers could be found for logger "bzr"
Traceback (most recent call last):
  File "/srv/u1db.staging.one.ubuntu.com/staging/u1dbservers/utilities/run_engine", line 33, in <module>
    config.general.environment_name, nick)
  File "/srv/u1db.staging.one.ubuntu.com/staging/u1dbservers-rev-98/utilities/../lib/u1dbservers/server_logging.py", line 106, in oops_wsgi_wrapping
    factory = partial(amqp.Connection,
NameError: global name 'partial' is not defined

tags: added: canonical-losa-u1
John O'Brien (jdobrien)
Changed in u1db:
assignee: nobody → John O'Brien (jdobrien)
status: New → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.