Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kyrw opened this issue Oct 4, 2024 · 1 comment
Open

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

Kyrw opened this issue Oct 4, 2024 · 1 comment

Comments

@Kyrw
Copy link

Kyrw commented Oct 4, 2024

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.

@ltomes
Copy link

ltomes commented Oct 14, 2024

I'm seeing the same behavior. I am trying to use python-onvif-zeep in the context of this script: https://gist.githubusercontent.com/hawkeye217/152a1d4ba80760dac95d46e143d37112/raw/b40ff52c89cf8412dcf3be1635e2f549e36f135c/fovtest.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants