question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

utf-8 issue in Python.

See original GitHub issue

Describe the bug utf-8 issue on almost every command

PS C:\Users\Moi> electric install firefox
SuperCached [ Mozilla Firefox ]
██████████████████████████████  56.6 / 56.6 MB
Verified Installer Hash
Installing Mozilla Firefox
Traceback (most recent call last):
  File "electric.py", line 2386, in <module>
  File "click\core.py", line 829, in __call__
  File "click\core.py", line 782, in main
  File "click\core.py", line 1259, in invoke
  File "click\core.py", line 1066, in invoke
  File "click\core.py", line 610, in invoke
  File "click\decorators.py", line 21, in new_func
  File "electric.py", line 467, in install
  File "utils.py", line 1553, in get_pid
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 57: invalid start byte
[2736] Failed to execute script electric
PS C:\Users\Moi>

To Reproduce Any command triggers the bug.

Expected behavior No error.

Desktop (please complete the following information):

  • OS: windows 10
  • Version 1.0.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Salamandarcommented, Jan 7, 2022

@XtremeDevX I see you deleted my comment. I was just stating the obvious 😕

0reactions
github-actions[bot]commented, Mar 11, 2022

Stale issue message

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve python 'utf-8' error? - Stack Overflow
Try calling read_csv with encoding='latin1' , encoding='iso-8859-1' or encoding='cp1252' ; these the various encodings found on Windows. e.g
Read more >
PEP 686 – Make UTF-8 mode default
UTF-8 becomes de facto standard text encoding. ... Changing the default encoding to UTF-8 makes it easier for Python to interoperate with them....
Read more >
UTF- 8 Unicode Error | Data Science and Machine Learning
UTF- 8 Unicode Error ... Is there any code in Python to read UTF-8 character encoding? Or I must make the changes when...
Read more >
utf-8 codec can't decode byte python - You.com
shows Python3 is trying to decode the bytes as utf-8 . Since there is an error, the file apparently does not contain utf-8...
Read more >
How to Solve File Encoding Error in Python - InsideAIML
UnicodeDecodeError: Error 'utf-8' codec can't decode byte 0x92 in position 4: invalid start byte ... Many times, when you load your datasets you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found