python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

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

Open imihassan opened this issue 4 years ago • 5 comments

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

imihassan avatar Feb 09 '21 12:02 imihassan

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

leviethung2103 avatar Mar 03 '21 13:03 leviethung2103

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.

imihassan avatar Mar 03 '21 14:03 imihassan

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

leviethung2103 avatar Mar 03 '21 14:03 leviethung2103

@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?

htaufik avatar Mar 10 '21 08:03 htaufik

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

Fantome12138 avatar Oct 22 '21 09:10 Fantome12138