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

GetProfiles alternetive this funtion #106

Open
fti-sbargule opened this issue Jun 21, 2023 · 0 comments
Open

GetProfiles alternetive this funtion #106

fti-sbargule opened this issue Jun 21, 2023 · 0 comments

Comments

@fti-sbargule
Copy link

/home/suyog/stitcher/PTZcamera_image/PTZcamera_control/python-onvif-zeep-async/examples/rotate_image.py:44: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
INFO:httpx:HTTP Request: POST http://192.168.10.35/onvif/device_service "HTTP/1.1 200 OK"
['__class__', '__delattr__', '__dir__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'close', 'create_analytics_service', 'create_deviceio_service', 'create_devicemgmt_service', 'create_events_service', 'create_imaging_service', 'create_media_service', 'create_notification_manager', 'create_notification_service', 'create_onvif_service', 'create_ptz_service', 'create_pullpoint_manager', 'create_pullpoint_service', 'create_receiver_service', 'create_recording_service', 'create_replay_service', 'create_search_service', 'create_subscription_service', 'get_capabilities', 'get_definition', 'get_next_termination_time', 'get_snapshot', 'get_snapshot_uri', 'has_broken_relative_time', 'to_dict', 'update_xaddrs']
Traceback (most recent call last):
  File "/home/suyog/stitcher/PTZcamera_image/PTZcamera_control/python-onvif-zeep-async/examples/rotate_image.py", line 45, in <module>
    loop.run_until_complete(rotate_image_180())
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/suyog/stitcher/PTZcamera_image/PTZcamera_control/python-onvif-zeep-async/examples/rotate_image.py", line 17, in rotate_image_180
    profiles = await media_service.GetProfiles()
AttributeError: 'coroutine' object has no attribute 'GetProfiles'
sys:1: RuntimeWarning: coroutine 'ONVIFCamera.create_media_service' was never awaited
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

1 participant