Elements of charm-tools broken under zesty

Bug #1660004 reported by Barry Price
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
charm-tools (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

I was specifically interested in 'charm build', but kept getting this traceback regardless of arguments given:

http://pastebin.ubuntu.com/23878542/

On running 'charm help' it looks like many other components are similarly affected, since they can't even run with the --description argument:

http://pastebin.ubuntu.com/23878538/

Tags: uosci
Revision history for this message
Barry Price (barryprice) wrote :

To be clear, running Ubuntu 17.04 Zesty Zapus on amd64, package version is from the archive, 2.1.2-0ubuntu4.

I also tried the PPA release, 2.2.0-0ubuntu1~ubuntu17.04.1~ppa2, and found the same issue there.

Revision history for this message
Haw Loeung (hloeung) wrote :

Hmm, I saw this as well and even tried this:

| $ python
| ...
| >>> from path import path
| Traceback (most recent call last):
| File "<stdin>", line 1, in <module>
| ImportError: cannot import name path

I copied the path.py module from Trusty and seems to work fine. FYI, the diff looks like this:

http://pastebin.ubuntu.com/23879729/

Revision history for this message
Haw Loeung (hloeung) wrote :

Oh, it's the "Backward-compatibility" bit. "path is deprecated. Use Path instead."

So should be "from path import Path".

no longer affects: path.py (Ubuntu)
Revision history for this message
Haw Loeung (hloeung) wrote :
Revision history for this message
Marco Ceppi (marcoceppi) wrote :

It's recommended to use the snap going forward. As we will be removing charm-tools from the archive.

`snap install charm`

Changed in charm-tools (Ubuntu):
status: New → Fix Committed
Revision history for this message
Ryan Beisner (1chb1n) wrote :

++Xenial:

⟫ apt-cache policy charm charm-tools
charm:
  Installed: 2.2.0-0ubuntu1~ubuntu16.04.1~ppa2
  Candidate: 2.2.0-0ubuntu1~ubuntu16.04.1~ppa2
  Version table:
 *** 2.2.0-0ubuntu1~ubuntu16.04.1~ppa2 500
        500 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     2.1.1-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
charm-tools:
  Installed: 2.2.0-0ubuntu1~ubuntu16.04.1~ppa2
  Candidate: 2.2.0-0ubuntu1~ubuntu16.04.1~ppa2
  Version table:
 *** 2.2.0-0ubuntu1~ubuntu16.04.1~ppa2 500
        500 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main amd64 Packages
        500 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status
     2.1.2-0ubuntu4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
     2.1.2-0ubuntu1~ubuntu16.04.1~ppa0 500
        500 http://ppa.launchpad.net/juju/devel/ubuntu xenial/main amd64 Packages
        500 http://ppa.launchpad.net/juju/devel/ubuntu xenial/main i386 Packages

⟫ charm whoami
User: <redacted>
Group membership: <redacted>

⟫ charm version
Traceback (most recent call last):
  File "/usr/bin/charm-version", line 9, in <module>
    load_entry_point('charm-tools==2.2.0', 'console_scripts', 'charm-version')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/dist-packages/charmtools/__init__.py", line 23, in <module>
    from . import version
  File "/usr/lib/python2.7/dist-packages/charmtools/version.py", line 7, in <module>
    from charmtools import utils
  File "/usr/lib/python2.7/dist-packages/charmtools/utils.py", line 19, in <module>
    from path import path
ImportError: cannot import name path

⟫ snap version
snap 2.21
snapd 2.21
series 16
ubuntu 16.04

⟫ snap install charm
error: cannot install "charm": snap not found

tags: added: uosci
Revision history for this message
Felipe Reyes (freyes) wrote :

> It's recommended to use the snap going forward. As we will be removing charm-tools from the archive.
>
> `snap install charm`

The current version of the charm snap does not provide charm-proof[0], so in the meantime I have a temporary ppa with charm-tools 2.2.0 + https://github.com/juju/charm-tools/commit/f820f22e7f11287ff03d5528b1a6ece349c46afa.patch . https://launchpad.net/~freyes/+archive/ubuntu/lp1660004

[0] $ snap info charm
name: charm
summary: "charm and charm-tools"
publisher: charms
contact: <email address hidden>
description: |
  charmstore-client and charm-tools
commands:
  - charm
tracking: stable
installed: 2.2 (15) 48MB classic
refreshed: 2017-03-24 17:59:35 -0300 -03
channels:
  stable: 2.2 (15) 48MB classic
  candidate: 2.2 (15) 48MB classic
  beta: 2.2 (15) 48MB classic
  edge: 2.2 (15) 48MB classic

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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