mrteach
Posts: 181
Joined: Sun May 26, 2013 6:49 am

whitey py-yt not working

Wed Aug 27, 2014 1:47 am

so I'm trying to get py-yt to work and it is giving me this error. Tried searching and found no results

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'

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: whitey py-yt not working

Wed Aug 27, 2014 2:17 am

You need to search harder ;)
https://github.com/rjw57/yt/issues/32

mrteach
Posts: 181
Joined: Sun May 26, 2013 6:49 am

Re: whitey py-yt not working

Wed Aug 27, 2014 3:16 am

yeah that didn't work. but i did find out that the apt-get version is buggy so i went the other method and now getting this error

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 38, in main
ui.run()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 117, 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 162, in _curses_main
self._update_screen()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 220, in _update_screen
self._add_table_row(self._help, 0, 0, w-1, self._bar_attr, max_width=16, win=self._help_bar)
File "/usr/local/lib/python2.7/dist-packages/whitey-0.4-py2.7.egg/yt/__init__.py", line 485, in _add_table_row
win.addstr(y, x, truncate('%s:%s' % (k,v), min(w-x, cell_w)).encode(self._code), attr)
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2026' in position 9: ordinal not in range(256)

mrteach
Posts: 181
Joined: Sun May 26, 2013 6:49 am

Re: whitey py-yt not working

Wed Aug 27, 2014 3:17 am

solved =)

found this

export LANG=en_US.utf-8

mrteach
Posts: 181
Joined: Sun May 26, 2013 6:49 am

Re: whitey py-yt not working

Wed Aug 27, 2014 3:38 am

I thought the program was a little different and would stream youtube videos... but it downloads then plays.

anyone know a program that can just stream a video with buffering.

gkreidl
Posts: 6307
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: whitey py-yt not working

Wed Aug 27, 2014 5:40 am

mrteach wrote:I thought the program was a little different and would stream youtube videos... but it downloads then plays.

anyone know a program that can just stream a video with buffering.
Command line or GUI (running from X)?
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “General discussion”