DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1 Week Ago
kerasi kerasi is offline
Fdisk Soldier
 
Join Date: Mar 2013
Location: Germany
Posts: 72
Default youtube_dl error

Hello

i hope anyone can help me.

if i try this

Code:
  # youtube-dl https://www.youtube.com/watch?v=iZrMkIX8QyY       
[youtube] iZrMkIX8QyY: Downloading webpage
[youtube] iZrMkIX8QyY: Downloading video info webpage
[youtube] iZrMkIX8QyY: Extracting video information
WARNING: unable to extract uploader nickname
[youtube] iZrMkIX8QyY: Downloading MPD manifest
[dashsegments] Total fragments: 39
[download] Destination: Hubert Kah - Engel 07 (Na Sowas! 1984)-iZrMkIX8QyY.f136.mp4
[download]   7.7% of ~19.40MiB at  1.78MiB/s ETA 00:07Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/__init__.py", line 465, in main
    _real_main(argv)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/__init__.py", line 455, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1956, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 787, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 841, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1599, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1857, in process_info
    partial_success = dl(fname, new_info)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1805, in dl
    return fd.download(name, info)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 361, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/downloader/dash.py", line 48, in real_download
    self._append_fragment(ctx, frag_content)
  File "/usr/local/lib/python2.7/site-packages/youtube_dl/downloader/fragment.py", line 114, in _append_fragment
    os.remove(ctx['fragment_filename_sanitized'])
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201e' in position 23: ordinal not in range(128)
i get those messages :-( why does this not work?

i updated all packeges with

pkg_add -Uu

and than

pip install --upgrade youtube-dl
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,271
Default

Please provide the output of the following command:

$ sysctl kern.version
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
kerasi kerasi is offline
Fdisk Soldier
 
Join Date: Mar 2013
Location: Germany
Posts: 72
Default

Hi :-)

this is the output

Code:
     $ sysctl kern.version
kern.version=OpenBSD 5.7 (GENERIC.MP) #881: Sun Mar  8 11:04:17 MDT 2015
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Reply With Quote
  #4   (View Single Post)  
Old 1 Week Ago
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,271
Default

OpenBSD 5.7 is no longer officially supported.

As described in the official FAQ's section on flavors, any version of OpenBSD is officially supported for only one year. OpenBSD 5.7 ceased to be officially supported as of spring 2016 with the release of OpenBSD 5.9. The latest version of OpenBSD to be released as of this date is OpenBSD 6.1.

You may receive a response to your question, but be beware that the software you are running in considered ancient, & outside of what project developers have any interest in supporting. Although this site is not officially affiliated with the OpenBSD project proper, we try to stay in line with their policies.

We highly recommend you either upgrade, or perform a fresh installation of a newer version.

From personal experience, I know that www/youtube-dl frequently needs to be updated as the access methods allowed by YouTube are frequently modified.
Reply With Quote
  #5   (View Single Post)  
Old 1 Week Ago
kerasi kerasi is offline
Fdisk Soldier
 
Join Date: Mar 2013
Location: Germany
Posts: 72
Default

Thank you very much for the Information, if i have the Time i will install it new
Reply With Quote
  #6   (View Single Post)  
Old 1 Week Ago
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 287
Default

I second what ocicat said about it needing to be updated frequently. In fact there's usually a new version every week or so. Since it's nothing more than a single Python script, I suggest you download it to your ~/bin directory and keep it up to date with youtube-dl.py -U.
__________________
May the source be with you!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
shc unistd.h:239: error: syntax error before '&' token laraaj OpenBSD General 3 11th September 2010 07:21 AM
Buildworld error terryd FreeBSD Installation and Upgrading 2 1st February 2009 11:05 AM
help error darken FreeBSD General 1 21st September 2008 09:28 PM
VLC run error mfaridi OpenBSD Packages and Ports 14 29th May 2008 05:38 PM
error kde darken FreeBSD General 1 5th May 2008 08:45 PM


All times are GMT. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick