From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sF4JIWwlTGMKNwEAbAwnHQ (envelope-from ) for ; Sun, 16 Oct 2022 17:38:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mJACIGwlTGPTUwEA9RJhRA (envelope-from ) for ; Sun, 16 Oct 2022 17:38:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 36305255AF for ; Sun, 16 Oct 2022 17:38:20 +0200 (CEST) Received: from localhost ([::1]:60966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok5iV-0003su-32 for larch@yhetil.org; Sun, 16 Oct 2022 11:38:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok5iK-0003sZ-VX for help-guix@gnu.org; Sun, 16 Oct 2022 11:38:08 -0400 Received: from mail.42l.fr ([2a09:6382:4000:3:45:155:171:163]:44900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok5iI-0003bu-PQ for help-guix@gnu.org; Sun, 16 Oct 2022 11:38:08 -0400 Message-ID: <98639a5072b42ebedb57275086836d0117f44d82.camel@courrier.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=courrier.dev; s=mail; t=1665934681; bh=WcxlBFHceg0ogCp3QoOA4H7kw7MFXRhLIdp2XuuZAok=; h=Subject:From:To:Cc:In-Reply-To:References; b=pUePdAof9YILxFFXcVv+qQs2JY4oqwemu38COhLwztsmRpxQFXRlqwh0D5a11pDnD XZOX4jXOU8ZIoOqD9jAFuvJtzJUSOSfISHitl9VZv/eOhyHrSpUgYew7QNlzsFN0Hl qbUdXUvLMUO8XnB/CIvdy7/IOOHou3D26+TmNmJYQ/hoRhqG+cfizvG4uR7dk6Noah sdShNuTm2t62bQM2Q1r+1cEj1DjvvmsT3g8aP3cSFZ6AQ5/70LEaOAIiplLAM0jbRU ZFg5v4NxDsQ9i1n7uuNu0TCGkdmhLg3T5txDp505/GROfXMc8Obc4hxIpiXmxHOzhc Q75uXZSZ6VoNQ== Subject: Re: Python subprocess fails to execute Pip-installed module From: Pradana Adrinusa AUMARS To: Ricardo Wurmus Cc: help-guix@gnu.org Date: Sun, 16 Oct 2022 17:37:57 +0200 In-Reply-To: <87k04zeqsx.fsf@elephly.net> References: <87k04zeqsx.fsf@elephly.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a09:6382:4000:3:45:155:171:163; envelope-from=SRS0=qoCc=2R=courrier.dev=paumars@42l.fr; helo=mail.42l.fr X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665934700; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=B2W81LA2+Gu7PuekwQ+6wSBR3YnbqGNAtmMR8KAsp4I=; b=MCLaiHqFfcirPLmtvvSRX9+cgYxnJ7pu9o035sT+ECxE1hUxvlNuuwzlR45o7OdIpei/2J Q62LQL89agalozE3AXxrOZ4N8YLWIeAnmKBExB19twDEE21atO8gJ60r99xQp/Hk6b8vvz KYxiNfwZinSFNJ7hWlXyIw5dpvCc/cFzkBRd3+Bf0bdg3SN/tPAF37o775OO9b0JwowAYv /OA4T6n1dDkbQ+lXEcc+gQOiiuhyJiqQiTgeQH55nMKuz23Ym8KXE6xy2Stfh9sn38/wI5 JecFf2xvPSam62YF5FO//ArkrbwTjymGxy6C5y01wsg2KIQL9uS2A92BqNcj1Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665934700; a=rsa-sha256; cv=none; b=qaA0IB/vJZsx96/jQrjOb/SnK+o8MWiaWIjwSSDM2+OogTXTISUfOEcaxmEoFCP/cHnzT4 z41BTj+G55WUzBPQ7fhXd0DiMVuxsNudiGasLkjGWIdm4diRW0KXAdyodDpqeyIRbgQEH0 yh4k9Fo7IfT0A9hdPey7HQe5Rm9/rW1UqKEPVRJf7InTIMHi3k+UZosvh7B01TczjYnJCk ou+QMRkF2UuAjxkfrCSmLKsYcIVt1rQgaGtVQyW5Y9M76wQSbcpVh0SbffP5PDSxkQPwxq eDofmseJF+FEwWlhO1IPZp1H13NPOqhqXpETGcwnQ5MMI3S2JXoJ/NUFMq55BQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=courrier.dev header.s=mail header.b=pUePdAof; dmarc=pass (policy=quarantine) header.from=courrier.dev; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=courrier.dev header.s=mail header.b=pUePdAof; dmarc=pass (policy=quarantine) header.from=courrier.dev; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 36305255AF X-Spam-Score: -1.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: Qa1MDJGegAHi 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 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? >