Bug 2142632
| Summary: | Please provide opencv-python in python3-opencv | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jaroslav Škarvada <jskarvad> |
| Component: | opencv | Assignee: | Sergio Basto <sergio> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 38 | CC: | andrew, hhorak, jkucera, jmlich83, jridky, karlthered, kwizart, rakesh.pandit, sanjay.ankur, sergio, viktor.vix.jancik |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | opencv-4.7.0-8.fc38 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-24 01:16:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jaroslav Škarvada
2022-11-14 17:11:08 UTC
Moreover even when patched the upstream package I got the following dnf error: - nothing provides python3.10dist(python3-opencv) I.e. it should provide python3.10dist() variant. (In reply to Jaroslav Škarvada from comment #1) > Moreover even when patched the upstream package I got the following dnf > error: > - nothing provides python3.10dist(python3-opencv) > > I.e. it should provide python3.10dist() variant. This was on f35, on f38 it will be python3.11dist()... This dep was autogenerated by rpm-build from the setup.py where I had: install_requires=[ "python3-opencv"], (In reply to Jaroslav Škarvada from comment #2) > (In reply to Jaroslav Škarvada from comment #1) > > Moreover even when patched the upstream package I got the following dnf > > error: > > - nothing provides python3.10dist(python3-opencv) > > > > I.e. it should provide python3.10dist() variant. > > This was on f35, on f38 it will be python3.11dist()... This dep was > autogenerated by rpm-build from the setup.py where I had: > > install_requires=[ > "python3-opencv"], I added install_requires=["python3-opencv"], to modules/python/package/setup.py a test a build [1] but nothing change ... I think we need run something like python-wheel , but I hadn't time to see it yet [1] https://koji.fedoraproject.org/koji/taskinfo?taskID=94586720 This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38. I think this bug is fixed in f38, feel free to re-open if you think it's not the case
(Specially as there is this %{?%py_provides:%py_provides python3-%{name}} in the python3-opencv package)
rpm -qp --provides python3-opencv-4.7.0-2.fc38.x86_64.rpm
python-opencv = 4.7.0-2.fc38
python3-opencv = 4.7.0-2.fc38
python3-opencv(x86-64) = 4.7.0-2.fc38
python3.11-opencv = 4.7.0-2.fc3
(In reply to Nicolas Chauvet (kwizart) from comment #5) > I think this bug is fixed in f38, feel free to re-open if you think it's not > the case > (Specially as there is this %{?%py_provides:%py_provides python3-%{name}} in > the python3-opencv package) > > rpm -qp --provides python3-opencv-4.7.0-2.fc38.x86_64.rpm > python-opencv = 4.7.0-2.fc38 > python3-opencv = 4.7.0-2.fc38 > python3-opencv(x86-64) = 4.7.0-2.fc38 > python3.11-opencv = 4.7.0-2.fc3 %{?python_provide:%python_provide python3-%{srcname}} and now %{?%py_provides:%py_provides python3-%{name}} exist since 2016 , the problem is the python build (I found this page https://github.com/opencv/opencv/wiki/G-API-Python-Bindings ) don't build and install the python egg or .egg-info, so package doesn't provides the autogenerated python3.11dist() , so this bug still not solved FEDORA-2023-a225a512ce has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a225a512ce
in %install I added :
cd %{__cmake_builddir}/python_loader/
%py3_install -- --install-lib %{python3_sitearch}
and in %files -n python3-opencv I added
%{python3_sitearch}/opencv-*.egg-info
let me know if it is enough ...
FEDORA-2023-a225a512ce has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a225a512ce` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a225a512ce See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-a225a512ce has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. |