Ticket #8 (closed bug: fixed)

Opened 3 years ago

Read directory

Reported by: nobody Owned by: theli
Priority: minor Milestone:
Component: Metadata read/write Version:
Keywords: Cc:

Description

Hi !

When i want add my music directory, I have this error :

/usr/lib/listen/view_playlist_current.py:372: GtkWarning?: gtk_tree_view_scroll_to_cell: assertion `tree_view->priv->model != NULL' failed

self.scroll_to_cell(self.current_item)

No DBus support Traceback (most recent call last):

File "/usr/lib/listen/hal.py", line 56, in start_monitor

self.bus = dbus.SystemBus?()

File

"/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 252, in new

return Bus.new(cls, Bus.TYPE_SYSTEM,

use_default_mainloop, private)

File

"/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 99, in new

bus._connection = dbus_bindings.bus_get(bus_type,

private)

File "dbus_bindings.pyx", line 1695, in

dbus_bindings.bus_get dbus_bindings.DBusException: Failed to connect to socket /var/run/dbus/system_bus_socket: Aucun fichier ou répertoire de ce type /usr/lib/listen/context_web.py:561: DeprecationWarning?: gtk.Progress.set_text_alignment is deprecated, use gtk.ProgressBar? methods

progress.set_text_alignment( 0.1, 0.5 )

/media/cdrom3/Musique Traceback (most recent call last):

File "/usr/lib/listen/file_inspector.py", line 100,

in parse_directory

list = parse_dir(d)

File "/usr/lib/listen/file_inspector.py", line 79, in

parse_dir

if utils.get_ext(fn) in READ_EXTENTIONS:

File "/usr/lib/listen/utils.py", line 64, in get_ext

return uri[uri.rindex("."):].lower()

ValueError?: substring not found

Best Regards

Change History

Changed 3 years ago by nobody

Logged In: NO

I sorry, i have only this error :

/media/cdrom3/Musique Traceback (most recent call last): File "/usr/lib/listen/file_inspector.py", line 100, in parse_directory list = parse_dir(d) File "/usr/lib/listen/file_inspector.py", line 79, in parse_dir if utils.get_ext(fn) in READ_EXTENTIONS: File "/usr/lib/listen/utils.py", line 64, in get_ext return uri[uri.rindex("."):].lower() ValueError?: substring not found

Changed 3 years ago by nobody

Logged In: NO

I think this error is make because maybe i have file without extension.

Changed 3 years ago by nobody

Logged In: NO

I have make a patch for this error (Is ONLY fix, but many error exist)

I have make that :

Listen : utils.py

def get_ext(uri,complete=True):

if uri.rfind(".")==-1:

return ""

if complete:

return uri[uri.rindex("."):].lower()

else:

return uri[uri.rindex(".")+1:].lower()

My Patch: utils.py

def get_ext(uri,complete=True):

if uri.rfind(".")==-1:

return ""

if complete:

try:

return uri[uri.rindex("."):].lower()

except ValueError?:

return uri[uri.find("."):].lower()

else:

return uri[uri.rindex(".")+1:].lower()

Changed 3 years ago by theli

  • status changed from assigned to closed
Note: See TracTickets for help on using tickets.