Created attachment 908782 [details] Syslog output Description of problem: SoundConverter can't export to a folder on an MTP device How reproducible: All the time Steps to Reproduce: 1. Choose files to convert 2. Select a folder on an MTP device mounted in Nautilus as a destination 3. Start the export. Actual results: Progress bar stays on "Preparing Conversion..." Expected results: Should convert the files and save them in the selected location. Additional info: Syslog output attached.
> Jun 14 14:32:14 macbookpro gnome-session[1644]: filename = str(gnomevfs.URI(filename)) > Jun 14 14:32:14 macbookpro gnome-session[1644]: TypeError: could not parse URI Could you please run "soundconverter -d" in a terminal, then reproduce the problem and attach the full terminal output?
Created attachment 908920 [details] Debug output See the attached file, but it's probably not going to help. What could help is this value in gconf: /apps/SoundConverter/selected-folder=mtp://[usb:002,005]/SD card
Well, the debug output does help, because it confirms that the local "filename" is not the culprit. In fileoperations.py filename_to_uri() crashes in gnomevfs.URI(), which is the API from package gnome-python2-gnomevfs (in bugzilla: gnome-python2). It does not accept the "mtp://" prefix at all, $ python >>> import gnomevfs >>> print gnomevfs.URI('mtp://foo') Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: could not parse URI so that's not going to work.
Anything we can do about it? Can it be assigned to someone?
Since you use MTP (or want to use it), you could research two things: * Do gnome-vfs2 and gnome-python2-gnomevfs support MTP? I don't think they do, and I have doubts these two are still developed further. * What's the current state of the art with regard to MTP support? Probably solutions based on gvfs and gvfs-mtp. For Soundconverter that could mean it may need to use a different/more capable API (in a similar way to switching from GStreamer 0.10.x to GStreamer 1.x eventually): https://bugs.launchpad.net/soundconverter
Thanks for this very enlightening feedback. Still, there's something weird: http://bazaar.launchpad.net/~kassoulet/soundconverter/main/view/head:/soundconverter/ui.py#L1180 Sets the gtk file chooser to be "local only" (use_gnomevfs is set to false in fileoperations.py) and according to the doc: http://www.pygtk.org/pygtk2reference/class-gtkfilechooser.html#method-gtkfilechooser--set-local-only which is specifically to make sure that "selected files are guaranteed to be accessible through the operating system's native file system. But then they bother with URIs. Looks like a flawed design... I'll report upstream.