curtin package fails to import curtin module

Bug #1503507 reported by Ryan Harper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Released
High
Unassigned

Bug Description

On a wily VM, installing curtin from archive doesn't produce a working curtin:

1. uvt-kvm create release=wily
2. sudo apt-get install curtin
3. curtin --help

ubuntu@w2:~$ /usr/bin/curtin --help
/usr/bin/python3: Error while finding spec for 'curtin.deps.install' (<class 'ImportError'>: No module named 'curtin')
failed to install deps!

curtin feels we should be running python3 (which we should, it's available on wily) but the deb package doesn't depend on python3-curtin, which is needed to resolve this import error.

After I run: $ sudo apt-get install python3-curtin
then it works:

$ /usr/bin/curtin --help
usage: main.py [-h] [--showtrace] [-v] [--log-file LOG_FILE] [-c FILE]
               [--set key=val]
               {apply_net,block-meta,curthooks,extract,hook,in-target,install,mkfs,net-meta,pack,swap,system-upgrade}
               ...

positional arguments:
  {apply_net,block-meta,curthooks,extract,hook,in-target,install,mkfs,net-meta,pack,swap,system-upgrade}

optional arguments:
  -h, --help show this help message and exit
  --showtrace
  -v, --verbose
  --log-file LOG_FILE
  -c FILE, --config FILE
                        read configuration from cfg
  --set key=val define a config variable. key can be a "/" delimited
                        path ("early_commands/cmd1=a"). if key starts with
                        "json:" then val is loaded as json
                        (json:stages="['early']")

Revision history for this message
Ryan Harper (raharper) wrote :

Sorry, here are the recreate steps:

1. uvt-kvm create --memory 1024 --cpu 2 --disk 10 w1 release=wily
2. uvt-kvm ssh --insecure w1
3. sudo apt-get install curtin

Changed in curtin:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Ryan Harper (raharper) wrote :

curtin 0.1.0~bzr276-0ubuntu1 release to wily resolves the issue.

Changed in curtin:
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.