FalkTannhaeuser / python-onvif-zeep

ONVIF Client Implementation in Python 2+3 (using https://github.com/mvantellingen/python-zeep instead of suds as SOAP client)
MIT License
424 stars 138 forks source link

Can't Move the PTZ camera - Error #59

Open killercuts opened 4 years ago

killercuts commented 4 years ago

Running the example continuous_move.py >>> moverequest { 'ProfileToken': '0', 'Velocity': { 'PanTilt': { 'x': 0.57, 'y': -0.44, 'space': 'http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace' }, 'Zoom': { 'x': 0.0, 'space': 'http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace' } }, 'Timeout': None }

`>>> ptz.ContinuousMove(moverequest) Traceback (most recent call last): File "/home/myuser/Documents/python-onvif-zeep/onvif/client.py", line 25, in wrapped return func(*args, kwargs) File "/home/myuser/Documents/python-onvif-zeep/onvif/client.py", line 150, in wrapped return call(params, callback) File "/home/myuser/Documents/python-onvif-zeep/onvif/client.py", line 138, in call ret = func(params) File "/usr/local/lib/python3.7/dist-packages/zeep/proxy.py", line 45, in call kwargs, File "/usr/local/lib/python3.7/dist-packages/zeep/wsdl/bindings/soap.py", line 130, in send return self.process_reply(client, operation_obj, response) File "/usr/local/lib/python3.7/dist-packages/zeep/wsdl/bindings/soap.py", line 195, in process_reply return self.process_error(doc, operation) File "/usr/local/lib/python3.7/dist-packages/zeep/wsdl/bindings/soap.py", line 362, in process_error subcodes=subcodes, zeep.exceptions.Fault: Action Failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/home/myuser/Documents/python-onvif-zeep/onvif/client.py", line 27, in wrapped raise ONVIFError(err) onvif.exceptions.ONVIFError: Unknown error: Action Failed`