You are not logged in.
sudo pacman -S python-pip python-pipx
...
$ pip
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'
$ pipx
Traceback (most recent call last):
File "/usr/bin/pipx", line 5, in <module>
from pipx.main import cli
ModuleNotFoundError: No module named 'pipx'
$ python -m ensurepip
python -m ensurepip
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 "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3.11/ensurepip/__main__.py", line 5, in <module>
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/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmpf8wlys6h/setuptools-65.5.0-py3-none-any.whl\', \'/tmp/tmpf8wlys6h/pip-23.2.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmpf8wlys6h\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
python 3.11.5-2.0
python-pip 22.3.1-1.0
python-pipx 1.1.0-1.0
Offline
Python needs a full rebootstrap, it hit stable with the new interpreter and a set of arbitrary python modules not fitting to the interpreter.
My issue is: I cannot fast rebuild packages (mainly since the git move upstream), so my hands are pretty much tied.
Offline
Python needs a full rebootstrap
What does it mean? where i can find more information?
Today i got this
Traceback (most recent call last):
File "/usr/bin/g-ir-scanner", line 98, in <module>
from giscanner.scannermain import scanner_main
File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
from giscanner.ast import Include, Namespace
File "/usr/lib/gobject-introspection/giscanner/ast.py", line 29, in <module>
from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
File "/usr/lib/gobject-introspection/giscanner/sourcescanner.py", line 34, in <module>
from giscanner._giscanner import SourceScanner as CSourceScanner
ModuleNotFoundError: No module named 'giscanner._giscanner'
make[3]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: GConf-2.0.gir] Error 1
make[3]: Leaving directory '/home/user/git/gconf/src/gconf/gconf'
make[2]: *** [Makefile:582: all] Error 2
make[2]: Leaving directory '/home/user/git/gconf/src/gconf/gconf'
make[1]: *** [Makefile:589: all-recursive] Error 1
make[1]: Leaving directory '/home/user/git/gconf/src/gconf'
make: *** [Makefile:473: all] Error 2
==> ERROR: A failure occurred in build().
Offline