Closed mriamnobody closed 7 months ago
Hello Stephen, I went over the logs slowly and very carefully, and found some discrepancies between thePython
and Windows SDK versions
. I was using Python 3.10.7
, but the script selected or was using the Python interpreter
and Pythonlibs 3.11.X:
-- Found PythonInterp: C:/ProgramData/chocolatey/bin/python3.11.exe (found suitable version "3.11.5", minimum required is "3.6")
Found PythonLibs: c:/python311/libs/python311.lib
I switched to Python 3.11.X and also updated Windows SDK from 10.0.22000.0
to 10.0.22621.0
Above changes solved the issue for me.
Hello, glad to hear you were able to get things working. I have read that the multiple python version problem is a common issue. I think it starts with the cmake auto find feature that discovers the python library on the host computer when preparing to compile. The search algorithm is pretty opaque, so it sometimes produces unexpected results. Using a python virtual environment might help eliminate some of the confusion, as there would only be one python executable within the environment for cmake to find.
On Wed, Apr 17, 2024 at 7:22 AM Roshanlal @.***> wrote:
Hello Stephen, I went over the logs slowly and very carefully, and found some discrepancies between the Python and Windows SDK versions. I was using Python 3.10.7, but the script selected or was using the Python interpreter and Pythonlibs 3.11.X:
-- Found PythonInterp: C:/ProgramData/chocolatey/bin/python3.11.exe (found suitable version "3.11.5", minimum required is "3.6")
Found PythonLibs: c:/python311/libs/python311.lib
I switched to Python 3.11.X and also updated Windows SDK from 10.0.22000.0 to 10.0.22621.0
Above changes solved the issue for me.
— Reply to this email directly, view it on GitHub https://github.com/sr99622/libonvif/issues/88#issuecomment-2061032257, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6EKOCYGAHGEGF62KVSUE3Y5ZLPXAVCNFSM6AAAAABGKYJTTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGAZTEMRVG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Platform Details
OS: Windows 11 Python: v3.10.7 cmake version 3.28.4 libonvif: Latest git cloned as mentioned in building guide for Windows
Issue
The building completes without any error but when I run the command
python run.py
I get the following error:Below is the log from git cloning till the error: