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

Try to implement MQTT response - Need help on Lock #53

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

d3dfantasy99
Copy link
Contributor

Traceback (most recent call last):
File "E:\Nextcloud\GIT\PyMammotion\tests\login_and_mqtt_test.py", line 84, in
sync = event_loop.run_until_complete(sync_status_and_map(_devices_list[0]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PackardBell Power i5\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "E:\Nextcloud\GIT\PyMammotion\tests\login_and_mqtt_test.py", line 44, in sync_status_and_map
await cloud_device.start_map_sync()
File "E:\Nextcloud\GIT\PyMammotion\pymammotion\mammotion\devices\mammotion.py", line 325, in start_map_sync
await self._send_command_with_args("get_hash_response", total_frame=1, current_frame=1)
File "E:\Nextcloud\GIT\PyMammotion\pymammotion\mammotion\devices\mammotion.py", line 826, in _send_command_with_args
async with self._operation_lock:
File "C:\Users\PackardBell Power i5\AppData\Local\Programs\Python\Python312\Lib\asyncio\locks.py", line 14, in aenter
await self.acquire()
File "C:\Users\PackardBell Power i5\AppData\Local\Programs\Python\Python312\Lib\asyncio\locks.py", line 105, in acquire
fut = self._get_loop().create_future()
^^^^^^^^^^^^^^^^
File "C:\Users\PackardBell Power i5\AppData\Local\Programs\Python\Python312\Lib\asyncio\mixins.py", line 20, in _get_loop
raise RuntimeError(f'{self!r} is bound to a different event loop')
RuntimeError: <asyncio.locks.Lock object at 0x00000247FEA2AFC0 [unlocked, waiters:1]> is bound to a different event loop

@mikey0000 mikey0000 merged commit 41a24cc into mikey0000:make-em-mow Aug 15, 2024
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants