unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Python subprocess fails to execute Pip-installed module
@ 2022-10-16 11:38 Pradana Adrinusa AUMARS
  2022-10-16 15:21 ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: Pradana Adrinusa AUMARS @ 2022-10-16 11:38 UTC (permalink / raw)
  To: help-guix

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.


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

end of thread, other threads:[~2022-11-12 22:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-16 11:38 Python subprocess fails to execute Pip-installed module Pradana Adrinusa AUMARS
2022-10-16 15:21 ` 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

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).