Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcosalvadori opened this issue Jun 3, 2022 · 6 comments
Open

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

marcosalvadori opened this issue Jun 3, 2022 · 6 comments

Comments

@marcosalvadori
Copy link

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?

@marcosalvadori marcosalvadori changed the title UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 11: invalid start byte UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a Jun 3, 2022
@alexal1
Copy link
Owner

alexal1 commented Jun 3, 2022

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

@marcosalvadori
Copy link
Author

marcosalvadori commented Jun 3, 2022

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
Copy link

drogba72 commented Aug 29, 2022

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
Copy link
Owner

alexal1 commented Aug 29, 2022

Try to reinstall all packages.

pip uninstall -y -r <(pip freeze)
pip cache purge
pip install -r requirements.txt

@drogba72
Copy link

drogba72 commented Aug 29, 2022

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:
- 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
[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
Copy link

Update for this issue :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants