* [Buildroot] [Bug 12171] New: Python-opencv needs config.py and config-3.7.py to run. Only the *.pyc is not enough.
@ 2019-09-02 21:01 bugzilla at busybox.net
2019-09-05 18:49 ` [Buildroot] [Bug 12171] " bugzilla at busybox.net
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2019-09-02 21:01 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=12171
Bug ID: 12171
Summary: Python-opencv needs config.py and config-3.7.py to
run. Only the *.pyc is not enough.
Product: buildroot
Version: 2019.08
Hardware: Other
OS: Linux
Status: NEW
Severity: trivial
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: ivan.nazarenko at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
When importing cv2 in python 3.7, the program stops with:
File "usr/lib/python3.7/site-packages/cv2/__init__.py", line 89, in <module>
File "usr/lib/python3.7/site-packages/cv2/__init__.py", line 58, in bootstrap
File "usr/lib/python3.7/site-packages/cv2/__init__.py", line 56, in
load_first_config
ImportError: OpenCV loader: missing configuration file: ['config.py']. Check
OpenCV installation.
Since buildroot removed all *.py, leaving the corresponding *.pyc, the above
config.py file is not in target. But these two files are currently needed
uncompiled for "import cv2".
We can of course specify BR2_PACKAGE_PYTHON3_PY_PYC=y, but this would make all
*.py in target, which is sort of a waste.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] [Bug 12171] Python-opencv needs config.py and config-3.7.py to run. Only the *.pyc is not enough. 2019-09-02 21:01 [Buildroot] [Bug 12171] New: Python-opencv needs config.py and config-3.7.py to run. Only the *.pyc is not enough bugzilla at busybox.net @ 2019-09-05 18:49 ` bugzilla at busybox.net 2019-11-27 20:38 ` bugzilla at busybox.net 2019-12-01 21:32 ` bugzilla at busybox.net 2 siblings, 0 replies; 4+ messages in thread From: bugzilla at busybox.net @ 2019-09-05 18:49 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=12171 --- Comment #1 from Fabrice Fontaine <fontaine.fabrice@gmail.com> --- I sent a patch to "fix" this issue: https://patchwork.ozlabs.org/patch/1158640. This patch adds a !BR2_PACKAGE_PYTHON_PYC_ONLY dependency on opencv3's python option. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 12171] Python-opencv needs config.py and config-3.7.py to run. Only the *.pyc is not enough. 2019-09-02 21:01 [Buildroot] [Bug 12171] New: Python-opencv needs config.py and config-3.7.py to run. Only the *.pyc is not enough bugzilla at busybox.net 2019-09-05 18:49 ` [Buildroot] [Bug 12171] " bugzilla at busybox.net @ 2019-11-27 20:38 ` bugzilla at busybox.net 2019-12-01 21:32 ` bugzilla at busybox.net 2 siblings, 0 replies; 4+ messages in thread From: bugzilla at busybox.net @ 2019-11-27 20:38 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=12171 --- Comment #2 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- I have submitted a series to address this: https://patchwork.ozlabs.org/project/buildroot/list/?series=145444 -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 12171] Python-opencv needs config.py and config-3.7.py to run. Only the *.pyc is not enough. 2019-09-02 21:01 [Buildroot] [Bug 12171] New: Python-opencv needs config.py and config-3.7.py to run. Only the *.pyc is not enough bugzilla at busybox.net 2019-09-05 18:49 ` [Buildroot] [Bug 12171] " bugzilla at busybox.net 2019-11-27 20:38 ` bugzilla at busybox.net @ 2019-12-01 21:32 ` bugzilla at busybox.net 2 siblings, 0 replies; 4+ messages in thread From: bugzilla at busybox.net @ 2019-12-01 21:32 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=12171 Peter Korsgaard <jacmet@uclibc.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Peter Korsgaard <jacmet@uclibc.org> --- Merged for 2019.11, thanks -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-12-01 21:32 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-09-02 21:01 [Buildroot] [Bug 12171] New: Python-opencv needs config.py and config-3.7.py to run. Only the *.pyc is not enough bugzilla at busybox.net 2019-09-05 18:49 ` [Buildroot] [Bug 12171] " bugzilla at busybox.net 2019-11-27 20:38 ` bugzilla at busybox.net 2019-12-01 21:32 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox