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

Help to solve mistake 'utf-8' codec can't decode byte 0xfb in position 99: invalid start byte #114

Closed
AinErika opened this issue Jan 12, 2025 · 2 comments
Labels
False Positive 🦟 ложно-положительное срабатывание, и ошибки не должно быть, а линтер заругался question Further information is requested
Milestone

Comments

@AinErika
Copy link

AinErika commented Jan 12, 2025

What would you like to share?

record.mp4

`pylint...................................................................Passed
nbqa-pydocstyle..........................................................Failed

  • hook id: nbqa-pydocstyle
  • exit code: 1

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\USER.cache\pre-commit\repoijur5o9i\py_env-python3.12\Scripts\nbqa.EXE_main
.py", line 7, in
File "C:\Users\USER.cache\pre-commit\repoijur5o9i\py_env-python3.12\Lib\site-packages\nbqa_main
.py", line 880, in main
return main(cli_args, configs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER.cache\pre-commit\repoijur5o9i\py_env-python3.12\Lib\site-packages\nbqa_main
.py", line 762, in _main
output, output_code, mutated = run_command(
^^^^^^^^^^^^^
File "C:\Users\USER.cache\pre-commit\repoijur5o9i\py_env-python3.12\Lib\site-packages\nbqa_main
.py", line 385, in _run_command
out = output.stdout.decode()
^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfb in position 99: invalid start byte

решение с ошибкой

out = output.stdout.utf-8.ignore
`

@AinErika AinErika added the question Further information is requested label Jan 12, 2025
@ruslansenatorov
Copy link
Contributor

ruslansenatorov commented Jan 12, 2025

out = output.stdout.decode('utf-8','ignore')

@ruslansenatorov ruslansenatorov added this to the Anna milestone Jan 12, 2025
@ruslansenatorov ruslansenatorov added the False Positive 🦟 ложно-положительное срабатывание, и ошибки не должно быть, а линтер заругался label Jan 12, 2025
@AinErika
Copy link
Author

AinErika commented Jan 12, 2025

out = output.stdout.decode('utf-8','ignore')
it's work.

@AinErika AinErika reopened this Jan 12, 2025
@SENATOROVAI SENATOROVAI locked as resolved and limited conversation to collaborators Jan 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
False Positive 🦟 ложно-положительное срабатывание, и ошибки не должно быть, а линтер заругался question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants