You are not logged in.
heheh ok it does actually run now but i still get the black box in the alt config (it uses covers). normal config with backdrop and lyrics works great though
Z.
This is because you are using local images and don't have bg_path_cover option set
Last edited by OK100 (2012-10-07 18:48:10)
Offline
@bslackr: Latest commit should fix your issue. If not, please post your complete mpd config (WITH comments).
Looks good now, thanks.
Offline
Hya again
found another bug. this seems to happen only when you play external files in mpd (not in libraraym through a unix socket):
% lyvi !661
Traceback (most recent call last):
File "/usr/bin/lyvi", line 1019, in <module>
curses.wrapper(main)
File "/usr/lib/python3.2/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/bin/lyvi", line 986, in main
sleep(1)
KeyboardInterruptas always thx alot!
Z
if you're using bind_to_address option in mpd you should also set mpd_host option in lyvi to the same value.
For example:
mpd_host = /home/USER/.mpd/socket
Last edited by OK100 (2012-10-08 07:44:52)
Offline
hallelujah
everything works butter smooth ;-)
thx alot. btw i just thought of something, does lyvi read a current saved .lyrics file in the dir or auto downloads it each time?
thx alot again
Z.
P.S i still have some more ideas but i will let you rest a bit..lol
Last edited by zeltak (2012-10-08 16:40:34)
Offline
hallelujah
everything works butter smooth ;-)
thx alot. btw i just thought of something, does lyvi read a current saved .lyrics file in the dir or auto downloads it each time?
Lyvi stores everything (including images) in the cache file (at ~/.local/share/lyvi/metadata.db) and reads from it the next time.
Offline
hya again.
Still getting the occasional error or two ;-)
lo Rush - Caravan
File "/usr/bin/lyvi", line 212, in bg_setlocal
Searching lyrics...
bg_set(tmp_img, float(SETTINGS['bg_opacity']))
File "/usr/bin/lyvi", line 173, in bg_set
image2 = image1.point(lambda p: p * opacity)
File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 1121, in point
self.load()
File "/usr/lib/python2.7/site-packages/PIL/ImageFile.py", line 201, in load
raise IOError("image file is truncated (%d bytes not processed)" % len(b))
IOError: image file is truncated (5 bytes not processed)
and yeah urxvt turns out to be a great image viewer ;-)..lol
thx
Z.
Last edited by zeltak (2012-10-09 15:11:45)
Offline
hya again.
Still getting the occasional error or two ;-)
lo Rush - Caravan File "/usr/bin/lyvi", line 212, in bg_setlocal Searching lyrics... bg_set(tmp_img, float(SETTINGS['bg_opacity'])) File "/usr/bin/lyvi", line 173, in bg_set image2 = image1.point(lambda p: p * opacity) File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 1121, in point self.load() File "/usr/lib/python2.7/site-packages/PIL/ImageFile.py", line 201, in load raise IOError("image file is truncated (%d bytes not processed)" % len(b)) IOError: image file is truncated (5 bytes not processed)
and yeah urxvt turns out to be a great image viewer ;-)..lol
thx
Z.
I also had this issue a few times today. Please let me know if latest commit fixes it.
Offline
Yup
that seems to have fixed it
best
Z
Offline
Hya again
did i mention i frakkin love lyvi ;-)..
so been using it daily for last week and some more bugs have risen so reporting them:
1.black box issue- for some artist/albums lyvi dosent pick up the image and just shows a black box. here are some examples
another example:
and a zip file with 2 images :
errors: there are quite a few every X songs here are some i saved (will report the rest as they appear)
|< >> || >| lyrics All (10s)Exception in thread Thread-27:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/bin/lyvi", line 261, in get_and_update
bg_setlocal()
File "/usr/bin/lyvi", line 212, in bg_setlocal
bg_set(tmp_img, float(SETTINGS['bg_opacity']))
Come on, come on, come on, come on line 173, in bg_Didn't I make you feel
Like you were the only man?t(lambda p: p * opacity)Yeah, I did not give you nearly everything that →
a woman possibly canhon2.7/site-packages/PIL/Image.Honey, you know I didint
And each time I tell myself that I, well, I thin→
k I've had enough File "/usrWell, what I'm gonna show you, baby, that a woma→inn can be tough
I want you to come on, come on, come on, come on→uncand take ittes not processed)" % len(b))
Take another little piece of my heart now, babyr: i(Break it)is truncated (44 bytes not processed)
Break another little bit of my heart now, darlin→
another common error is that the word opacity'])) keeps staying on the 1st line
thx again
Z
Offline
Off topic: Zeltak, can you share your Xresources? (namely the font)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
hehe sure
the font is Envy Code R (from AUR)
by resources i assume you mean color: http://paste.xinu.at/eH2/
let me know if you have any other questions
best
Z
Offline
Thanks! I was hoping you could also share the specific font line from .Xresources / .Xdefaults.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Offline
Thanks!
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
hi again
as i said in prev post ill report the bugs as they come
drag by? Did the favors wane?
Did he roam down the town all the while?
Will you wake from your dream, with a wolf at theException in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/bin/lyvi", line 942, in autoscroll
self.refresh()
File "/usr/bin/lyvi", line 914, in refresh
self.pager.refresh()
File "/usr/bin/lyvi", line 838, in refresh
self.win.addstr(y, 1, text[i].encode('utf-8'), color)
error: addstr() returned ERR
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/bin/lyvi", line 271, in get_and_update
ui.refresh()
File "/usr/bin/lyvi", line 914, in refresh
self.pager.refresh()
File "/usr/bin/lyvi", line 838, in refresh
self.win.addstr(y, 1, text[i].encode('utf-8'), color)
error: addstr() returned ERR
thx
Z
Offline
hi again
as i said in prev post ill report the bugs as they come
drag by? Did the favors wane? Did he roam down the town all the while? Will you wake from your dream, with a wolf at theException in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs) File "/usr/bin/lyvi", line 942, in autoscroll self.refresh() File "/usr/bin/lyvi", line 914, in refresh self.pager.refresh() File "/usr/bin/lyvi", line 838, in refresh self.win.addstr(y, 1, text[i].encode('utf-8'), color) error: addstr() returned ERR Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs) File "/usr/bin/lyvi", line 271, in get_and_update ui.refresh() File "/usr/bin/lyvi", line 914, in refresh self.pager.refresh() File "/usr/bin/lyvi", line 838, in refresh self.win.addstr(y, 1, text[i].encode('utf-8'), color) error: addstr() returned ERR
thx
Z
Please update lyvi to latest version and run it with -d option. When your lyrics window get messed, post here lyvi.log file that was created in the current directory.
Thanks
Offline
thx
already running with the -d
Here is the output:
btw did you see my prev post issue:
1.black box issue- for some artist/albums lyvi dosent pick up the image and just shows a black box. here are some examples
http://paste.xinu.at/Gm61EQ/
another example:
http://paste.xinu.at/n2KD/
and a zip file with 2 images :
http://paste.xinu.at/aWmDC0/
thx
Z
Last edited by zeltak (2012-10-15 17:50:12)
Offline
thx
already running with the -d
btw did you see my prev post issue:
1.black box issue- for some artist/albums lyvi dosent pick up the image and just shows a black box. here are some examples
http://paste.xinu.at/Gm61EQ/another example:
http://paste.xinu.at/n2KD/
and a zip file with 2 images :
http://paste.xinu.at/aWmDC0/thx
Z
Are you sure you have the images in the usual directories? Can I see your config file please?
Offline
hya
first some more errors in the log:
here are the config files:
and
the images are exactly as the other images in the same file structure
example:
'/home/zeltak/Zmusic/R/Randy Newman/Lonely at the Top-The Best of Randy Newman/Folder.jpg'
'/home/zeltak/Zmusic/M/Manu chao/Proxima Estacion Esperanza/Folder.jpg'
etc
thx
Z
Offline
Hi,
It would be really helpful if you can update and post the log file again as I added some more debug output.
Thanks
Offline
Offline
I tried the same songs (Elliott Smith - Coming Up Roses and Sparks - Hasta Manana, Monsieur) and everything worked fine for me. Can you please test if it always crash with this songs? Is it a common error for you?
Thanks
Offline
hya again
first of all here is a much more detailed log for the past 24 hours..maybe it will help
ok so trying these songs again didnt crash but in the sparks track it did not find the album art (just show a black box).
Let me know if any other tests are required as ill be happy to help
BTW, did u have these tracks in your collections, ;-).. looks like you have great taste in music ;-)
best
Z
Offline
hya again
first of all here is a much more detailed log for the past 24 hours..maybe it will help
I tried a few things but still can't get this bug. Do you know how to make it crash or it seems to be random?
ok so trying these songs again didnt crash but in the sparks track it did not find the album art (just show a black box).
Set bg_color to the same as your terminal background color. I'm not sure why it doesn'ŧ show the right image though, but I'll keep digging.
BTW, did u have these tracks in your collections, ;-).. looks like you have great taste in music ;-)
heheh of course not, I just edited the tags of some other song
Offline
Do you know how to make it crash or it seems to be random?
i thinks its pretty random
Set bg_color to the same as your terminal background color.
did that with no success. still getting black backgrounds. this is not random and in specific albums
thx again, let me know if you need any other testing!
Z
Offline