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

Python UnicodeDecodeError #147

Open
ramoneb opened this issue Sep 26, 2023 · 0 comments
Open

Python UnicodeDecodeError #147

ramoneb opened this issue Sep 26, 2023 · 0 comments

Comments

@ramoneb
Copy link

ramoneb commented Sep 26, 2023

When I tried to cook for the first time I got this error:

# Downloading source from git://github.com/meta-qt5/meta-qt5 Traceback (most recent call last): File "/usr/local/bin/cooker", line 10, in <module> sys.exit(main()) File "/usr/local/lib/python3.7/dist-packages/cooker/cooker.py", line 1034, in main CookerCall() File "/usr/local/lib/python3.7/dist-packages/cooker/cooker.py", line 966, in __init__ self.clargs.func() # call function of selected command File "/usr/local/lib/python3.7/dist-packages/cooker/cooker.py", line 993, in cook self.commands.update() File "/usr/local/lib/python3.7/dist-packages/cooker/cooker.py", line 418, in update self.update_source(source) File "/usr/local/lib/python3.7/dist-packages/cooker/cooker.py", line 454, in update_source self.update_directory_initial(method, local_dir, remote_dir, branch, rev) File "/usr/local/lib/python3.7/dist-packages/cooker/cooker.py", line 482, in update_directory_initial fatal_error('Unable to clone {}: {}'.format(remote_dir, complete.stderr.decode('ascii'))) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 98: ordinal not in range(128)
my configuration is:
uname -a Linux dev3 4.19.0-25-amd64 #1 SMP Debian 4.19.289-2 (2023-08-08) x86_64 GNU/Linux

I fix it by changing:
/usr/local/lib/python3.7/dist-packages/cooker/cooker.py
482: fatal_error('Unable to clone {}: {}'.format(remote_dir, complete.stderr.decode('ascii')))
to
482: fatal_error('Unable to clone {}: {}'.format(remote_dir, complete.stderr..decode('utf-8', errors='replace')))

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

1 participant