python-onvif-zeep
python-onvif-zeep copied to clipboard
Unknown error: No such file: ./ver10/device/wsdl/devicemgmt.wsdl
I'm having this issue when instantiating a ONVIFCAMERA.
I installed python onvif zeep with
pip install --upgrade onvif_zeep on the ./venv of my project
if I run
mycam = ONVIFCamera(IP, PORT, USER, PASS)
I get the following error:
onvif2.exceptions.ONVIFError: Unknown error: No such file: /home/***/.venv/lib/python3.11/site-packages/wsdl/./ver10/device/wsdl/devicemgmt.wsdl
After looking around, I found another Lib inside my ./venv with capital L. The file devicemgmt.wsdl is inside this path, but the library seems to be adding this ./ver10/device/wsdl/devicemgmt.wsdl to the file path, that, to me, doesnt make sense.
The result changing the path to this directory is similtar:
mycam = ONVIFCamera(IP, PORT, USER, PASS, wsdl_dir = '/home/***/.venv/Lib/site-packages/wsdl/')
onvif2.exceptions.ONVIFError: Unknown error: No such file: /home/***/.venv/Lib/site-packages/wsdl/./ver10/device/wsdl/devicemgmt.wsdl
How do i handle this? I even tried on a windows 11 machine, and the same problem with the appended path is happening.