I got the same error. I fixed the issue by making changing my locale to "en_US.utf-8" rather than just "en_US"robotfunk wrote: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 12: ordinal not in range(128)
I got the same error. I fixed the issue by making changing my locale to "en_US.utf-8" rather than just "en_US"robotfunk wrote: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 12: ordinal not in range(128)
This should be fixed in the very latest version, you can get it at http://omxplayer.sconde.net/, or wait for it to appear in the repository.SB2020 wrote: Like others I am seeing vids cut off a few seconds early - I tried to update Omxplayer but it reports it's the latest version and the problem persists. Any more ideas?
Just confirming that it is indeed fixed. Many Thanks.This should be fixed in the very latest version
maybe a late answer but you should put "export LANG=en_US.utf-8" to your ~/.profilerobotfunk wrote:Here's the error I get when I run yt on the Pi itself:
Traceback (most recent call last):
File "/usr/local/bin/yt", line 9, in <module>
load_entry_point('whitey==0.1', 'console_scripts', 'yt')()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 16, in main
ui.run()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 56, 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.1-py2.7.egg/yt/__init__.py", line 99, in _curses_main
self._update_screen()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 157, 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.1-py2.7.egg/yt/__init__.py", line 334, in _add_table_row
win.addstr(y, x, truncate('%s:%s' % (k,v), min(w-x, cell_w)).encode(self._code), attr)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 12: ordinal not in range(128)
I wouldn't worry too much about it, I don't have an urgent need to play youtube from the Terminal, just wanted to share the results...
Code: Select all
press CTRL-ALT-F1
sudo service stop lxdm
yt
I tried all of your ideas and nothing changed. I am running with the default installation of wheezy with no change to memory settings.Licaon_Kter wrote:try a smaller video, say search for "nyan cat" and play video number 1
also, you are using the 192/64 memory spilt or ? ( run in a terminal: free -h and on the first line it should say Mem: 183 or smaller )
also, try from the console too( once you are done testing, run startx to get back to the X server... the one with the GUi )Code: Select all
press CTRL-ALT-F1 sudo service stop lxdm yt
Hi there, I've just played with this, no doubt the tutorials are great, but the mileage seems to vary. For me, I usedJeepman8098 wrote: I tried all of your ideas and nothing changed. I am running with the default installation of wheezy with no change to memory settings.
Code: Select all
File "/usr/lib/python2.7/encodings/iso8859_15.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2026' in position 12: character maps to <undefined>
any reason not to use UTF-8?walax wrote:Is there any way to make it work withtout having to set the locale to any UTF8 ?
Mainly accents (éàç) bugging in irssi if locale are in UTF-8.Licaon_Kter wrote:any reason not to use UTF-8?
Code: Select all
Traceback (most recent call last):
File "/usr/local/bin/yt", line 9, in <module>
load_entry_point('whitey==0.1', 'console_scripts', 'yt')()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 16, in main
ui.run()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 56, 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.1-py2.7.egg/yt/__init__.py", line 100, in _curses_main
self._run_pager()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 227, in _run_pager
self._play_video(c - ord('1'))
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 254, in _play_video
play_url(url)
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 357, in play_url
yt_dl = subprocess.Popen(['youtube-dl', '-g', url], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
yt is starting, but the 3 first results do not appear.Licaon_Kter wrote:oh, can you test: normal system wide use iso8859-15 or whatever suits your fancy, but when you start yt start it with LANG=fr_FR.utf8 yt
k.. so I just noticed the omxplayer.log file in the directory where I launch yt. It contains an error. Here's what I see:trinigooner wrote:This is a nice howto. However, can't seem to get anything playing. No matter what number I pick, a small dialog comes up and tells me 'Playing https://blahblahblah', but then goes away after a few seconds. Where's the video?
I've even tried playing small videos like searching for 'nyan cat' like one user suggested. Still nothing. Worst of all is I don't see any error messages (do logs get written somewhere else?). Wish I could at least figure out what was going wrong.
Any ideas?
Have the same exact problem. Could you check the omxplayer.log file that gets produced in the same directory you run yt from? Do you see an error in that file? COMXPlayer::OpenFile . Looks like a function to open the file is failingJeepman8098 wrote:Can someone help another noob? I followed the guide and have everything needed installed now. I have tried opening yt in X using lxterminal and no luck. It appears to work and talks to youtube and pulls a list of video's however when I select say #6 it shows playing http:\\youtub.com\andabunchofstuff and then talking to youtube. That is as far as it gets and no video appears and no errors.
Am I missing somthing simple?
Code: Select all
Traceback (most recent call last):
File "/usr/local/bin/yt", line 9, in <module>
load_entry_point('whitey==0.1', 'console_scripts', 'yt')()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 16, in main
ui.run()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 56, 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.1-py2.7.egg/yt/__init__.py", line 100, in _curses_main
self._run_pager()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 227, in _run_pager
self._play_video(c - ord('1'))
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 254, in _play_video
play_url(url)
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 357, in play_url
yt_dl = subprocess.Popen(['youtube-dl', '-g', url], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Code: Select all
wget https://github.com/rg3/youtube-dl/raw/2012.09.27/youtube-dl
Code: Select all
sudo chmod a+x youtube-dl
sudo cp youtube-dl /usr/bin/youtube-dl
No need. I have used the internal update in youtube-dltrinigooner wrote:Do you have youtube-dl installed? Try typing youtube-dl from the command line. If you get an error then you need to install it and put it in /usr/bin
Then install it as per the instructions on page 1:Code: Select all
wget https://github.com/rg3/youtube-dl/raw/2012.09.27/youtube-dl
HTHCode: Select all
sudo chmod a+x youtube-dl sudo cp youtube-dl /usr/bin/youtube-dl
Code: Select all
sudo youtube-dl -U