Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing problem in arch #4477

Closed
MRParag95 opened this issue Jan 23, 2024 · 6 comments · Fixed by #4573
Closed

Installing problem in arch #4477

MRParag95 opened this issue Jan 23, 2024 · 6 comments · Fixed by #4573
Labels
bug Something isn't working packaging

Comments

@MRParag95
Copy link

Problem description

unable to install getting this log:

`
Would you like to install LunarVim's Python dependencies: pynvim?
[y]es or [n]o (default: no) : Y
Verifying that pip is available..
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
python-xyz', where xyz is the package you are trying to
install.

If you wish to install a non-Arch-packaged Python package,
create a virtual environment using 'python -m venv path/to/venv'.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.

If you wish to install a non-Arch packaged Python application,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. Make sure you have python-pipx
installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/lib/python3.11/ensurepip/main.py", line 5, in
sys.exit(ensurepip._main())
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ensurepip/init.py", line 286, in _main
return _bootstrap(
^^^^^^^^^^^
File "/usr/lib/python3.11/ensurepip/init.py", line 202, in _bootstrap
return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ensurepip/init.py", line 103, in _run_pip
return subprocess.run(cmd, check=True).returncode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = ['/tmp/tmp0ricibn9/setuptools-65.5.0-py3-none-any.whl', '/tmp/tmp0ricibn9/pip-23.2.1-py3-none-any.whl'] + sys.path\nsys.argv[1:] = ['install', '--no-cache-dir', '--no-index', '--find-links', '/tmp/tmp0ricibn9', 'setuptools', 'pip']\nrunpy.run_module("pip", run_name="main", alter_sys=True)\n']' returned non-zero exit status 1.
Installing with pip..
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
python-xyz', where xyz is the package you are trying to
install.

If you wish to install a non-Arch-packaged Python package,
create a virtual environment using 'python -m venv path/to/venv'.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.

If you wish to install a non-Arch packaged Python application,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. Make sure you have python-pipx
installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

`

python installed: 3.11.6

LunarVim version

nightly

Neovim version (>= 0.9.1)

master

Terminal name

kitty

Operating system/version

Arch

Steps to reproduce

No response

Screenshots

No response

@MRParag95 MRParag95 added the bug Something isn't working label Jan 23, 2024
@weiss-d
Copy link

weiss-d commented Jan 25, 2024

Same on Manjaro with Release branch.
Installed python-pynvim with pacman, but the script still prompts to install it by itself.

@mfouesneau
Copy link

Alpine also throws the same error.

@romulomf
Copy link

romulomf commented Apr 5, 2024

Exactly the same issue here reported by @MRParag95 also on arch linux.

@henrique-marques-vsoft
Copy link

I found this, see if it helps you:
A workaround for this is to manually install the (so far only) python dependency, 'pynvim'. You can do so on Arch with the following command;
sudo pacman -S python-pynvim

Then install LunarVim again, selecting "no" for installing python dependencies.

This comment was marked as outdated.

@github-actions github-actions bot added the stale label May 30, 2024
@kylo252 kylo252 added packaging and removed stale labels May 30, 2024
@kylo252
Copy link
Collaborator

kylo252 commented May 30, 2024

Yeah, we should probably remove that pynvim dependency, and tell the users they can install it themselves if they need it.
For now, you can select "no" when prompted by the installer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working packaging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants