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

Error with files on network #149

Closed
Vincent81 opened this issue Sep 6, 2011 · 4 comments
Closed

Error with files on network #149

Vincent81 opened this issue Sep 6, 2011 · 4 comments

Comments

@Vincent81
Copy link

@Vincent81 Vincent81 commented Sep 6, 2011

Hello,
The syntax youtube-dl-o "\ \ mynetwork \ movie.flv" does not work anymore (it worked with previous versions):

Traceback (most recent call last):
File "youtube-dl-org.py", line 2987, in
File "youtube-dl-org.py", line 604, in download
File "youtube-dl-org.py", line 844, in extract
File "youtube-dl-org.py", line 1135, in _real_extract
File "youtube-dl-org.py", line 567, in process_info
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 43: ordinal not in range(128)

An idea ?
Thx

@phihag
Copy link
Contributor

@phihag phihag commented Sep 6, 2011

I fixed an error that may hit you in [https://github.com/phihag/youtube-dl](my fork) (direct download).

UnicodeDecodeError indicates special characters. Are there any in your path name?

If the problem persists, please post:

  • Your exact command line (you can anonymize host and movie name, but please include any special characters. Also, make sure your it's the exact command line (don't include spaces around backslashes unless there are some in your path)
  • The output of youtube-dl --version
  • The output of python --version
  • The name of your operating system. This looks to be Windows, but which version? You can right click on My Computer and select Properties to find out)
@Vincent81
Copy link
Author

@Vincent81 Vincent81 commented Sep 6, 2011

Sorry for my inaccuracy. These are the new info:
Path "\PC-VINCENT\F" and "C:\PC-VINCENT\F" exist.


Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
(Try on W7-64b and XP)

C:\Python27>
C:\Python27>python youtube-dl.py --version
2011.08.04

C:\Python27>python youtube-dl.py -o "\PC-VINCENT\F\test.avi" http://www.you
tube.com/watch?v=o8ccSiH4olo
[youtube] Setting language
[youtube] o8ccSiH4olo: Downloading video webpage
[youtube] o8ccSiH4olo: Downloading video info webpage
[youtube] o8ccSiH4olo: Extracting video information
Traceback (most recent call last):
File "youtube-dl.py", line 2987, in
retcode = fd.download(all_urls)
File "youtube-dl.py", line 604, in download
ie.extract(url)
File "youtube-dl.py", line 844, in extract
return self._real_extract(url)
File "youtube-dl.py", line 1135, in _real_extract
'player_url': player_url,
File "youtube-dl.py", line 567, in process_info
self.trouble(u'ERROR: unable to create directories: %s' % str(err))
UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position 21: ordinal
not in range(128)

C:\Python27>python youtube-dl.py -o "C:\PC-VINCENT\F\test.avi" http://www.yo
utube.com/watch?v=o8ccSiH4olo
[youtube] Setting language
[youtube] o8ccSiH4olo: Downloading video webpage
[youtube] o8ccSiH4olo: Downloading video info webpage
[youtube] o8ccSiH4olo: Extracting video information
[download] Destination: C:\PC-VINCENT\F\test.avi
[download] 100.0% of 21.53M at 223.21k/s ETA 00:00

C:\Python27>

I use Python 2.7.2 because py2exe work with him.

@phihag
Copy link
Contributor

@phihag phihag commented Sep 6, 2011

I'm very sorry, but I can't reproduce the problem, and I can't understand how this exact error could be caused with all-ASCII file names. Are you sure there isn't an é or Ç in there?

I'm trying to grab a french copy of Windows 7 and try to reproduce it with a real SMB network, but that may take some time. Would you mind trying it with my forked version?

@Vincent81
Copy link
Author

@Vincent81 Vincent81 commented Sep 6, 2011

Great, thank you it works very well:

C:\Python27>python youtube-dl.py --version
2011.09.06-phihag

C:\Python27>python youtube-dl.py -o "\PC-VINCENT\F\test.avi" http://www.youtube.com/watch?v=o8ccSiH4olo
[youtube] Setting language
[youtube] o8ccSiH4olo: Downloading video webpage
[youtube] o8ccSiH4olo: Downloading video info webpage
[youtube] o8ccSiH4olo: Extracting video information
[download] Destination: \PC-VINCENT\F\test.avi
[download] 100.0% of 27.66M at 234.16k/s ETA 00:00

C:\Python27>

Thx
Vincent

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.

2 participants
You can’t perform that action at this time.