Unable to install curtin in a virtualenv

Bug #1703755 reported by Mike Pontillo on 2017-07-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Low
Unassigned

Bug Description

I tried to install curtin in a virtualenv (via PyCharm), and was unable to do so due to a hard-coded absolute path:

    error: could not create '/usr/share/doc/curtin': Permission denied

Full log snippet:

    running build_scripts
    creating build/scripts-3.5
    copying bin/curtin -> build/scripts-3.5
    running install_lib
    copying build/lib/curtin/util.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/gpg.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/swap.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/futil.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/pack.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/log.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/config.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/version.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/__init__.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/net/network_state.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/net
    copying build/lib/curtin/net/__init__.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/net
    copying build/lib/curtin/udev.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/reporter/registry.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/reporter
    copying build/lib/curtin/reporter/__init__.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/reporter
    copying build/lib/curtin/reporter/legacy/maas.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/reporter/legacy
    copying build/lib/curtin/reporter/legacy/__init__.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/reporter/legacy
    copying build/lib/curtin/reporter/events.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/reporter
    copying build/lib/curtin/reporter/handlers.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/reporter
    copying build/lib/curtin/deps/check.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/deps
    copying build/lib/curtin/deps/__init__.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/deps
    copying build/lib/curtin/deps/install.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/deps
    copying build/lib/curtin/block/__init__.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/block
    copying build/lib/curtin/block/mdadm.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/block
    copying build/lib/curtin/block/clear_holders.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/block
    copying build/lib/curtin/block/mkfs.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/block
    copying build/lib/curtin/block/iscsi.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/block
    copying build/lib/curtin/block/lvm.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/block
    copying build/lib/curtin/url_helper.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin
    copying build/lib/curtin/commands/swap.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/net_meta.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/system_install.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/hook.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/apt_config.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/main.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/pack.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/in_target.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/block_attach_iscsi.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/extract.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/block_meta.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/version.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/apply_net.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/__init__.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/block_info.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/clear_holders.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/install.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/block_wipe.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/mkfs.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/block_detach_iscsi.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/system_upgrade.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    copying build/lib/curtin/commands/curthooks.py -> /home/mpontillo/maas-venv/lib/python3.5/site-packages/curtin/commands
    warning: install_lib: byte-compiling is disabled, skipping.

    running install_data
    creating /usr/share/doc/curtin
    error: could not create '/usr/share/doc/curtin': Permission denied

Related branches

Scott Moser (smoser) on 2017-10-02
Changed in curtin:
status: New → Confirmed
importance: Undecided → Low
Scott Moser (smoser) on 2017-10-02
Changed in curtin:
status: Confirmed → Fix Committed

This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in curtin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers