latest python3 additions seem to break with trusty python-six

Bug #1395378 reported by Edward Hope-Morley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
Fix Released
Critical
Stuart Bishop

Bug Description

ubuntu@sixtest:~$ lsb_release -r
Release: 14.04
ubuntu@sixtest:~$ apt-cache policy python-six
python-six:
  Installed: 1.5.2-1
  Candidate: 1.5.2-1
  Version table:
 *** 1.5.2-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
ubuntu@sixtest:~$ python -c "import six; from six.moves import UserDict"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name UserDict

I noticed this when trying a charm-helpers sync:

2014-11-22 21:07:42 INFO install Traceback (most recent call last):
2014-11-22 21:07:42 INFO install File "/var/lib/juju/agents/unit-rabbitmq-server-1/charm/hooks/install", line 10, in <module>
2014-11-22 21:07:42 INFO install import rabbit_utils as rabbit
2014-11-22 21:07:42 INFO install File "/var/lib/juju/agents/unit-rabbitmq-server-1/charm/hooks/rabbit_utils.py", line 9, in <module>
2014-11-22 21:07:42 INFO install from lib.utils import render_template
2014-11-22 21:07:42 INFO install File "/var/lib/juju/agents/unit-rabbitmq-server-1/charm/hooks/lib/utils.py", line 16, in <module>
2014-11-22 21:07:42 INFO install from charmhelpers.fetch import (
2014-11-22 21:07:42 INFO install File "/var/lib/juju/agents/unit-rabbitmq-server-1/charm/hooks/charmhelpers/fetch/__init__.py", line 5, in <module>
2014-11-22 21:07:42 INFO install from charmhelpers.core.host import (
2014-11-22 21:07:42 INFO install File "/var/lib/juju/agents/unit-rabbitmq-server-1/charm/hooks/charmhelpers/core/host.py", line 21, in <module>
2014-11-22 21:07:42 INFO install from .hookenv import log
2014-11-22 21:07:42 INFO install File "/var/lib/juju/agents/unit-rabbitmq-server-1/charm/hooks/charmhelpers/core/hookenv.py", line 15, in <module>
2014-11-22 21:07:42 INFO install from six.moves import UserDict
2014-11-22 21:07:42 INFO install ImportError: cannot import name UserDict
2014-11-22 21:07:42 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1

Related branches

Revision history for this message
Edward Hope-Morley (hopem) wrote :

Looks like this was broken by the following rev:

revno: 257 [merge]
committer: Stuart Bishop <email address hidden>
branch nick: trunk
timestamp: Sat 2014-11-22 02:33:42 +0700
message:
  [stub, r=tvansteenburgh] Python 3 support

Revision history for this message
Edward Hope-Morley (hopem) wrote :

Easily reproducible by running charm-helpers unit tests with Trusty version of python-six

Revision history for this message
James Page (james-page) wrote :

Please can we ensure that any python3 changes are also compatible with 12.04 as well; we use the same codebase to support both releases.

Changed in charm-helpers:
importance: Undecided → Critical
Stuart Bishop (stub)
Changed in charm-helpers:
status: New → In Progress
assignee: nobody → Stuart Bishop (stub)
Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

OK, as per my review on the stub's linked branch, seems to be fixed on both precise, trusty.

Changed in charm-helpers:
status: In Progress → Fix Committed
Stuart Bishop (stub)
Changed in charm-helpers:
status: Fix Committed → Fix Released
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.