niess / python-appimage

AppImage distributions of Python
https://python-appimage.readthedocs.io/en/latest/
GNU General Public License v3.0
170 stars 24 forks source link

Fix: Running pip as root #34

Closed anki-code closed 3 years ago

anki-code commented 3 years ago

Hi @niess ! This fixed the error:

[2021-05-03 14:51:42,328] EXTRACT  python3.9.4-cp39-cp39-manylinux1_x86_64.AppImage
[2021-05-03 14:51:43,660] BUNDLE   xonsh.desktop
[2021-05-03 14:51:43,661] BUNDLE   xonsh.appdata.xml
Traceback (most recent call last):
  ...
  File "/opt/conda/lib/python3.8/site-packages/python_appimage/commands/build/app.py", line 239, in execute
    system(('./AppDir/AppRun', '-m', 'pip', 'install', '-U', in_tree_build,
  File "/opt/conda/lib/python3.8/site-packages/python_appimage/utils/system.py", line 42, in system
    raise RuntimeError(err)
RuntimeError: WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv

It looks like build command is pretty fragile. May be the best approach is to ignore all warnings in the future?

niess commented 3 years ago

Thanks again. Indeed, that could be a solution if it requires excepting almost any warning :P