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
445 stars 146 forks source link

AttributeError: 'NoneType' object has no attribute 'PanTilt' #74

Open imihassan opened 3 years ago

imihassan commented 3 years ago

I am trying to use the same library. First I got the problem with _token and I replaced it with token = media_profile.token but it gives an error of none type

When I try to get the position it gives error

AttributeError: 'NoneType' object has no attribute 'PanTilt'

Status is PTZ status: { 'Position': None, 'MoveStatus': None, 'Error': 'NO error', 'UtcTime': datetime.datetime(2010, 3, 22, 12, 11, tzinfo=<isodate.tzinfo.Utc object at 0x0000024C7E2B37F0>), '_value_1': None, '_attr_1': None }

I am opening the camera with an HTTP port Can anyone help me

leviethung2103 commented 3 years ago

I also got the same problem. Have you solve this issue?

imihassan commented 3 years ago

I also got the same problem. Have you solve this issue?

My problem was solved by using Sensecam control

I used the continuous move function and it's working awesome.

leviethung2103 commented 3 years ago

@imihassan Wow, thank you so much. I would try that library based on your suggestion.

htaufik commented 3 years ago

@imihassan I've some problem when trying Sensecam-Control, in my code the key that used for pan, tilt, and zoom doesn't work (i'm trying relative and absolute move), but when i press the key that used for exit program, it's worked. can you help me, please?

Fantome12138 commented 3 years ago

My problem was solved by using python2 version onvif-python (https://github.com/quatanium/python-onvif) The error may be an onvif version problem.