Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

dephell tries to uninstall system pip during venv create #481

Open
bitphage opened this issue Dec 29, 2020 · 0 comments
Open

dephell tries to uninstall system pip during venv create #481

bitphage opened this issue Dec 29, 2020 · 0 comments

Comments

@bitphage
Copy link

% dephell venv create --traceback                             
INFO creating venv for project... (path=/home/vvk/.local/share/dephell/venvs/birdfeeder-PnDk/main)
INFO chosen python (version=3.7.7, path=/usr/bin/python3)
ERROR OSError: Looking in links: /tmp/.private/vvk/tmpyxy7kh5a
Requirement already up-to-date: setuptools in /usr/lib64/python3.7/site-packages (51.0.0)
Collecting pip
Installing collected packages: pip
  Found existing installation: pip 19.1
    Uninstalling pip-19.1:


ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/bin/pip'
Consider using the `--user` option or check the permissions.

 
Traceback (most recent call last):
  File "/home/vvk/.local/share/dephell/venvs/dephell/lib/python3.7/site-packages/dephell/cli.py", line 66, in main
    result = handler()
  File "/home/vvk/.local/share/dephell/venvs/dephell/lib/python3.7/site-packages/dephell/commands/venv_create.py", line 39, in __call__
    venv.create(python_path=python.path)
  File "/home/vvk/.local/share/dephell/venvs/dephell/lib/python3.7/site-packages/dephell_venvs/_venv.py", line 130, in create
    builder.create(str(self.path))
  File "/usr/lib/python3.7/venv/__init__.py", line 68, in create
    self._setup_pip(context)
  File "/home/vvk/.local/share/dephell/venvs/dephell/lib/python3.7/site-packages/dephell_venvs/_builder.py", line 126, in _setup_pip
    raise OSError(output)
OSError: Looking in links: /tmp/.private/vvk/tmpyxy7kh5a
Requirement already up-to-date: setuptools in /usr/lib64/python3.7/site-packages (51.0.0)
Collecting pip
Installing collected packages: pip
  Found existing installation: pip 19.1
    Uninstalling pip-19.1:


ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/bin/pip'
Consider using the `--user` option or check the permissions.
% dephell self inspect
{
  "cache": "6.01Mb",
  "path": "/home/vvk/.local/share/dephell/venvs/dephell/lib/python3.7/site-packages/dephell",
  "python": "/home/vvk/.local/share/dephell/venvs/dephell/bin/python3",
  "version": "0.8.3",
  "versions": {
    "dephell-archive": "0.1.7",
    "dephell-argparse": "0.1.3",
    "dephell-changelogs": "0.0.1",
    "dephell-discover": "0.2.10",
    "dephell-licenses": "0.1.7",
    "dephell-links": "0.1.5",
    "dephell-markers": "1.0.3",
    "dephell-pythons": "0.1.15",
    "dephell-setuptools": "0.2.4",
    "dephell-shells": "0.1.5",
    "dephell-specifier": "0.2.2",
    "dephell-venvs": "0.1.18",
    "dephell-versioning": "0.1.2"
  }
}

I'm on funtoo linux.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant