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

Syfy unable to rename file UnicodeDecodeError #2388 #2389

Closed
ghost opened this issue Feb 15, 2014 · 3 comments
Closed

Syfy unable to rename file UnicodeDecodeError #2388 #2389

ghost opened this issue Feb 15, 2014 · 3 comments
Assignees

Comments

@ghost
Copy link

@ghost ghost commented Feb 15, 2014

#2388

__main__.py http://www.syfy.com/videos/Robot%20Combat%20League/Behind%20the%20Scenes/vid:2631458 --verbose

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.syfy.com/videos/Robot%20Combat%20League/Behind%20the%20Scenes/vid:2631458', '--verbose']
[debug] Encodings: locale 'cp1250', fs 'mbcs', out 'cp852', pref: 'cp1250'
[debug] youtube-dl version 2014.02.13
[debug] Python version 2.7.6 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[Syfy] 2631458: Downloading webpage
[ThePlatform] NmqMrGnXvmO1: Downloading config
[ThePlatform] NmqMrGnXvmO1: Downloading XML
[ThePlatform] NmqMrGnXvmO1: Downloading webpage
[download] Downloading f4m manifest
[download] Destination: George Lucas has Advice for his Daughter-NmqMrGnXvmO1.flv
[download] 100% of 19.22MiB in 00:11
Traceback (most recent call last):
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\__main__.py", line 18, in <module>
    youtube_dl.main()
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\__init__.py", line 800, in main
    _real_main(argv)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\__init__.py", line 790, in _real_main
    retcode = ydl.download(all_urls)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\YoutubeDL.py", line 982, in download
    self.extract_info(url)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\YoutubeDL.py", line 510, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\YoutubeDL.py", line 546, in process_ie_result
    extra_info=extra_info)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\YoutubeDL.py", line 510, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\YoutubeDL.py", line 539, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\YoutubeDL.py", line 763, in process_video_result
    self.process_info(new_info)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\YoutubeDL.py", line 953, in process_info
    success = dl(filename, info_dict)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\YoutubeDL.py", line 929, in dl
    return fd.download(name, info)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\downloader\common.py", line 290, in download
    return self.real_download(filename, info_dict)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\downloader\f4m.py", line 294, in real_download
    self.try_rename(tmpfilename, filename)
  File "C:\Users\pulpe\Documents\GitHub\youtube-dl\youtube_dl\downloader\common.py", line 176, in try_rename
    self.report_error(u'unable to rename file: %s' % str(err))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 21: ordinal not in range(128)

Thanks for help.

@ghost ghost mentioned this issue Feb 15, 2014
@jaimeMF jaimeMF self-assigned this Mar 31, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 3, 2014

Could you try with the last version (2014.04.03.2 or newer)?

@ghost
Copy link
Author

@ghost ghost commented Apr 4, 2014

youtube-dl.exe --verbose http://www.syfy.com/videos/Robot%20Combat%20League/Behind%20the%20Scenes/vid:2631458
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.syfy.com/videos/Robot%20Combat%20League/Behind%20the%20Scenes/vid:2631458']
[debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250
[debug] youtube-dl version 2014.04.04.2
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[Syfy] 2631458: Downloading webpage
[ThePlatform] NmqMrGnXvmO1: Downloading config
[ThePlatform] NmqMrGnXvmO1: Downloading XML
[ThePlatform] NmqMrGnXvmO1: Downloading webpage
[download] Downloading f4m manifest
[download] Destination: George Lucas has Advice for his Daughter-NmqMrGnXvmO1.flv
[download] 100% of 19.22MiB in 00:14

Looks like it is solved.

@ghost ghost closed this Apr 4, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 4, 2014

Thanks for checking it, I think the problem is that I forgot to close the file handler, I fixed it in b900e7c. If the problem reappears, please comment here and I'll reopen. Thanks and sorry for taking so long.

jaimeMF added a commit that referenced this issue Apr 4, 2014
…appeared in #2389)

Otherwise on python 2.x we get `UnicodeDecodeError` because it may contain non ascii characters.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.