Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo python3.7 example.py
- [{"RequestServerInfo": {"ClientName": "Client Test", "MessageVersion": 1, "Id": 1}}]
- ServerInfo(server_name='Intiface Server', major_version=0, minor_version=0, build_version=0, message_version=1, max_ping_time=0)
- Connected to server: Intiface Server
- [{"RequestDeviceList": {"Id": 2}}]
- DeviceList(devices=[])
- [{"RequestLog": {"LogLevel": "Debug", "Id": 3}}]
- Ok()
- [{"StartScanning": {"Id": 4}}]
- Log(log_level='Debug', log_message='DeviceManager: Starting scan')
- Ok()
- cancel_me(): before sleep
- Log(log_level='Debug', log_message='Found configuration for device LVS-Lush123')
- Log(log_level='Debug', log_message='Connecting to noble device LVS-Lush123')
- Log(log_level='Debug', log_message='Found service 5330000100234bd4bbd5a6920e4c5653 for device LVS-Lush123')
- Log(log_level='Debug', log_message='Setting up endpoint Tx 53300002-0023-4bd4-bbd5-a6920e4c5653 for device LVS-Lush123')
- Log(log_level='Debug', log_message='Setting up endpoint Rx 53300003-0023-4bd4-bbd5-a6920e4c5653 for device LVS-Lush123')
- Log(log_level='Debug', log_message='Initializing noble device LVS-Lush123')
- Log(log_level='Debug', log_message='Subscripting to updates on noble device LVS-Lush123')
- Log(log_level='Debug', log_message='Device LVS-Lush123 waiting for initialization return')
- Log(log_level='Debug', log_message='Lovense Device LVS-Lush123 got initialization return S:123:E92C17AE7A70;')
- Log(log_level='Info', log_message='DeviceManager: Device Added: Lovense Lush v123 (0)')
- DeviceAdded(device_name='Lovense Lush v123', device_index=0, device_messages={'VibrateCmd': {'FeatureCount': 1}, 'SingleMotorVibrateCmd': {}, 'StopDeviceCmd': {}})
- {'VibrateCmd': {'FeatureCount': 1}, 'SingleMotorVibrateCmd': {}, 'StopDeviceCmd': {}}
- Device Added: Lovense Lush v123
- [{"VibrateCmd": {"DeviceIndex": 0, "Speeds": [{"Index": 0, "Speed": 0.1}], "Id": 5}}]
- Ok()
- [{"VibrateCmd": {"DeviceIndex": 0, "Speeds": [{"Index": 0, "Speed": 0}], "Id": 6}}]
- Ok()
- Log(log_level='Info', log_message='DeviceManager: Device Removed: Lovense Lush v123 (0)')
- DeviceRemoved(device_index=0)
- Task exception was never retrieved
- future: <Task finished coro=<ButtplugClientWebsocketConnector._consumer_handler() done, defined at /usr/local/lib/python3.7/site-packages/buttplug-0.1.0-py3.7.egg/buttplug/client/websocket_connector.py:24> exception=AttributeError("'dict' object has no attribute 'remove'") created at /usr/local/lib/python3.7/asyncio/tasks.py:351>
- source_traceback: Object created at (most recent call last):
- File "example.py", line 177, in <module>
- asyncio.run(main(), debug=True)
- File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
- return loop.run_until_complete(main)
- File "/usr/local/lib/python3.7/asyncio/base_events.py", line 566, in run_until_complete
- self.run_forever()
- File "/usr/local/lib/python3.7/asyncio/base_events.py", line 534, in run_forever
- self._run_once()
- File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1763, in _run_once
- handle._run()
- File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
- self._context.run(self._callback, *self._args)
- File "example.py", line 131, in main
- await client.connect(connector)
- File "/usr/local/lib/python3.7/site-packages/buttplug-0.1.0-py3.7.egg/buttplug/client/client.py", line 85, in connect
- await self.connector.connect()
- File "/usr/local/lib/python3.7/site-packages/buttplug-0.1.0-py3.7.egg/buttplug/client/websocket_connector.py", line 22, in connect
- asyncio.create_task(self._consumer_handler())
- File "/usr/local/lib/python3.7/asyncio/tasks.py", line 351, in create_task
- return loop.create_task(coro)
- Traceback (most recent call last):
- File "/usr/local/lib/python3.7/site-packages/buttplug-0.1.0-py3.7.egg/buttplug/client/websocket_connector.py", line 37, in _consumer_handler
- await self._notify_observers(bp_msg)
- File "/usr/local/lib/python3.7/site-packages/buttplug-0.1.0-py3.7.egg/buttplug/client/connector.py", line 52, in _notify_observers
- await obs._handle_message(msg)
- File "/usr/local/lib/python3.7/site-packages/buttplug-0.1.0-py3.7.egg/buttplug/client/client.py", line 176, in _handle_message
- await self._parse_message(msg)
- File "/usr/local/lib/python3.7/site-packages/buttplug-0.1.0-py3.7.egg/buttplug/client/client.py", line 144, in _parse_message
- self.devices.remove(dr.device_index)
- AttributeError: 'dict' object has no attribute 'remove'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement