pip install -r requirements.txt
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.
So ... I created a venv and activated it, but
pip install -r requirements.txt
still fails:
###############################################
WARNING: KIVY_DEPS_ROOT is not set, using system provided SDL
which is not recommended as it may be incompatible with Kivy.
Please build dependencies from source via the provided script
and set KIVY_DEPS_ROOT to the root of the dependencies directory.
###############################################
Current directory is: /tmp/pip-install-3tm7cp26/kivy_3cc7eebad055405a977a819a38dca685
Source and initial build directory is: /tmp/pip-install-3tm7cp26/kivy_3cc7eebad055405a977a819a38dca685
Python path is:
/tmp/pip-install-3tm7cp26/kivy_3cc7eebad055405a977a819a38dca685
<some directory>/whatsapp-msgstore-viewer/venv_for_whatsapp-msgstore-viewer/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process
/tmp/pip-build-env-z91gnnrb/site
/usr/lib/python312.zip
/usr/lib/python3.12
/usr/lib/python3.12/lib-dynload
/tmp/pip-build-env-z91gnnrb/overlay/lib/python3.12/site-packages
/tmp/pip-build-env-z91gnnrb/normal/lib/python3.12/site-packages
/tmp/pip-build-env-z91gnnrb/overlay/lib/python3.12/site-packages/setuptools/_vendor
/tmp/pip-install-3tm7cp26/kivy_3cc7eebad055405a977a819a38dca685/kivy/modules
/home/hugo/.kivy/mods
Found Cython at /tmp/pip-build-env-z91gnnrb/overlay/lib/python3.12/site-packages/Cython/__init__.py
Detected supported Cython version 0.29.33
Using this graphics system: OpenGL
GStreamer found via pkg-config
SDL2 found via pkg-config
SDL2: found SDL header at /usr/include/SDL2/SDL.h
SDL2: found SDL_mixer header at /usr/include/SDL2/SDL_mixer.h
SDL2: found SDL_ttf header at /usr/include/SDL2/SDL_ttf.h
SDL2: found SDL_image header at /usr/include/SDL2/SDL_image.h
Pango: pangoft2 found via pkg-config
{'libraries': ['pangoft2-1.0', 'pango-1.0', 'gobject-2.0', 'glib-2.0', 'harfbuzz', 'fontconfig', 'freetype'], 'include_dirs': ['/tmp/pip-install-3tm7cp26/kivy_3cc7eebad055405a977a819a38dca685/kivy/include', '/usr/include/pango-1.0', '/usr/include/freetype2', '/usr/include/harfbuzz', '/usr/include/glib-2.0', '/usr/lib/glib-2.0/include', '/usr/include/libmount', '/usr/include/blkid', '/usr/include/libpng16', '/usr/include/pixman-1', '/usr/include/fribidi', '/usr/include/cairo', '/usr/include/sysprof-6'], 'library_dirs': [], 'extra_link_args': [], 'extra_compile_args': [], 'depends': ['lib/pango/pangoft2.pxi', 'lib/pango/pangoft2.h']}
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
ERROR: Dependency for boxshadow.pyx not resolved: config.pxi
Building extensions in parallel using 4 cores
Updated build directory to: build/lib.linux-x86_64-cpython-312
Build configuration is:
* use_rpi_vidcore_lite = 0
* use_egl = 0
* use_opengl_es2 = 0
* use_opengl_mock = 0
* use_sdl2 = 1
* use_pangoft2 = 1
* use_ios = 0
* use_android = 0
* use_mesagl = 0
* use_x11 = 0
* use_wayland = 0
* use_gstreamer = 1
* use_avfoundation = 0
* use_osx_frameworks = 0
* debug_gl = 0
* kivy_sdl_gl_alpha_size = 8
* debug = False
Updated build/lib.linux-x86_64-cpython-312/kivy/include/config.h
Updated /tmp/pip-install-3tm7cp26/kivy_3cc7eebad055405a977a819a38dca685/kivy/include/config.h
Updated build/lib.linux-x86_64-cpython-312/kivy/include/config.pxi
Updated /tmp/pip-install-3tm7cp26/kivy_3cc7eebad055405a977a819a38dca685/kivy/include/config.pxi
Updated build/lib.linux-x86_64-cpython-312/kivy/setupconfig.py
Updated /tmp/pip-install-3tm7cp26/kivy_3cc7eebad055405a977a819a38dca685/kivy/setupconfig.py
Detected compiler is unix
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Kivy
Building wheel for kivymd (pyproject.toml): started
Building wheel for kivymd (pyproject.toml): finished with status 'done'
Created wheel for kivymd: filename=kivymd-1.2.0.dev0-py3-none-any.whl size=2223879 sha256=95253d2d0fc072c36f13581661258cfb0ffbef8e33b9d062212348eba4d1e0d8
Stored in directory: /tmp/pip-ephem-wheel-cache-ayivtplb/wheels/13/99/f0/ef11d8dd7aefe79259751ec279a3f74cc610542532f7bba739
Successfully built kivymd
Failed to build Kivy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Kivy)
So ... I created a venv and activated it, but
pip install -r requirements.txt
still fails: