Skip to content

Linux: Unprivileged users won't be able to install package unless they are root #4

@juozaspo

Description

@juozaspo

On Linux, unprivileged users won't be able to install the package unless they have a root permission (sudo, root login, etc) as setup.py tries to install it to the system-wide location and would fail to do that. There should be a workaround for that, such as creating a virtual environment by using python3.8 virtual environment module (venv) and running commands in it or anything similar.
Alternate solution would be to change the prefix to $HOME if script would support it as right now it does not do that as such option is not recognized while trying to do that. Also I use venv method as it works best for me so far.
The virtual enviromnent example is below, also note that anything after # is a comment and is ignored by shell.

$ python3.8 -m venv ENV #create environment named ENV, don't forget to first install venv module for python 3.8 (from python3-venv package on Ubuntu) first if it's not already installed
$ . ENV/bin/activate #activate virtual environment
(ENV) $ python setup.py install
(ENV) $ mapedit <mapedit args, etc>
(ENV) $ deactivate #exit from python virtual environment

This should also be noted in README.md to avoid any further confusion for any non experienced user in any foreseable future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions