Closed talesam closed 2 years ago
I tested it on another device:
[talesam@neit Instagram]$ python start.py --config-file interacao.json
##########################################################
# #
# _____ _ #
# |_ _| (_) #
# | | _ __ ___ ___ _ __ ___ _ __ _ __ _ ___ #
# | | | '_ \/ __|/ _ \| '_ ` _ \| '_ \| |/ _` |/ __| #
# _| |_| | | \__ \ (_) | | | | | | | | | | (_| | (__ #
# |_____|_| |_|___/\___/|_| |_| |_|_| |_|_|\__,_|\___| #
# #
##########################################################
Engine v3.7.28
Hi! Since of v3.1.0 all core features in this project are free to use.
You may want to get more fine grained control over the bot via these features:
- Filtering - skip unwanted accounts by various parameters
- Scrapping - technique that makes interactions significantly safer and faster
- Warmup - interact with your feed and Explore several minutes before session to behave more like a human
- Working hours - the script will wait till specified hours before each session
- Removing mass followers - automate "cleaning" your account
Activate by supporting our small team: https://insomniac-bot.com/activate/
Using insomniac session-manager without extra-features
[12/29 19:22:15] Checking your Internet speed to adjust the script speed, please wait for a minute...
[12/29 19:22:15] (use --no-speed-check to skip this check)
[12/29 19:22:39] Download speed 25.37 Mbit/s, upload speed 10.85 Mbit/s
[12/29 19:22:39] Sleep range will be from 1.46 to 3.92 seconds
Looking for ADB devices...
Connected devices via adb: 1. That's ok.
Unknown input method com.alexal1.adbkeyboard/.AdbIME cannot be selected for user #0
[12/29 19:22:40] Cannot setup ADB Keyboard. Don't worry! Fallback to text copy-pasting will be used.
[12/29 19:22:40] Using uiautomator v2
[I 211229 19:22:40 init:155] uiautomator2 version: 2.7.3
[12/29 19:22:41] Instagram version: 195.0.0.31.123
[12/29 19:22:42] Sleep time (min) before repeat: 169.71
[12/29 19:22:42] Executing "interact" action.
[12/29 19:22:42] Interaction user amount 8
[12/29 19:22:42] interaction-users-amount parameter is equal or higher then the users-interact list. Choosing all list for interaction.
[12/29 19:22:42] Successful interactions limit per source: 7
[12/29 19:22:42] Interactions limit per source: 140
[12/29 19:22:42] Follow limit: 2
[12/29 19:22:42] Total likes limit: 57
[12/29 19:22:42] Total interactions limit: 118
[12/29 19:22:42] Total successful-interactions limit: 56
[12/29 19:22:42] Total follow limit: 16
[12/29 19:22:42] Total story-watches limit: 57
[12/29 19:22:42] Total comments limit: 50
[12/29 19:22:42] Total get-profile limit: 360
Traceback (most recent call last):
File "/home/talesam/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 1616, in __getattr__
return getattr(self._default_session, attr)
File "/home/talesam/.local/lib/python3.10/site-packages/uiautomator2/session.py", line 642, in __getattr__
raise AttributeError(f"Session object has no attribute '{key}'")
AttributeError: Session object has no attribute '_is_alive'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/talesam/.local/lib/python3.10/site-packages/insomniac/session.py", line 313, in run
self.prepare_session_state(args, device_wrapper, app_version, save_profile_info=True)
File "/home/talesam/.local/lib/python3.10/site-packages/insomniac/session.py", line 255, in prepare_session_state
device.wake_up()
File "/home/talesam/.local/lib/python3.10/site-packages/insomniac/device_facade.py", line 217, in wake_up
while not self.is_alive() and attempts < 5:
File "/home/talesam/.local/lib/python3.10/site-packages/insomniac/device_facade.py", line 212, in is_alive
return self.deviceV2._is_alive()
File "/home/talesam/.local/lib/python3.10/site-packages/uiautomator2/__init__.py", line 1618, in __getattr__
raise AttributeError(
AttributeError: 'Session or Device' object has no attribute '_is_alive'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/talesam/Servidor/Instagram/start.py", line 4, in <module>
insomniac.run(activation_code)
File "/home/talesam/.local/lib/python3.10/site-packages/insomniac/__init__.py", line 33, in run
insomniac_session.run()
File "/home/talesam/.local/lib/python3.10/site-packages/insomniac/session.py", line 345, in run
print(COLOR_FAIL + describe_exception(ex) + COLOR_ENDC)
File "/home/talesam/.local/lib/python3.10/site-packages/insomniac/utils.py", line 370, in describe_exception
trace = ''.join(traceback.format_exception(etype=type(ex), value=ex, tb=ex.__traceback__)) if with_stacktrace else ''
TypeError: format_exception() got an unexpected keyword argument 'etype'
Following, uiautomator2 have changed their api on Python 3.10 making those methods private https://github.com/openatx/uiautomator2/blob/a6ebc2446a8babb4ce14dc62cfdb5590ea95c709/uiautomator2/__init__.py#L1605
now we have to change the way we check https://github.com/alexal1/Insomniac/blob/1d5f0e871fdd9b1cdc7f3c3ac3929f88bcc69e1b/insomniac/device_facade.py#L208-L212 I'm working on it
Maintainers fix is in here https://github.com/alexal1/Insomniac/pull/415
Fixed in v3.8.2
First I got an error asking to install an older version of instagram, I did that and now this error is showing:
File being used is this: