From: Andy Tai <atai@atai.org>
To: help-guix@gnu.org
Subject: problem trying to install python module in python virtual environment on top of Guix
Date: Sat, 12 Aug 2023 15:39:16 -0700 [thread overview]
Message-ID: <CAJsg1E8=1esS01qu9p97KESuyhfc1UJJ9zL2v6M3neQkxW8jNw@mail.gmail.com> (raw)
Hi, on a Guix system I tried to install python dependencies in a
python virtual environment. I installed Guix packages
python-toolchain and python-virtualenv, and use the basic python
commands virtualenv and pip3 to go ahead and install dependencies in a
typical python manner.
I got one error in a dependencies that tried to build C modules which
involves using cmake in this python environment: (not the system cmake
but something python stuff installed as part of its process):
Building wheels for collected packages: llama-cpp-python
Building wheel for llama-cpp-python (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for llama-cpp-python (pyproject.toml) did not run
successfully.
│ exit code: 1
╰─> [9 lines of output]
Traceback (most recent call last):
File "/tmp/pip-build-env-44zbk4iu/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py",
line 645, in setup
cmkr = cmaker.CMaker(cmake_executable)
File "/tmp/pip-build-env-44zbk4iu/overlay/lib/python3.10/site-packages/skbuild/cmaker.py",
line 148, in __init__
self.cmake_version = get_cmake_version(self.cmake_executable)
File "/tmp/pip-build-env-44zbk4iu/overlay/lib/python3.10/site-packages/skbuild/cmaker.py",
line 105, in get_cmake_version
raise SKBuildError(msg) from err
Problem with the CMake installation, aborting build. CMake
executable is /tmp/pip-build-env-44zbk4iu/overlay/lib/python3.10/site-packages/cmake/data/bin/cmake
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Could not build wheels for llama-cpp-python, which is required
to install pyproject.toml-based projects
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: pip install --upgrade pip
wonders if anyone knows if the above can be attempted on top of Guix;
not sure if the C build environment can be seen properly under Python
virtualenv
Also the Python tools packaged in Guix seem rather old, and tat can be
part of the issue here.
next reply other threads:[~2023-08-12 22:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-12 22:39 Andy Tai [this message]
2023-08-13 15:00 ` problem trying to install python module in python virtual environment on top of Guix Maxim Cournoyer
2023-08-15 20:04 ` Georgios Athanasiou
2023-08-21 13:36 ` Georgios Athanasiou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJsg1E8=1esS01qu9p97KESuyhfc1UJJ9zL2v6M3neQkxW8jNw@mail.gmail.com' \
--to=atai@atai.org \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.