Unicode Error on download.
See original GitHub issueBug report
Checklist
- I have searched for similar bugs in the issues.
- I will add the bug label to this issue.
Version Info
- Ytmdl version:
2022.03.16
- Youtube-dl version:
2021.12.17
How Ytmdl was installed?
pip install ytmdl
pip install simber downloader-cli --upgrade
Console Log
d:\music\kpop\info>ytmdl https://music.youtube.com/playlist?list=PLCd48b9AA1uwJRhoCW-5vbXTiNXm-SAYJ --format mp3
==> Youtube playlist passed...extracting!
==> Playlist: kpop-p
==> 127 songs found
==> Searching to see if already present in C:\Users\aqilc\Music
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\aqilc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts\ytmdl.exe\__main__.py", line 7, in <module>
File "C:\Users\aqilc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ytmdl\main.py", line 582, in entry
extract_data()
File "C:\Users\aqilc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ytmdl\main.py", line 575, in extract_data
main(args)
File "C:\Users\aqilc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ytmdl\main.py", line 282, in main
path = download(link, yt_title, args)
File "C:\Users\aqilc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\ytmdl\core.py", line 109, in download
logger.info('Downloading {}{}{} in {}{}kbps{}'.format(
File "C:\Users\aqilc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\simber\logger.py", line 366, in info
self._write(message, args, LEVEL_NUMBER)
File "C:\Users\aqilc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\simber\logger.py", line 203, in _write
stream.write(
File "C:\Users\aqilc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\simber\stream.py", line 138, in write
print(_formatted_out, **params)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 53-55: character maps to <undefined>
Description
This was my first time using the downloader, I’m on Windows 10 21H2 and IDK this was the first thing that happened.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Python: unicode error when downloading a pdf from an url in a ...
I am collecting urls from a website in a list. My next step is to go through the urls and download them if...
Read more >Unicode Error after downloading a playlist · Issue #446 - GitHub
Unicode Error after downloading a playlist #446. Open. 6 of 9 tasks ... Download entire playlist from YouTube and convert it to MP3....
Read more >Unicode Error in DOWNLOAD function module
Hi ABAPpers,. I am getting the unicode error in using. CALL FUNCTION 'DOWNLOAD'. EXPORTING. bin_filesize = v_bytecount. filename = v_download_filename.
Read more >How to fix the non-Unicode characters error when uploading a ...
How to fix the non-Unicode characters error when uploading a file ... Navigate to File>Download As>Comma-Separated Values to save the file to your...
Read more >How to overcome Unicode error? - DQ Courses
opened_file = open('C:\Users\ctpat\Downloads\AppleStore.csv', ... After providing the file path, i encountered with Unicode error, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@orkeilius Thanks for investigating. This issue is related to simber. However, the video you shared and the issue you are getting is probably because of the charcter
~
in the video.I think we are not removing it before creating the song file right now.
A new release of
simber
is now published that should fix the above issue. I am closing this issue for now. In case this happens again, I can reopen this issue.