From: Pradana Adrinusa AUMARS <paumars@courrier.dev>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: help-guix@gnu.org
Subject: Re: Python subprocess fails to execute Pip-installed module
Date: Sun, 16 Oct 2022 17:37:57 +0200 [thread overview]
Message-ID: <98639a5072b42ebedb57275086836d0117f44d82.camel@courrier.dev> (raw)
In-Reply-To: <87k04zeqsx.fsf@elephly.net>
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.path.exists('/home/user/.local/lib/python3.9/site-packages/ray/core/src/ray/gcs/gcs_server')
returns True
Its file type is
ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=59c99f77d9fc6566e51a86cbd63edf9f095abb70, not stripped
Strangely enough, I cannot execute this binary directly,
$ ./home/user/.local/lib/python3.9/site-packages/ray/core/src/ray/gcs/gcs_server
outputs that bash cannot find this file.
Le dimanche 16 octobre 2022 à 17:21 +0200, Ricardo Wurmus a écrit :
>
> Pradana Adrinusa AUMARS <paumars@courrier.dev> 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.Popen(["/home/user/.local/lib/python3.9/site-packages/ray/core/src/ray/gcs/gcs_server"])
>
> Do you get an error message?
> Does this executable exist?
>
next prev parent reply other threads:[~2022-10-16 15:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98639a5072b42ebedb57275086836d0117f44d82.camel@courrier.dev \
--to=paumars@courrier.dev \
--cc=help-guix@gnu.org \
--cc=rekado@elephly.net \
/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.
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).