alexal1 / Insomniac

Instagram bot for automated Instagram interaction using Android device via ADB
https://insomniac-bot.com
MIT License
675 stars 159 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a #435

Open marcosalvadori opened 2 years ago

marcosalvadori commented 2 years ago
Exception in thread Thread-103 (_readerthread):
Traceback (most recent call last):
  File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1494, in _readerthread
    buffer.append(fh.read())
  File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 11: invalid start byte

@alexal1 i tried the issues for other similar problem, but cannot solve. How can i solve this?

alexal1 commented 2 years ago

Something strange. Try to update uiautomator, uiautomator2 and sourcedefender.

marcosalvadori commented 2 years ago

Many thanks @alexal1 semms it solved. The problem remain but the bot continue -------- START: 2022-06-03 13:17:54.882188 -------- [06/03 13:17:54] Open Instagram app with network check Exception in thread Thread-101: Traceback (most recent call last): File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner self.run() File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\threading.py", line 892, in run self._target(*self._args, **self._kwargs) File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1475, in _readerthread buffer.append(fh.read()) File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 11: invalid start byte [06/03 13:18:00] Didn't work :( [06/03 13:18:00] Open Instagram app [06/03 13:18:04] PROFILE tab is not opened, will try again. [06/03 13:18:04] Sleep for 2.78 seconds [06/03 13:18:08] Sleep for 2.59 seconds

drogba72 commented 1 year ago

Hi, I have the same error. Do you find how fix it please ?

File "C:\Users\Chapeau2paille\AppData\Local\Programs\Python\Python310\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 82: invalid start byte [08/29 17:20:13] Instagram is not yet opened, waiting...

Regards

alexal1 commented 1 year ago

Try to reinstall all packages.

pip uninstall -y -r <(pip freeze)
pip cache purge
pip install -r requirements.txt
drogba72 commented 1 year ago

Unfortunately, no changes :/ But thanks to reply @alexal1

For more details, all the log :

`C:\Users\Chapeau2paille\Desktop\Instagram\insomniac>python start.py --interact @brunomaltor-followers amazingtrips-recent-likers --interactions-count 20-30 --likes-count 1-2 --follow-percentage 80 --repeat 160-220

Engine v3.8.3

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:

Using insomniac session-manager without extra-features [08/29 18:06:04] Checking your Internet speed to adjust the script speed, please wait for a minute... [08/29 18:06:04] (use --no-speed-check to skip this check) [08/29 18:06:27] Download speed 20.53 Mbit/s, upload speed 6.37 Mbit/s [08/29 18:07:45] Sleep range will be from 1.77 to 4.54 seconds Looking for ADB devices... Connected devices via adb: 1. That's ok. 'grep' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. [08/29 18:07:45] Installing ADB Keyboard to enable typewriting... [08/29 18:07:51] Using uiautomator v2 [08/29 18:07:51] Instagram version: 249.0.0.20.105

IG version (249.0.0.20.105) is newer than latest supported (195.0.0.31.123). Please uninstall IG and download recommended apk from here: https://insomniac-bot.com/get_latest_supported_ig_apk/ Press ENTER to continue anyway...

[08/29 18:07:56] Sleep time (min) before repeat: 215.93 [08/29 18:07:56] Executing "interact" action. [08/29 18:07:56] You are using a deprecated limit. The limit new name is called 'successful_interactions_limit_per_source'. Using interactions_count this time. Please switch to that name on next runs. [08/29 18:07:56] Interactions count: 24 [08/29 18:07:56] Successful interactions limit per source: 70 [08/29 18:07:56] Interactions limit per source: 140 [08/29 18:07:56] Total likes limit: 1000 [08/29 18:07:56] Total comments limit: 50 Exception in thread Thread-97 (_readerthread): Traceback (most recent call last): File "C:\Users\Chapeau2paille\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\Chapeau2paille\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\Users\Chapeau2paille\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1497, in _readerthread buffer.append(fh.read()) File "C:\Users\Chapeau2paille\AppData\Local\Programs\Python\Python310\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 82: invalid start byte [08/29 18:07:56] Open Instagram app with network check [08/29 18:08:00] Close Instagram app com.instagram.android`

drogba72 commented 1 year ago

Update for this issue :