unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* problem trying to install python module in python virtual environment on top of Guix
@ 2023-08-12 22:39 Andy Tai
  2023-08-13 15:00 ` Maxim Cournoyer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andy Tai @ 2023-08-12 22:39 UTC (permalink / raw)
  To: help-guix

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-29  7:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12 22:39 problem trying to install python module in python virtual environment on top of Guix Andy Tai
2023-08-13 15:00 ` Maxim Cournoyer
2023-08-15 20:04 ` Georgios Athanasiou
2023-08-21 13:36 ` Georgios Athanasiou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).