Bugs item #1585819, was opened at 2006-10-27 16:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1585819&group_id=46652
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: plugins
Group: 1.6.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: notset (bug-emjay)
Assigned to: Nobody/Anonymous (nobody)
Summary: freevo crashes with usb storage and automount
Initial Comment:
I am using the following setup: autofs which creates
and mounts /var/autofs/removable/usb[1-4] in case
necessary. Now using audio with
plugin.activate('usbstorage', type='audio', args=('USB
partition 1', '/var/autofs/removable/usb1'))
in local_conf.py
crashes freevo:
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/freevo/main.py", line
315, in eventhandler
app.eventhandler(event)
File
"/usr/lib/python2.4/site-packages/freevo/menu.py", line
561, in eventhandler
action( arg=arg, menuw=self )
File
"/usr/lib/python2.4/site-packages/freevo/menu.py", line
87, in select
self.function(arg=self.arg, menuw=menuw)
File
"/usr/lib/python2.4/site-packages/freevo/plugins/mediamenu.py",
line 205, in main_menu
items = self.main_menu_generate()
File
"/usr/lib/python2.4/site-packages/freevo/plugins/mediamenu.py",
line 114, in main_menu_generate
items += p.items( self )
File
"/usr/lib/python2.4/site-packages/freevo/plugins/usbstorage.py",
line 66, in items
d = DirItem(self.mountpoint, parent, self.name,
display_type=parent.display_type)
File
"/usr/lib/python2.4/site-packages/freevo/directory.py",
line 175, in __init__
p.dirinfo(self)
File
"/usr/lib/python2.4/site-packages/freevo/audio/__init__.py",
line 97, in dirinfo
timestamp = os.stat(diritem.dir)[stat.ST_MTIME]
same with video does not cause any problems.
The problem is in audio/__init__.py
def dirinfo(self, diritem):
"""
set informations for a diritem based on the
content, etc.
"""
if not diritem.image:
timestamp = os.stat(diritem.dir)[stat.ST_MTIME]
if the directory does not exist (in case no device is
attached) it crashes while os.stat
this can be prevented by either replacing "if not
diritem.image:" with "if not diritem.image and
os.path.exists(diritem.dir):" or employing a try:
catch: expression
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1585819&group_id=46652
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel