Open dghodgson opened 8 years ago
Hi I've got the same error in debian jessi 8.4
to solve this edit /usr/local/lib/python2.7/dist-packages/suds_passworddigest/token.py
and changed the following: -from suds.sax.date import UTC +from suds.sax.date import DateTime, UtcTimezone
onvif-cli argument --host is required usage: onvif-cli [-h] --host HOST [--port PORT] -u USER -a PASSWORD [-w WSDL] [-e ENCRYPT] [-v] [--cache-location CACHE_LOCATION] [--cache-duration CACHE_DURATION] [service] [operation] [params]
in my ubuntu installation it was ~/.local/lib/python2.7/site-packages/suds_passworddigest/token.py
i hope it helps...
jens
But it will not work:
python --version Python 2.7.10
onvif-cli -v -u 'user' -a 'password' --host 'IP.ADDR' --port 8899 -w /home/jens/src/onvif/python-onvif/wsdl
Traceback (most recent call last):
File "/usr/local/bin/onvif-cli", line 9, in
On CentOS 6 with python --version Python 2.6.6
it works onvif-cli -u 'jens' -a 'jens' --host 'Cam.IP' --port 8899 -w /root/src/python-onvif/wsdl ONVIF >>> jens
Hello,
It took me some time to figure out but the problem actually comes from Debian SUDS package that break the API by introducing proper timezone handling.
PR has been sent and merged already: https://github.com/suvit/suds-passworddigest/pull/4
I also created Debian's package available here: https://cloud.le-vert.net/public.php?service=files&t=7f106d986b07256ba7efcf88e26788f6
They need suds-passworddigest package from here: https://cloud.le-vert.net/public.php?service=files&t=665bdfb0abe467cf6b6a28d50370dc65
Same issue when Installed from source or Pypi
From what I can tell, the suds-passworddigest package isn't available on Ubuntu 15.10. In addition, it looks as though the suds package has been deprecated.