ImportError: No module named yaml

Bug #1645043 reported by james beedy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elasticsearch (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

Charm seems to error out on not being able to find pyyaml ??? -> http://paste.ubuntu.com/23539715/

Revision history for this message
John A Meinel (jameinel) wrote :

I would guess this is a case where something like "cloud-init" needs python-yaml, and so most places where we install already have it available. If this is a manual machine, then who knows what packages are already installed on it.

Having the charm clearly add a "apt install python-yaml" step seems reasonable. Most likely this is just an unnoticed dependency because all other target environments already have it installed.

Revision history for this message
james beedy (jamesbeedy) wrote :

So yeah, I was having a tough time understanding why Pyyaml installed by pip wasn't being picked up, makes sense that it would need it from apt in that case then?

Revision history for this message
José Antonio Rey (jose) wrote :

Maybe it's because you're installing the yaml module with pip and not pip3 or viceversa. Either way, we need to make sure that the yaml module is installed for the correct Python version.

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.