Matthias Reichl wrote: > Another issue with kaa r4054 / REL-1_8_4 r11554: > > When I try to find a cover (tested here with the album "The Hazards of Love" > by the "Decemberists"), I get the following traceback plus the > message "No covers available from Amazon"): > > Traceback (most recent call last): > File > "/usr/lib/python2.5/site-packages/freevo/audio/plugins/coversearch.py", line > 305, in cover_search_file > menuw.pushmenu(moviemenu) > File "/usr/lib/python2.5/site-packages/freevo/menu.py", line 410, in > pushmenu > self.refresh() > File "/usr/lib/python2.5/site-packages/freevo/menu.py", line 440, in refresh > skin.draw('menu', self, self.menustack[-1], blend) > File "/usr/lib/python2.5/site-packages/freevo/skins/main/main.py", line > 547, in draw > a.draw(settings, object, menu, style, type, self.force_redraw) > File "/usr/lib/python2.5/site-packages/freevo/skins/main/area.py", line > 196, in draw > self.update_content() > File "/usr/lib/python2.5/site-packages/freevo/skins/main/view_area.py", > line 107, in update_content > image, i_w, i_h = format_image(self.settings, item, width, height, 0, > self.xml_settings.anamorphic) > File "/usr/lib/python2.5/site-packages/freevo/skins/main/skin_utils.py", > line 104, in format_image > image_parts = os.path.split(item.image) > File "/usr/lib/python2.5/posixpath.py", line 77, in split > i = p.rfind('/') + 1 > File "/usr/lib/python2.5/site-packages/kaa/imlib2/image.py", line 103, in > __getattr__ > raise AttributeError, attr > AttributeError: rfind > None > > Then freevo displays the names of 3 available covers, but no images > are displayed: two times "The Hazards of Love (500x500)" and > "The Hazards of Love 455x455)". If I then press enter the cover is > downloaded and stored correctly. > > But if I press the "down" key to select another cover, I get another > traceback and a freevo crash notice. "Continue" doesn't work, I have > to select "Shutdown". Here's the second traceback:
Clear that os.path does not like Unicode strings. Will you try the attached patch, it should fix this one but there may be others. Will you let me know the results. Thanks Duncan
Index: src/skins/main/skin_utils.py =================================================================== --- src/skins/main/skin_utils.py (revision 11556) +++ src/skins/main/skin_utils.py (working copy) @@ -97,11 +97,11 @@ if isinstance(item.image, imlib2.Image): image = osd.loadbitmap(item.image) else: - if not os.path.exists(item.image): + if not os.path.exists(str(item.image)): return None, 0, 0 for folder in ('.thumbs', '.images'): - image_parts = os.path.split(item.image) + image_parts = os.path.split(str(item.image)) imagefile = os.path.join(image_parts[0], folder, image_parts[1]) if os.path.exists(imagefile): break
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel