mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-26 18:15:54 +03:00
[GH-ISSUE #445] Error - module 'uiautomator2' has no attribute 'JSONRPCError' --- ubuntu #390
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#390
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @giobbepelle on GitHub (Oct 14, 2022).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/445
Why?
Error - module 'uiautomator2' has no attribute 'JSONRPCError'
Traceback (most recent call last):
File "/home/giobbe/.local/lib/python3.10/site-packages/insomniac/device_facade.py", line 537, in scroll
self.viewV2.scroll.toEnd(max_swipes=1)
File "/home/giobbe/.local/lib/python3.10/site-packages/uiautomator2/session.py", line 1196, in call
return jsonrpc.scrollToEnd(selector, self.vertical,
File "/home/giobbe/.local/lib/python3.10/site-packages/uiautomator2/init.py", line 546, in call
return self.server.jsonrpc_retry_call(self.method, params,
File "/home/giobbe/.local/lib/python3.10/site-packages/uiautomator2/init.py", line 553, in jsonrpc_retry_call
return self.jsonrpc_call(*args, **kwargs)
File "/home/giobbe/.local/lib/python3.10/site-packages/uiautomator2/init.py", line 645, in jsonrpc_call
raise err
uiautomator2.exceptions.UiObjectNotFoundError: -32001 Jsonrpc error: <android.support.test.uiautomator.UiObjectNotFoundException> data: UiSelector[CLASS=android.widget.ListView, RESOURCE_ID=android:id/list], method: scrollToEnd
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/giobbe/.local/lib/python3.10/site-packages/insomniac/session.py", line 361, in run
action_runner.run(device_wrapper,
File "/home/giobbe/.local/lib/python3.10/site-packages/insomniac/action_runners/interact/init.py", line 203, in run
job()
File "/home/giobbe/.local/lib/python3.10/site-packages/insomniac/safely_runner.py", line 24, in wrapper
return func(*args, **kwargs)
File "/home/giobbe/.local/lib/python3.10/site-packages/insomniac/action_runners/interact/init.py", line 151, in job
handle_blogger(device_wrapper.get(),
File "/home/giobbe/.local/lib/python3.10/site-packages/insomniac/action_runners/interact/action_handle_blogger.py", line 234, in handle_blogger
followers_following_list_view.iterate_over_followers(is_myself, interact_with_follower, pre_conditions)
File "/home/giobbe/.local/lib/python3.10/site-packages/insomniac/views.py", line 1502, in iterate_over_followers
list_view.scroll(DeviceFacade.Direction.BOTTOM)
File "/home/giobbe/.local/lib/python3.10/site-packages/insomniac/device_facade.py", line 538, in scroll
except uiautomator2.JSONRPCError as e:
AttributeError: module 'uiautomator2' has no attribute 'JSONRPCError'
@giobbepelle commented on GitHub (Nov 4, 2022):
Alone I controll the problem!!
@Louis-de-Bontin commented on GitHub (Mar 24, 2023):
How ?