Closed vybhav72954 closed 2 years ago
Try the latest dlib from github.
Warning: this issue has been inactive for 35 days and will be automatically closed on 2022-04-13 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.
Warning: this issue has been inactive for 42 days and will be automatically closed on 2022-04-13 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.
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.
Sorry for reopening, but I just stumbled upon this and solved it by following jloh's answer on: https://stackoverflow.com/questions/70122322/error-in-installing-dlib-library-in-python-3-10
Basically, I installed cmake on windows through the installer (I did also pip-install cmake, it seems to have worked fine) and changed 26-29 of dlib/external/pybind11/include/pybind11/numpy.h from
#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
#endif
to
#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
After which I was able to build (and use) dlib 19.23 with Python 3.10 on Windows 10. The current version of the file on the repo includes those changes, but the release .zip doesn't. Would it be much of a hassle to make a new release .zip?
Yeah it's probably a good time for another release. I'll prepare one shortly :)
Ok, dlib v19.24 is officially out :)
IF YOU ARE REPORTING A BUG OR PROBLEM WITH DLIB THEN FILL OUT THE ENTIRE TEMPLATE BELOW. ISSUES ASKING QUESTIONS ABOUT WHY SOMETHING DOESN'T WORK THAT FAIL TO FILL OUT THE ENTIRE TEMPLATE WILL BE CLOSED.
It is OK to suggest interesting improvements to dlib, even if you are not volunteering to implement them. However, the issue tracker is not a code writing service, do not ask for someone to write code for you. E.g. Do not ask for feature improvements to the example programs. If there is some feature improvement you want in an example program then it's up to you to write it.
Before you ask a question, check Google for a solution, the dlib FAQ, or consult the dlib documentation. Every single function in dlib is documented in detail. If you obviously haven't read the documentation your issue will be closed.
If you aren't reporting a bug or problem with dlib then delete this template and write whatever you want here.
Expected Behavior
Used
pip install dlib
to install dlib Installed Cmake from their website. Installed Visual Studio Installer to download Cmake tools, Windows SDK (10.0.18632 & 10.0.19041), VS 2019 C++, Virtual Studio Community, C++ Desktop Development ToolsCurrent Behavior
Error Encounterd:
It also tried to run the
setup.py
file but throws the same error.Steps to Reproduce
I have used pip and also tried to install it from the source. See this
pip
and also tried GitHub repo