Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run events.py - no element 'PullMessages' #80

Open
xultz opened this issue May 25, 2021 · 1 comment
Open

Cannot run events.py - no element 'PullMessages' #80

xultz opened this issue May 25, 2021 · 1 comment

Comments

@xultz
Copy link

xultz commented May 25, 2021

Hi, I'm starting with onvif, so I'm trying to run the examples to control a PTZ camera. I am able to run the continuous_move.py example, but when I try to run the events.py code, I get the error:

raise exceptions.LookupError( zeep.exceptions.LookupError: No element 'PullMessages' in namespace http://docs.oasis-open.org/wsrf/rw-2. Available elements are: -

Am I missing something?

What I need to do is to move the camera to a preset, and know somehow when the camera finished moving to that position, is it possible in any way using the onvif protocol?

Thank you for any help!

@yingchengpa
Copy link

https://github.com/yingchengpa/python-onvif2-zeep/

support hecv and repair the event bug .

-------------------------------demo ----------------------------------
self.events_service = self.mycam.create_events_service()
print(self.events_service.GetEventProperties())
pullpoint = self.mycam.create_pullpoint_service()

    try:
       pullmess = pullpoint.PullMessages({"Timeout": datetime.timedelta(seconds=5), "MessageLimit": 10})
       print(pullmess.CurrentTime)
       print(pullmess.TerminationTime)
       for msg in pullmess.NotificationMessage:
         print(msg)
       except Exception as e:
          print(e)
       finally:
          pass

--------------------------------TopicExpressionType parse error ----------------
Message is ##any ,you should modify b-2.xsd ##any to tt::Message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants