dlib icon indicating copy to clipboard operation
dlib copied to clipboard

Failure to build with py11

Open luyatshimbalanga opened this issue 2 years ago • 5 comments

Expected Behavior

dlib should be able to build with python 3.11

Current Behavior

dib failed to build with newest version of python 3.11. build.log

Steps to Reproduce

Attempt to build dlib with python 3.11. Provided log above to see the failure.

  • Version: 19.24
  • Where did you get dlib: dlib.net via https://src.fedoraproject.org/rpms/dlib/
  • Platform: Fedora Linux 36
  • Compiler: gcc 12.2.1

luyatshimbalanga avatar Aug 28 '22 18:08 luyatshimbalanga

Python 3.11 is not out yet. The latest release of python is 3.10.

davisking avatar Aug 28 '22 19:08 davisking

I am aware that python 3.11 will get released on October 22. Fedora Project just used the unreleased python 3.11 on their build system exposing the failure. Additionally, Python 3.11 is in candidate release giving the opportunity address future changes.

In a meanwhile, is there a way to use external pybind11 as it seems the internal version in dlib failed to handle python 3.11?

luyatshimbalanga avatar Aug 28 '22 20:08 luyatshimbalanga

You can just replace the code in dlib/external/pybind11. But yes, if there end up being API breaks in python 3.11 when it's fully released we will update pybind11. I'm fine with updating pybind11 now if you want to send a PR for it.

davisking avatar Aug 29 '22 15:08 davisking

@luyatshimbalanga, could you try to build again from master (after #2660 or commit https://github.com/davisking/dlib/commit/65bce59a1512cf222dec01d3e0f29b612dd181f5)?

arrufat avatar Sep 06 '22 02:09 arrufat

@arrufat The commit successfully built as highlighted by the build.log. Updating pybind11 solved the issue.

luyatshimbalanga avatar Sep 15 '22 07:09 luyatshimbalanga

Warning: this issue has been inactive for 35 days and will be automatically closed on 2022-10-30 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

dlib-issue-bot avatar Oct 20 '22 08:10 dlib-issue-bot

Warning: this issue has been inactive for 35 days and will be automatically closed on 2022-12-04 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

dlib-issue-bot avatar Nov 25 '22 09:11 dlib-issue-bot

Warning: this issue has been inactive for 42 days and will be automatically closed on 2022-12-04 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

dlib-issue-bot avatar Dec 02 '22 09:12 dlib-issue-bot

Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.

dlib-issue-bot avatar Dec 05 '22 09:12 dlib-issue-bot

I am getting errors with installing dlib v 19.24.1 with python3.10

AbdullahJirjees avatar Apr 09 '23 17:04 AbdullahJirjees