juju-parse-status isn't usable from a snap installation

Bug #1702888 reported by Barry Price
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Fix Released
High
Unassigned

Bug Description

Hi,

Using the latest snap version of mojo, although the juju-parse-status binary is included, it doesn't find its way into our $PATH, and doesn't work if called directly:

$ find /snap/mojo | grep juju-parse-status
/snap/mojo/3/bin/juju-parse-status
$

$ /snap/mojo/3/bin/juju-parse-status get_ips vault
Traceback (most recent call last):
  File "/snap/mojo/3/bin/juju-parse-status", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3036, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3020, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 654, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 854, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'mojo==0.4.5' distribution was not found and is required by the application
$

Tags: snap
Junien F (axino)
Changed in mojo:
status: New → Triaged
importance: Undecided → High
tags: added: snap
Revision history for this message
Tom Haddon (mthaddon) wrote :

I've just tried this and it seems to work fine. Can you confirm if this is still a problem?

/snap/mojo/current/bin/juju-parse-status get_ips apache2
10.0.8.70

Obviously it's not in $PATH still, but I'm not sure how much of an issue that is.

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

Still fails here, I'm afraid:

https://paste.ubuntu.com/p/ch29J7GczC/

Revision history for this message
Tom Haddon (mthaddon) wrote :

This has landed in revno 577. Waiting for the snap to build and will confirm before closing out this bug.

Revision history for this message
Tom Haddon (mthaddon) wrote :

Ok, this has now been released to the snap:

$ mojo.juju-parse-status get_ips apache2
10.0.8.70

Changed in mojo:
status: Triaged → 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.