python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

Unknown error: No such file: ./ver10/device/wsdl/devicemgmt.wsdl

Open Kyrw opened this issue 1 year ago • 1 comments

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.

Kyrw avatar Oct 04 '24 18:10 Kyrw