Completely free and open-source human-like Instagram bot. Powered by UIAutomator2 and compatible with basically any Android device 5.0+ that can run Instagram - real or emulated.
What happened:
i run this bot in windows server 2022 and my android device is nox player android 9.
connect adb with bridge network and ip address.
also instagram version is 26.1.0.16.117 , so i dont think that forget any configuration or misconfiguration.
What you expected to happen:
in situation that connect with USB cable every thing is ok, but when connect to emulator bot crashes
How to reproduce it (as minimally and precisely as possible):
please fix this bug. thanks alot. :)
Anything else we need to know?:
Environment:
GramAddict version: latest
Device Model/Emulator Type: nox player version 7.0.5.8
Android Version:9
Instagram Version:26.1.0.16.117
Discord Ticket ID: *(if submitting crash log)
Relevant Logs:
[W 230911 11:08:19 init:218] [pid:6136] atx-agent has something wrong, auto recovering
[I 230911 11:08:19 init:357] [pid:6136] [194.168.1.88] wait-for-device, time left(3.0s)
[I 230911 11:08:20 init:357] [pid:6136] [194.168.1.88] wait-for-device, time left(2.0s)
[09/11 11:08:21] ERROR | Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\decorators.py", line 31, in wrapper
func(*args, *kwargs)
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\plugins\interact_blogger_followers.py", line 109, in job
self.handle_blogger(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\plugins\interact_blogger_followers.py", line 185, in handle_blogger
handle_followers(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 677, in handle_followers
iterate_over_followers(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 773, in iterate_over_followers
if not interact(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 66, in interact
) = interaction(device, username=username, can_follow=can_follow)
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\interaction.py", line 287, in interact_with_user
like_succeed = opened_post_view.like_video()
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\views.py", line 1335, in like_video
full_screen, obj = self._is_video_in_fullscreen()
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\views.py", line 1305, in _is_video_in_fullscreen
return video_container.exists(), video_container
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\device_facade.py", line 571, in exists
hasattr(self.viewV2, "count")
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2_selector.py", line 433, in count
return self.jsonrpc.count(self.selector)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init.py", line 479, in call__
return self.server._jsonrpc_retry_call(self.method, params,
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 486, in _jsonrpc_retry_call
return self._jsonrpc_call(args, kwargs)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 513, in _jsonrpc_call
res = self.http.post("/jsonrpc/0",
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\requests\sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, kwargs)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init.py", line 223, in request
self.client._prepare_atx_agent()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 314, in _prepare_atx_agent
_d = self._wait_for_device()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 367, in _wait_for_device
adb.wait_for(self._serial, timeout=1)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 218, in wait_for
c.check_okay()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 132, in check_okay
data = self.read_string(4)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 108, in read_string
data = self.read(n).decode()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 88, in read
return self._read_fully(n)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 96, in _read_fully
chunk = self.conn.recv(t)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
[09/11 11:08:21] CRITICAL | 'ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
' -> This kind of exception will stop the bot (no restart).
daemon not running; starting now at tcp:5038
daemon started successfully
[W 230911 11:08:26 init:218] [pid:6136] atx-agent has something wrong, auto recovering
[I 230911 11:08:26 init:357] [pid:6136] [194.168.1.88] wait-for-device, time left(3.0s)
[I 230911 11:08:27 init:357] [pid:6136] [194.168.1.88] wait-for-device, time left(2.0s)
[I 230911 11:08:28 init:357] [pid:6136] [194.168.1.88] wait-for-device, time left(1.0s)
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\decorators.py", line 31, in wrapper
func(*args, *kwargs)
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\plugins\interact_blogger_followers.py", line 109, in job
self.handle_blogger(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\plugins\interact_blogger_followers.py", line 185, in handle_blogger
handle_followers(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 677, in handle_followers
iterate_over_followers(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 773, in iterate_over_followers
if not interact(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 66, in interact
) = interaction(device, username=username, can_follow=can_follow)
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\interaction.py", line 287, in interact_with_user
like_succeed = opened_post_view.like_video()
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\views.py", line 1335, in like_video
full_screen, obj = self._is_video_in_fullscreen()
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\views.py", line 1305, in _is_video_in_fullscreen
return video_container.exists(), video_container
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\device_facade.py", line 571, in exists
hasattr(self.viewV2, "count")
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2_selector.py", line 433, in count
return self.jsonrpc.count(self.selector)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init.py", line 479, in call__
return self.server._jsonrpc_retry_call(self.method, params,
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 486, in _jsonrpc_retry_call
return self._jsonrpc_call(args, kwargs)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 513, in _jsonrpc_call
res = self.http.post("/jsonrpc/0",
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\requests\sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, kwargs)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init.py", line 223, in request
self.client._prepare_atx_agent()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 314, in _prepare_atx_agent
_d = self._wait_for_device()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 367, in _wait_for_device
adb.wait_for(self._serial, timeout=1)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 218, in wait_for
c.check_okay()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 132, in check_okay
data = self.read_string(4)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 108, in read_string
data = self.read(n).decode()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 88, in read
return self._read_fully(n)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 96, in _read_fully
chunk = self.conn.recv(t)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\bot-master\run.py", line 3, in
GramAddict.run()
File "C:\Users\Administrator\Desktop\bot-master\GramAddict__init.py", line 9, in run
start_bot(kwargs)
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\bot_flow.py", line 321, in start_bot
configs.actions[plugin].run(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\plugins\interact_blogger_followers.py", line 126, in run
job()
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\decorators.py", line 94, in wrapper
f"List of running apps: {', '.join(device.deviceV2.app_list_running())}"
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 1501, in app_listrunning
output, = self.shell(['pm', 'list', 'packages'])
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 432, in shell
ret = self.http.post("/shell", data=data, timeout=timeout+10)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\requests\sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, kwargs)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init.py", line 223, in request
self.client._prepare_atx_agent()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2\init__.py", line 316, in _prepare_atx_agent
raise RuntimeError("USB device %s is offline" % self._serial)
RuntimeError: USB device 194.168.1.88 is offline
What happened: i run this bot in windows server 2022 and my android device is nox player android 9. connect adb with bridge network and ip address. also instagram version is 26.1.0.16.117 , so i dont think that forget any configuration or misconfiguration.
What you expected to happen: in situation that connect with USB cable every thing is ok, but when connect to emulator bot crashes How to reproduce it (as minimally and precisely as possible): please fix this bug. thanks alot. :) Anything else we need to know?:
Environment:
Relevant Logs: [W 230911 11:08:19 init:218] [pid:6136] atx-agent has something wrong, auto recovering [I 230911 11:08:19 init:357] [pid:6136] [194.168.1.88] wait-for-device, time left(3.0s) [I 230911 11:08:20 init:357] [pid:6136] [194.168.1.88] wait-for-device, time left(2.0s) [09/11 11:08:21] ERROR | Traceback (most recent call last): File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\decorators.py", line 31, in wrapper func(*args, *kwargs) File "C:\Users\Administrator\Desktop\bot-master\GramAddict\plugins\interact_blogger_followers.py", line 109, in job self.handle_blogger( File "C:\Users\Administrator\Desktop\bot-master\GramAddict\plugins\interact_blogger_followers.py", line 185, in handle_blogger handle_followers( File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 677, in handle_followers iterate_over_followers( File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 773, in iterate_over_followers if not interact( File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\handle_sources.py", line 66, in interact ) = interaction(device, username=username, can_follow=can_follow) File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\interaction.py", line 287, in interact_with_user like_succeed = opened_post_view.like_video() File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\views.py", line 1335, in like_video full_screen, obj = self._is_video_in_fullscreen() File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\views.py", line 1305, in _is_video_in_fullscreen return video_container.exists(), video_container File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\device_facade.py", line 571, in exists hasattr(self.viewV2, "count") File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2_selector.py", line 433, in count return self.jsonrpc.count(self.selector) File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init.py", line 479, in call__ return self.server._jsonrpc_retry_call(self.method, params, File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 486, in _jsonrpc_retry_call return self._jsonrpc_call(args, kwargs) File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 513, in _jsonrpc_call res = self.http.post("/jsonrpc/0", File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\requests\sessions.py", line 635, in post return self.request("POST", url, data=data, json=json, kwargs) File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init.py", line 223, in request self.client._prepare_atx_agent() File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 314, in _prepare_atx_agent _d = self._wait_for_device() File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 367, in _wait_for_device adb.wait_for(self._serial, timeout=1) File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 218, in wait_for c.check_okay() File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 132, in check_okay data = self.read_string(4) File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 108, in read_string data = self.read(n).decode() File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 88, in read return self._read_fully(n) File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\adbutils_adb.py", line 96, in _read_fully chunk = self.conn.recv(t) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
[09/11 11:08:21] CRITICAL | 'ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host ' -> This kind of exception will stop the bot (no restart).
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\Administrator\Desktop\bot-master\run.py", line 3, in
GramAddict.run()
File "C:\Users\Administrator\Desktop\bot-master\GramAddict__init.py", line 9, in run
start_bot(kwargs)
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\bot_flow.py", line 321, in start_bot
configs.actions[plugin].run(
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\plugins\interact_blogger_followers.py", line 126, in run
job()
File "C:\Users\Administrator\Desktop\bot-master\GramAddict\core\decorators.py", line 94, in wrapper
f"List of running apps: {', '.join(device.deviceV2.app_list_running())}"
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 1501, in app_listrunning
output, = self.shell(['pm', 'list', 'packages'])
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init__.py", line 432, in shell
ret = self.http.post("/shell", data=data, timeout=timeout+10)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\requests\sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, kwargs)
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2__init.py", line 223, in request
self.client._prepare_atx_agent()
File "C:\Users\Administrator\Desktop\bot-master\venv\lib\site-packages\uiautomator2\init__.py", line 316, in _prepare_atx_agent
raise RuntimeError("USB device %s is offline" % self._serial)
RuntimeError: USB device 194.168.1.88 is offline