From unknown Mon Jun 16 23:47:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68953 <68953@debbugs.gnu.org> To: bug#68953 <68953@debbugs.gnu.org> Subject: Status: OpenCV Python package throws error Reply-To: bug#68953 <68953@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:47:53 +0000 retitle 68953 OpenCV Python package throws error reassign 68953 guix submitter 68953 Jean-Pierre De Jesus Diaz severity 68953 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 06 11:49:49 2024 Received: (at submit) by debbugs.gnu.org; 6 Feb 2024 16:49:49 +0000 Received: from localhost ([127.0.0.1]:55004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXOdo-0005Iz-Kr for submit@debbugs.gnu.org; Tue, 06 Feb 2024 11:49:48 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXOdm-0005Im-8x for submit@debbugs.gnu.org; Tue, 06 Feb 2024 11:49:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXOdS-0007Tr-0I for bug-guix@gnu.org; Tue, 06 Feb 2024 11:49:26 -0500 Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXOdQ-0006mL-73 for bug-guix@gnu.org; Tue, 06 Feb 2024 11:49:25 -0500 Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-46d15fbf359so622704137.0 for ; Tue, 06 Feb 2024 08:49:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1707238162; x=1707842962; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=vmJzGAHVdgg+C/HS874idcV5HvE0V8/Ys83QtZYWo4k=; b=RFxtZNeC7Z0e9E666O/MlQ3+WkZutqHk8tQSsPqnLG7fPYze5Kwns3ZgBQMo44kApO iN66KSqW5z2jE262f1Ab3EgaWF9I6Voo+VYoL3GrPhbmjMCodXtWFVp6B6SnJkZhHD2+ 3r/Up46nOa5r6h0I5Rtp7hQdP9u3tpptv/qTe46MicezgprI4h4uIO5a6US5IoC8ZxSc ZhREYyeFyhy7cCvzqTaugWj+n8xYQk1A50EFquHoRjDFgUYwUHBQ+1ZmdXj7WQsqk+fb Ku4d94035d0Je12KVxvi7ieMkemEKdYXJE36+D80DPmNe+uGyFrnAUl6cuK3CXG8R1Fo 7yVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707238162; x=1707842962; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vmJzGAHVdgg+C/HS874idcV5HvE0V8/Ys83QtZYWo4k=; b=EKcM8/6yAY5LYINbMJoHVgwH7ka2E6jHh3C3rqd3UquXsCvrTURedxJHg7WOC1GXP5 f2Pz0vTF9xAOgSxsTKPBWvwxCAKzFk3DPnWvDYg8YHPIfmc0D3inq6LjjJ63wmf9KF9s jMKYE9Cv0jjw9hKdxahw5Y8YQbTbuoANqhX51nHb1sD0wDXq3CFmJk4FMM/4OsWNqEoS ZWZwBcaSkF7fuGPcpHwYHorkGbS4G2NboLyOsSdk0xRm+IGMSYtUO+j7mjGSEcoW7+M6 9ZjeUGXlJld++rcYZ7HYFJXjM+B7KmuSwitoSQeQO/MK5r2AzqhhiK6HOKuXC/6LUu2I b2mQ== X-Gm-Message-State: AOJu0YzXA7s7pUD4ThQpxvgYKt50s3GibjuvOnTLQoiInsUhk0NTHl+/ lU3qFQEGMBxWSkaVzgcQN2RmqO+imHOajaVT1wCanR48HBZdqGU7c0I6LwEvUbbg+p7302VQApB 9ICqpy+x5MFh9pcwwQRFUNxnl4OpLgLZvvnDBHcw0yBOd5rOM X-Google-Smtp-Source: AGHT+IEpIkXp6DGJ0KJwM9JjvtRZ8YLDqg6whjUn0YcNNAE8OoF+Fa3dLgMuQ9q9RzFBCkcEr3CouK2iNQ+eSKqSQiM= X-Received: by 2002:a05:6102:dd4:b0:46d:3976:2112 with SMTP id e20-20020a0561020dd400b0046d39762112mr118121vst.3.1707238161877; Tue, 06 Feb 2024 08:49:21 -0800 (PST) MIME-Version: 1.0 From: Jean-Pierre De Jesus Diaz Date: Tue, 6 Feb 2024 16:49:11 +0000 Message-ID: Subject: OpenCV Python package throws error To: bug-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=jean@foundationdevices.com; helo=mail-vs1-xe2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) The current OpenCV package (opencv@4.8.0) fails to load on a pure GNU Guix system, the error reports that some part of OpenCV isn't able to find the libGL.so.1 library. My GNU Guix description: Generation 83 Feb 05 2024 16:30:36 (current) guix a3df20d repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: a3df20db8c3b9c819db7ca29bf014e2544e389d4 To reproduce the issue guix shell python \ python-numpy \ opencv \ --pure \ -- python3 -c 'import cv2' And shows the following error: Traceback (most recent call last): File "", line 1, in File "/home//.local/lib/python3.10/site-packages/cv2/__init__.py", line 181, in bootstrap() File "/home//.local/lib/python3.10/site-packages/cv2/__init__.py", line 153, in bootstrap native_module = importlib.import_module("cv2") File "/gnu/store/8s8k2v6b5b7lyf5y5n534cjd9sipgas6-python-3.10.7/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: libGL.so.1: cannot open shared object file: No such file or directory I tried investigating why the error happened without luck as I'm not sure in what place OpenCV is trying to load libGL.so.1. -- Jean-Pierre De Jesus DIAZ Foundation Devices, Inc. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 07 11:34:28 2024 Received: (at 68953) by debbugs.gnu.org; 7 Feb 2024 16:34:28 +0000 Received: from localhost ([127.0.0.1]:57760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXksW-0002bw-41 for submit@debbugs.gnu.org; Wed, 07 Feb 2024 11:34:28 -0500 Received: from mail-ua1-x92a.google.com ([2607:f8b0:4864:20::92a]:56489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXksU-0002bj-8I for 68953@debbugs.gnu.org; Wed, 07 Feb 2024 11:34:26 -0500 Received: by mail-ua1-x92a.google.com with SMTP id a1e0cc1a2514c-7d5bbbe592dso353642241.0 for <68953@debbugs.gnu.org>; Wed, 07 Feb 2024 08:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1707323646; x=1707928446; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=i5eZ67hpSZwl7HCwADILSVRBfNFjiAxKoyiyoPxAiuE=; b=AKtB4e4ZfWb6y8U0M5elD409cVgJJK4HH8euvsQ62R6eI6f5gRSKhFfqYIZbjyMTtB ortrctG0rxeRkjkpJDcxBg7zNGmiC0+VuPPNT/iSkV3nRxP0/FIEB7tQPwkVPjKDiWOJ Q/qNJ1RYqB2edtZF3aHw/mzGq1npHUBflv5rWjW79OVuyWEtm7xSzPYM/hMBvRhY230k ygC9+7UE6PD84tQRxvrl1lcaDBbzWj+SeklA7O9qD0EWi7ySRBOxRgAaOTg5BkN/8zzR yZhXup2qfF8w/qVGPN/gNGg04wrkNNWIp+erR0M4LFZPbrUCIEFA/Xhm1otraPCOY9K+ LmHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707323646; x=1707928446; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=i5eZ67hpSZwl7HCwADILSVRBfNFjiAxKoyiyoPxAiuE=; b=c6oe0ATTnuw8Yo9ljUSAZQWNExj9T1CvwcRpb/z/qIvVJoKXPlah+bnw0wpTJkf72T mY/qwbTGMjYtcaGElq2kc8X6B4O8sPf00q/+thAeviQm3UyC+omuGZ7yt0RYzfqkLl+f 7eJWMih3im208LHzZPAnF3CmsIpHVEvBgRIWEDZmbluFn+DxYo8ezgutUFV2CK9VukJ4 qfY8fNgwu3CxlugB3coJL3zV6m4Kam3QQiMgInIBNd6LZxm2xsO7LlfdgvNiUa9Nv5fw xdwyqItRhATWEoR6WFfrGoa2/cznXBPKVuYvPNQtnXfhAm5biRDzdNSHvoa/hKMSwjmX jZig== X-Gm-Message-State: AOJu0YxDmKJfrVh97sn1vXHWHUQeARdtqdqY3SRD1f3WMTmEaezs5P8J uhc8FQeiceQqRslG6sJvJjLh4xt0xuBUf8UsODw3Pv8B/y2iVXkJZpvMT5BsjdtoUvAKdXeDVHv E3QOM9LQCWm2S2GLOTVvM3r/ynZ0CjBDNV54nr8SJncB0Q2mS X-Google-Smtp-Source: AGHT+IGKw2ae2RJqxHk6QlkMUA09/l+JnjRVW09PwEoBAghJ+c1Wf9boyewj1FQS/Z59Ae/PLd2dV8yy7w+7AaII46U= X-Received: by 2002:a05:6122:991:b0:4c0:2a19:7182 with SMTP id g17-20020a056122099100b004c02a197182mr3474255vkd.8.1707323646608; Wed, 07 Feb 2024 08:34:06 -0800 (PST) MIME-Version: 1.0 From: Jean-Pierre De Jesus Diaz Date: Wed, 7 Feb 2024 16:33:56 +0000 Message-ID: Subject: Re: OpenCV Python package throws error To: 68953@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68953 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, I think this can be closed as it was my mistake as some package installed with pip installed OpenCV and Python was picking it up by mistake, sorry for the noise. However, I came up with a patch to propagate python-numpy as it is required by OpenCV. -- Jean-Pierre De Jesus DIAZ Foundation Devices, Inc. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 07 11:35:44 2024 Received: (at 68953) by debbugs.gnu.org; 7 Feb 2024 16:35:44 +0000 Received: from localhost ([127.0.0.1]:57764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXktk-0002dx-FY for submit@debbugs.gnu.org; Wed, 07 Feb 2024 11:35:44 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:49477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXkti-0002di-8g for 68953@debbugs.gnu.org; Wed, 07 Feb 2024 11:35:43 -0500 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33b401fd72bso706126f8f.3 for <68953@debbugs.gnu.org>; Wed, 07 Feb 2024 08:35:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1707323721; x=1707928521; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=clMoU0JxNJY1dsaKj9yGAQq+WAJEe50E7Z5a8afoZLM=; b=BWyRGC/SctaWvWZuIdQUx3ILfMmoD/t8PdMWFW6ev2v8KKP94OlnhmUjWWkqeHvG4I sxVnb+/5Dr/s5sqd7c4jgdrBJJGues6gLPZ9OYu/iLb2xYLxaZXWZNyRWVWNH5dh2G71 q8/WTkQi0+PLezHvg7cgAxsbLFApMoTE/DucsBTA47dNBk3HPYjmYoMKTxkS2RrZSsCD gjrejOSdNoGr3ZlvLwSgIsz6pHnfuIK/NNsgSZNxQbwT3scZ7hISwGOYUi1pZ0FjQA4i nSfehuFVbD1uGGLcknfDoKnAl+O6KK1NQ61wacSTNXrFVZikZrnTwASJQLAAhVtNw5hS N8pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707323721; x=1707928521; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=clMoU0JxNJY1dsaKj9yGAQq+WAJEe50E7Z5a8afoZLM=; b=FktHDi+1LtTUtlkUPV4RjT+ytiT3ZRt/c7d5nhc1agPflU3hA8+tBGwp05VD+y1MSR K5fGs/+UCBa8R+DXw4Uxrvv6Q+G4asiO6C8ph6BtEq1pZrlKRl98L/vj1HrWxGio8s/N w8jdi/d9Y2n++V6K8+wDluu2aJ18UA354RfOgSzDbMGn7nfr1oQ7pS+TSxsDhRh0kdG2 haSMi5kLnZ4G44MESYms90ZQKxtcNzUByJSW/IlnPQNZIdH3LWrjT/EebBKzsDfKfV6d GQZnZ8Q5IilTBPIG24urLWU5wpXSnc4kuBztib/GD3QfEftuUFdtyAuX9BmwDzndh8Bq 9FEQ== X-Gm-Message-State: AOJu0YyrE9BP1LsfxuDiUKkldGmGG7Q/U48lOj80mMJD+dNTJ7+2+B2x lKE5MvNRdvf60FVflLgJM83Td7k9t/A/NvptBiwb2wXvTlCt2imbMjvl/tbo99IHvJR1tlT2sh+ L X-Google-Smtp-Source: AGHT+IFA/L5pZfnvNGlyAaqKn6grkbtIjoDIrfTDoToiuih4GrUsgjIX+pPTl+dneUb9mKZaB/VX2Q== X-Received: by 2002:a5d:5349:0:b0:33b:4d13:30a1 with SMTP id t9-20020a5d5349000000b0033b4d1330a1mr1906588wrv.2.1707323721259; Wed, 07 Feb 2024 08:35:21 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id w8-20020a05600c474800b00410219f126bsm772453wmo.37.2024.02.07.08.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 08:35:20 -0800 (PST) From: Jean-Pierre De Jesus DIAZ To: 68953@debbugs.gnu.org Subject: [PATCH] gnu: opencv: Move python-numpy to propagated-inputs. Date: Wed, 7 Feb 2024 17:35:15 +0100 Message-ID: <94de42b457e0526389e01721f40a7868f169af14.1707323669.git.jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68953 Cc: Jean-Pierre De Jesus DIAZ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/image-processing.scm (opencv): Move python-numpy from INPUTS to PROPAGATED-INPUTS. Change-Id: If4f0c8fa0cf41594a2c63f3e9f271987aa730af2 --- gnu/packages/image-processing.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 07ba0297cd..32405fa08c 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -727,6 +727,7 @@ (define-public opencv (sha256 (base32 "16crcca9r4y4rby0dqdhc06qi84hjk6qxy2sql2dhh35hfs856rr")))))) + (propagated-inputs (list python-numpy)) (inputs (list eigen ffmpeg-4 @@ -749,7 +750,6 @@ (define-public opencv openjpeg protobuf python - python-numpy vtk zlib)) ;; These three CVEs are not a problem of OpenCV, see: base-commit: 10dba10fd6551ab480a38d00301e6f102def674d -- 2.41.0