martyanov/aonvif

The examples aren't actually working

Opened this issue · 2 comments

The first issue is that ONVIFCamera isn't getting populated correctly, resulting in errors like the following:
AttributeError: 'ONVIFCamera' object has no attribute 'devicemgmt' and AttributeError: 'ONVIFCamera' object has no attribute 'get_service'

The Type Instance - example isn't working either, with time_params.TimeZone.TZ = 'CST-8:00:00' failing because time_params.TimeZone is None and the same goes for time_params.UTCDateTime

OS: Ubuntu Linux 21.10
Python: 3.9.7

@WereCatf thanks for the report. I see. It is sort of remnants of the original project. PRs are welcome.

I ran into this problem when one of my project files was called onvif.py, which happens to be a package name that aonvif uses. I don't know if that was WereCatf's problem in this case, but I resolved the same error by simply resolving the name collisions.