Archer785
Posts: 5
Joined: Sun Apr 03, 2016 7:21 pm

Re: HOWTO: YouTube on the Raspberry Pi - sans X B-)

Sat Apr 09, 2016 12:48 pm

Hello, I am getting this error when I try to run whitey 0.4 with "yt" :

Code: Select all

Traceback (most recent call last):
  File "/usr/local/bin/yt", line 9, in <module>
    load_entry_point('whitey==0.4', 'console_scripts', 'yt')()
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 37, in main
    ui.run()
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 103, in run
    curses.wrapper(self._curses_main)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 147, in _curses_main
    self._run_pager()
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 221, in _run_pager
    feed = self._get_feed(idx, n_per_page)
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 188, in _get_feed
    self._last_feed = self._feed['fetch_cb'](start, count, self._ordering)
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 484, in fetch_cb
    return json.load(urllib2.urlopen('%s?%s' % (url, urllib.urlencode(query))))
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 410: Gone
and it says something like "player not set" when I try to run it with pi-yt.

What could be wrong ? Thanks

simo1427
Posts: 2
Joined: Sat Dec 05, 2015 4:03 pm

Re: HOWTO: YouTube on the Raspberry Pi - sans X B-)

Tue Jul 12, 2016 9:32 am

Hello! I installed whitey-0.4 via the 1-line Raspberry Pi install script.

Code: Select all

curl -L https://github.com/rjw57/yt/raw/master/tools/install-pi.sh | sh
When I run pi-yt i get this:

Code: Select all

Traceback (most recent call last):
  File "/usr/local/bin/pi-yt", line 9, in <module>
    load_entry_point('whitey==0.4', 'console_scripts', 'pi-yt')()
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 46, in main_with_omxplayer
    ui = Ui(OMXPLAYER_MODE)
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 83, in __init__
    self._player = args.player
AttributeError: 'str' object has no attribute 'player'
When I run yt:

Code: Select all

Traceback (most recent call last):
  File "/usr/local/bin/yt", line 9, in <module>
    load_entry_point('whitey==0.4', 'console_scripts', 'yt')()
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 37, in main
    ui.run()
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 103, in run
    curses.wrapper(self._curses_main)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 147, in _curses_main
    self._run_pager()
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 221, in _run_pager
    feed = self._get_feed(idx, n_per_page)
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 188, in _get_feed
    self._last_feed = self._feed['fetch_cb'](start, count, self._ordering)
  File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 484, in fetch_cb
    return json.load(urllib2.urlopen('%s?%s' % (url, urllib.urlencode(query))))
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 410: Gone
I installed youtube-dl from the official website:

Code: Select all

[email protected]:~ $ youtube-dl -U
youtube-dl is up-to-date (2016.07.11)
Python version:

Code: Select all

[email protected]:~ $ python --version
Python 2.7.9
Please help.

imaginary_east
Posts: 1
Joined: Wed May 31, 2017 7:27 pm

Re: HOWTO: YouTube on the Raspberry Pi - sans X B-)

Wed May 31, 2017 7:53 pm

Is there any update to this thread?
Is it still necessary to have a google dev id to do it? anyone still using this? It's been at least 2 years since they began to require the id, and google changes stuff so often and the community tends to be good at workarounds. I thought perhaps it was time to check with people on it.

thanks in advance for anyone who can give me any updates on the situation.

Fauveboy
Posts: 80
Joined: Sun Jan 26, 2014 8:09 pm

Re: HOWTO: YouTube on the Raspberry Pi - sans X B-)

Fri Jul 20, 2018 1:56 pm

Hi,

when i get to the command:

wget http://pypi.python.org/packages/source/ ... 0.1.tar.gz

the terminal says:
HTTP request sent, awaiting response...403 SSL is required
ERROR 403: SSL is required


i think it prevents me from moving forward with the HOWTO. What does SSL mean?

...also

I've now got ahead an tried:

$ yt

and

$ py-yt

I don't get any error but I don't see anything happen?

I am on raspbian lite is this an issue?

Return to “Media centres”