[go: up one dir, main page]

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

'charmap' codec can't encode characters in position 824-826: character maps to <undefined> #571

Open
ShinyJustyZ opened this issue Apr 22, 2024 · 1 comment
Labels
question Further information is requested

Comments

@ShinyJustyZ
Copy link

I want to download my kernel output using kaggle kernels output ********/******** -p ./output/. However, it ends up downloading my audio dataset and once it presumably goes to the other files, it errors out with 'charmap' codec can't encode characters in position 824-826: character maps to <undefined>. It looks like this issue was fixed before, but I'm still getting it. In kaggle_api_extended.py, I edited line 2385 to:

with open(script_path, 'w', encoding="utf-8", errors='ignore') as f:
            f.write(blob['source'])

This did not fix it. Can anyone help me? Downloading from a browser also errors out.

@stevemessick
Copy link
Contributor

If you have time for an experiment, try changing the file mode from 'w' to 'wb'. Check if that introduces other errors in text files. If all is good I'll patch the file. Or, if you know of a publicly-accessible example that reproduces this problem, just point me to it.

BTW, if you update to the latest release, the new line number is 2495.

@stevemessick stevemessick added good first issue Good for newcomers question Further information is requested and removed good first issue Good for newcomers labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants