|Summary:||dlib does not work with python 3|
|Product:||[Fedora] Fedora||Reporter:||Jeffrey C. Ollie <jeff>|
|Component:||dlib||Assignee:||Dmitry Mikhirev <mikhirev>|
|Status:||CLOSED EOL||QA Contact:||Fedora Extras Quality Assurance <extras-qa>|
|Fixed In Version:||Doc Type:||If docs needed, set a value|
|Doc Text:||Story Points:||---|
|Last Closed:||2018-05-29 12:12:54 UTC||Type:||Bug|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Cloudforms Team:||---||Target Upstream Version:|
Description Jeffrey C. Ollie 2017-04-18 21:13:25 UTC
$ python3 Python 3.6.0 (default, Mar 21 2017, 17:30:34) [GCC 7.0.1 20170225 (Red Hat 7.0.1-0.10)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import dlib Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.6/site-packages/dlib/__init__.py", line 1, in <module> from .dlib import * ImportError: /usr/lib64/python3.6/site-packages/dlib/dlib.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE >>>
Comment 1 Jeffrey C. Ollie 2017-05-04 05:50:15 UTC
I rebuilt the latest dlib package for F26 and I still get an error trying to import the package with python3: $ python3 Python 3.6.1 (default, Apr 19 2017, 11:56:23) [GCC 7.0.1 20170309 (Red Hat 7.0.1-0.12)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import dlib Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.6/site-packages/dlib/__init__.py", line 1, in <module> from .dlib import * ImportError: /usr/lib64/python3.6/site-packages/dlib/dlib.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE >>>
Comment 2 Jeffrey C. Ollie 2017-05-04 14:23:29 UTC
Adding BuildRequires on boost-python-devel and boost-python3-devel fixes this problem. I think that without the BR of boost-python3-devel the build system links the Python 3 version of dlib with the Python 2 boost python library since that's the only one it can find.
Comment 3 Fedora Update System 2017-05-23 21:27:04 UTC
dlib-18.18-7.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f77e2a9205
Comment 4 Fedora Update System 2017-05-25 19:19:53 UTC
dlib-18.18-7.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f77e2a9205
Comment 5 Fedora End Of Life 2018-05-03 08:30:03 UTC
This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Comment 6 Fedora End Of Life 2018-05-29 12:12:54 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.