You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 projectif 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.
The text was updated successfully, but these errors were encountered: