From: Pradana Adrinusa AUMARS <paumars@courrier.dev>
To: help-guix@gnu.org
Subject: Python subprocess fails to execute Pip-installed module
Date: Sun, 16 Oct 2022 13:38:11 +0200 [thread overview]
Message-ID: <adb5e9a2476037e883fbb289aa0888577c6ecc4e.camel@courrier.dev> (raw)
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()
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.Popen(["/home/user/.local/lib/python3.9/site-packages/ray/core/src/ray/gcs/gcs_server"])
It doesn't seem to be a $PATH issue. $PATH does not have ~/.local/bin
and
import subprocess
subprocess.Popen(["/home/user/.local/bin/any_binary"])
works normally.
I've also tried adding /home/user/.local/lib/python3.9/site-packages/ray/core/src/ray/gcs
to $PATH, and it doesn't work.
I could package Ray, which would be the permenant solution, but I'm
limited on time right now. Does anyone have a temporary solution to fix
this issue?
Thanks.
next reply other threads:[~2022-10-16 11:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-16 11:38 Pradana Adrinusa AUMARS [this message]
2022-10-16 15:21 ` Python subprocess fails to execute Pip-installed module Ricardo Wurmus
2022-10-16 15:37 ` Pradana Adrinusa AUMARS
2022-10-16 15:50 ` Tobias Geerinckx-Rice
2022-10-16 18:53 ` Pradana Adrinusa AUMARS
2022-11-12 22:46 ` Python subprocess fails to execute Pip-installed module / Packaging Python Ray Pradana Adrinusa AUMARS
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=adb5e9a2476037e883fbb289aa0888577c6ecc4e.camel@courrier.dev \
--to=paumars@courrier.dev \
--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.