Re: Python subprocess fails to execute Pip-installed module / Packaging Python Ray

2022-11-12 Thread Pradana Adrinusa AUMARS
I'm in the process of packaging Ray for Python. Here is the current SCM configuration: (use-modules (guix packages) (guix download) ((guix licenses) #:prefix license:) (gnu packages python) (guix utils) (guix build-system python)

Re: Python subprocess fails to execute Pip-installed module

2022-10-16 Thread Pradana Adrinusa AUMARS
Thank you for the explanation, Ricardo, Thank you for the explanation Tobias, I tried a simple solution by finding where my "ld" is located with "whereis" and a symbolic link to "/lib64/ld-linux-x86-64.so.2". Unfortunately, I get an Error 80 which means it used a corrupted shared library. I thi

Re: Python subprocess fails to execute Pip-installed module

2022-10-16 Thread Tobias Geerinckx-Rice
Hi Pradana, Pradana Adrinusa AUMARS 写道: dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for And this file doesn't exist. Prebuilt binary blobs don't mix well with Guix for this reason: they hard-code file names such as this one. One (brand-)new work-around is $ guix shell -C

Re: Python subprocess fails to execute Pip-installed module

2022-10-16 Thread Pradana Adrinusa AUMARS
Sorry, I forgot to add the error message in the original mail... It throws a FileNotFoundError as FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.local/lib/python3.9/site-packages/ray/core/src/ray/gcs/gcs_server' The executable exists, accessible by Python's os import os os

Re: Python subprocess fails to execute Pip-installed module

2022-10-16 Thread Ricardo Wurmus
Pradana Adrinusa AUMARS writes: > Running: > > import ray > ray.init() > > fails since Python's subprocess needs to run an executable located in > > ~/.local/lib/python3.9/site-packages/ray/core/src/ray/gcs/gcs_server > > So the error is narrowed down to: > > import subprocess > subprocess.Pope

Python subprocess fails to execute Pip-installed module

2022-10-16 Thread Pradana Adrinusa AUMARS
I need to use Ray (https://www.ray.io) for a project. Because Guix does not have a python-ray package, and I don't really have time to package one myself, I installed Ray using Pip (user installation is the default, since system installation isn't possible on Guix). Running: import ray ray.init()