From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4DN5BE3tS2NVGgEAbAwnHQ (envelope-from ) for ; Sun, 16 Oct 2022 13:38:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yOOMA03tS2NXewEAG6o9tA (envelope-from ) for ; Sun, 16 Oct 2022 13:38:53 +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 9CCE7A836 for ; Sun, 16 Oct 2022 13:38:52 +0200 (CEST) Received: from localhost ([::1]:46078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok1yl-00006T-DJ for larch@yhetil.org; Sun, 16 Oct 2022 07:38:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok1yX-00005y-FP for help-guix@gnu.org; Sun, 16 Oct 2022 07:38:38 -0400 Received: from mail.42l.fr ([2a09:6382:4000:3:45:155:171:163]:50230) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok1yU-00007v-TJ for help-guix@gnu.org; Sun, 16 Oct 2022 07:38:36 -0400 Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=courrier.dev; s=mail; t=1665920295; bh=o9BKCLmC7UBUM1fuo5mOsP0fda6m7L5cz06Q5Euy77E=; h=Subject:From:To; b=JlNUKv/tYfnA07MzyWyv+acp2p0EuDSOh8a6rCDdX5lYAUCI75jKW8ozo/byI8Ues HVlXsR8LpGgYeM85T4Nrl4z0otj/CM0zLT+nYAWEbPafcwyiRZWXhVD4P6i8hd58fw jYohhJjX5F0G7vBmclDduCIkJRSsWg+brv6ETV0VR6e/XJVRtOJx5wlU0IPSrmPrYW dtM0cnDxND2eQRvZs80vcH/GKqgnFerbchaT4WaWc87H8UsWcih1hfrbY++pXX1HLW ZA/hGrxuUCfw1FRy7QQYRYFzEj0lYJEHp0CXmpPW9bNxuJFEC4CW+AiM38gzzghm7p TjToE9cZO119Q== Subject: Python subprocess fails to execute Pip-installed module From: Pradana Adrinusa AUMARS To: help-guix@gnu.org Date: Sun, 16 Oct 2022 13:38:11 +0200 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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=1665920332; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=o9BKCLmC7UBUM1fuo5mOsP0fda6m7L5cz06Q5Euy77E=; b=aeRa+yM/h8w3jKSLESuV4F+fG6TX5arHSHa5OuFL+zspELiyHkd/ma51rzO64DrP7TmSj5 OLjPx2BhHYrO+3ZU1L4oV5oWJbOEAEb7mCx6x2zO9y6hWjdN4hMMGGyKBB+NXQoF5B7gCc 59xXPNYZ+OvZ+ynJ5nS/nHUYgJm6c7G0SjLljrs5fs0uk7YgkH3HJq9/C1LDG3QvLWrNV5 A/PviSqIL0/TR2Xxbl6FxclRZVRPJlH7Tg+iIiSXnC0jq2sdwj4czJccVRxt1y5McSksWr z/fkWNSEjSbylwb/kP7uW+r2zeLQgfUyVjAzaxEtmmKjMOYFzUAueHCsSGIRdA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665920332; a=rsa-sha256; cv=none; b=IMDmM/XjtG4uFFmeWh0S5c8GIQtisiqIQIO5mcE+XIDQU6e3wDuvEvSxXsbtwHmWW3k9Fk 8Znsrwnhuv7aNjGFG1mJkSk8TQr2Iw6q2Q+n90/8YJAiq0GwYPkvFQR0sOKtWpVa5kovkc IvShWxqupyODNnC/bMbUxisVc0G0BKb/bHrYG03TOOnJJ8lDLRcacNHIYuPArEkGj2cNN6 iqmU+6d/lIvL7IbdAH149j2R6hZr2I9TGb7EAJxdNqsIkUqO6t265BJitJNV6252xZy+17 +mXux2bbHyiSNb6u9wdpayE0StAOyKTl50o1EedA1K/uP6bvffyXRBRoTFhgzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=courrier.dev header.s=mail header.b="JlNUKv/t"; 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.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=courrier.dev header.s=mail header.b="JlNUKv/t"; 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: 9CCE7A836 X-Spam-Score: -1.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0g+cn7fryynk 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.