Having trouble getting fileorganizer to work for me. I have Rhythmbox 0.12.8 and I'm using the legacy version of fileorganizer with no luck. Please advise if possible :)

Asked by Eric Williams

Having trouble getting fileorganizer to work for me. I have Rhythmbox 0.12.8 and I'm using the legacy version of fileorganizer with no luck.

Installation seemed sucessful, but I have not had any luck getting the "organize selection" command to work. It does not provide an error message and the files for which I am trying to organize do not change. I have found the previous questions from this feed and didn't notice any that were close enough to help me.

Please advise if you have anything I can try to get this to work.

Question information

Language:
English Edit question
Status:
Solved
For:
Rhythmbox Fileorganizer Edit question
Assignee:
No assignee Edit question
Solved by:
Eric Williams
Solved:
Last query:
Last reply:
Revision history for this message
Eric Williams (ewilliams) said :
#1

I tried to look for the Gconf file and that has the information from the plugins menu and nothing else. I also found the configurator.py and did not have any luck changing values within the rhythmbox_ops array. I tried to change it to my music directory which is at /home/eric/Music and the plugin did not work when I restarted rhythmbox. Please let me know if I should modify this prior to installation or after installation and how I might do that. I could be making a syntax error here, but I'm not sure.

This is the block of code within configurator.py that I was trying to modify. I assumed that the value of 'None' was not a valid choice?

rhythmbox_ops = {
    'library_locations': None, # Only first value will be used.
    'library_layout_path': None, # replaces 'folder'
    'library_layout_filename': None # replaces 'file'
}

Thank you for your help!

Revision history for this message
lachlan-00 (lachlan-00) said :
#2

can you send what it prints out when you run from commandline?

rhythmbox -D fileorganizer

Revision history for this message
Eric Williams (ewilliams) said :
#3

Hello Lachlan,

I ran from the command line as you asked. I noticed that my copy of rhythmbox does not allow me to modify a separate property for "album artist." Is that weird?

eric@eric-desktop:~$ rhythmbox -D fileorganizer
(rhythmbox:3261): Rhythmbox-DEBUG: Received SaveYourself(SmSaveLocal, !Shutdown, SmInteractStyleNone, !Fast) in state idle
(rhythmbox:3261): Rhythmbox-DEBUG: Setting initial properties
(rhythmbox:3261): Rhythmbox-DEBUG: Sending SaveYourselfDone(True) for initial SaveYourself
(rhythmbox:3261): Rhythmbox-DEBUG: Received SaveComplete message in state save-yourself-done
Traceback (most recent call last):
  File "/home/eric/.gnome2/rhythmbox/plugins/fileorganizer/fileorganizer.py", line 142, in organize_selection
    self.organize(selection)
  File "/home/eric/.gnome2/rhythmbox/plugins/fileorganizer/fileorganizer.py", line 151, in organize
    item = fileops.MusicFile(self, item)
  File "/home/eric/.gnome2/rhythmbox/plugins/fileorganizer/fileops.py", line 42, in __init__
    RB_METATYPES[1]: db.entry_get (db_entry, rhythmdb.PROP_ALBUM_ARTIST),
AttributeError: 'module' object has no attribute 'PROP_ALBUM_ARTIST'

Thanks,
Eric

Revision history for this message
lachlan-00 (lachlan-00) said :
#4

looks like your version of RB is having trouble with the album artist code.
'module' object has no attribute 'PROP_ALBUM_ARTIST' on line 42 and 43.

RB_METATYPES[1]: db.entry_get (db_entry, rhythmdb.PROP_ALBUM_ARTIST),
RB_METATYPES[2]: db.entry_get (db_entry, rhythmdb.PROP_ALBUM_ARTIST_FOLDED),

If you comment both those lines out with a hash (#) what does the commandline say next?
I never used fileorganizer on anything less than 0.13.1 so i'm not sure how compatible 0.12.8 is with the 0.13 line.

If it works after commenting out this line you'll probably run into other issues as well so be wary.

Revision history for this message
Eric Williams (ewilliams) said :
#5

I tried that commenting step you suggested with a logical error. The error was that the module object had the next attribute in the list. If I continue commenting out the same thing occurs.

Glad it wasn't just me when it comes to this error. The 0.12.8 seems to be the only release of rhythmbox which I can run on ubuntu 10.04? I'm a fan of the LTS, so I haven't upgraded. Do you know if I can somehow get the more recent version of rhythmbox installed?

On another note, if that is not possible, perhaps I can modify the code a bit to try to get it to work for my case. I don't mind experimenting a bit, since i have my music backed up in a few different locations just to be safe. Can you tell me about what the 'module' is that is being referenced in that error? I would guess that it is the rhythmdb.xml? I'm looking at the contents of that file and the tags are visible in that file. Interesting enough they do not follow the same format as the RB_METATYPES[] entries. I guess the properties for files is quite different in more recent versions of RB?

Thank you again for your help and for making this plugin possible for many users! I hopefully will get it to work for me, but if not I still very much appreciate your contribution to the community!

Revision history for this message
Eric Williams (ewilliams) said :
#6

I'm going to give up on this front. I decided to upgrade to the 12.04 when it comes out and I will hopefully have no problems at that point. Thanks for all of your help and for putting this wonderful addon into RB!