From: Jean-Pierre De Jesus Diaz via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 68953@debbugs.gnu.org
Subject: bug#68953: OpenCV Python package throws error
Date: Tue, 6 Feb 2024 16:49:11 +0000 [thread overview]
Message-ID: <CAG1gdUrRq4-Ar-VLbmwafViKo7LFV+SW1Z7NDCq5OwETUv-00g@mail.gmail.com> (raw)
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 "<string>", line 1, in <module>
File "/home/<redacted>/.local/lib/python3.10/site-packages/cv2/__init__.py",
line 181, in <module>
bootstrap()
File "/home/<redacted>/.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.
next reply other threads:[~2024-02-06 16:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 16:49 Jean-Pierre De Jesus Diaz via Bug reports for GNU Guix [this message]
2024-02-07 16:33 ` bug#68953: OpenCV Python package throws error Jean-Pierre De Jesus Diaz via Bug reports for GNU Guix
2024-02-07 16:35 ` bug#68953: [PATCH] gnu: opencv: Move python-numpy to propagated-inputs Jean-Pierre De Jesus DIAZ via Bug reports for GNU Guix
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=CAG1gdUrRq4-Ar-VLbmwafViKo7LFV+SW1Z7NDCq5OwETUv-00g@mail.gmail.com \
--to=bug-guix@gnu.org \
--cc=68953@debbugs.gnu.org \
--cc=jean@foundationdevices.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).