installation fails because of PEP517
While installing hivemind on Ubuntu 20.04 LTS in a way that's listed in the docs:
python3 -m pip install --no-cache-dir --verbose --user -e .[dev]
(btw why [dev]
? that's not something I'd expect for prod env)
I'm getting:
Running setup.py develop for hivemind
Running command /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/hive/hivemind/setup.py'"'"'; __file__='"'"'/home/hive/hivemind/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
running develop
WARNING: The user site-packages directory is disabled.
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.8/dist-packages/test-easy-install-23138.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python3.8/dist-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
Rolling back uninstall of hivemind
seems that PEP517 might be causing problems here, getting rid of pyproject.toml
saves the day, but that's not a viable solution
See: https://github.com/pypa/pip/issues/7953
Python people were like:
_- We have a dozen of ways to install software and that might be confusing for sane people..._
_*thinking*_
_- Let's make another one!_