This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok 2.2 collection broken on FreeBSD

Tags: None
(comma "," separated)
jnr
Registered Member
Posts
4
Karma
0
OS
Hello all, I'd like to give Amarok2 a shot now that it's matured a bit, but I'm unable to import my music collection.

When I set up my collection folder and tell it to scan it finds no music and spits out this message:
Code: Select all
amarokcollectionscanner: Unknown option '--savelocation'.
amarokcollectionscanner: Use --help to get a list of available command line options.


I also tried importing my Amarok 1.4 database, but it only pulls in 1,715 of my ~50,000 tracks. It seems random in what it finds. Most of the albums in my Amarok 2 library have but one or two tracks.

During the Amarok 1 import, I get a lot of messages like this on my console:
Code: Select all
TagLib: Could not open file file:///usr/home/jnr/Media/Music/V/Various%20Artists/beatmania%20IIDX%205th%20Style%20Original%20Soundtrack/28%20-%20Sometime.mp3
TagLib: Could not open file file:///usr/home/jnr/Media/Music/Z/Zu/Igneo/05%20-%20Monte%20Zu.mp3
TagLib: Could not open file file:///usr/home/jnr/Media/Music/V/Venetian%20Snares/The%20Chocolate%20Wheelchair%20Album/06%20-%20Epidermis.mp3


My computer is running FreeBSD 8.0 amd64 with a raidz1 array holding my music. Amarok 2.1 had this same problem when I tried it months ago on FreeBSD 7.2, but I waited for 2.2 to be committed to Ports in case the problem was fixed. I erased my amarok preferences and database before trying 2.2.

If anyone has any suggestions I'd love to hear them :)
jnr
Registered Member
Posts
4
Karma
0
OS
Hello again. Excuse the double-post, but I just updated to 2.2.2 through Ports and am still unable to scan a collection.

Code: Select all
amarokcollectionscanner: Unknown option '--savelocation'.
amarokcollectionscanner: Use --help to get a list of available command line options.
QKqueueFileSystemWatcherEngine: error during kevent wait: Interrupted system call
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
So, after looking at the code, I think I know what happened there:

Amarok 2.2.2 is using a new feature of the "amarokcollectionscanner" tool, which requires the argument "--savelocation". It's not yet listed if you type "amarokcollectionscanner --help", but that's only a small oversight, we will fix that.

The real problem:

The version of your scanner is probably not the one from Amarok 2.2.2, but instead from an older Amarok version. One way this could happen is that you have installed it in two different places (from a previous install).

Try to search your system for the file "amarokcollectionscanner", please.


--
Mark Kretschmann - Amarok Developer
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
Ok, I have added this to "--help", to make it easier to tell if the scanner version is correct (will appear in Amarok 2.2.3).


--
Mark Kretschmann - Amarok Developer
jnr
Registered Member
Posts
4
Karma
0
OS
Aha, that sounds like exactly what happened. I do indeed have two copies of amarokcollectionscanner:

Code: Select all
[jnr@Emi#jnr]locate amarokcollectionscanner
/usr/local/bin/amarokcollectionscanner
/usr/local/kde4/bin/amarokcollectionscanner


And the one in /bin from 1.4.10 is first in the path:
Code: Select all
[jnr@Emi#jnr]echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/jnr/bin:/usr/local/kde4/bin/
jnr
Registered Member
Posts
4
Karma
0
OS
Everything seems to work fine after changing the path and starting Amarok:
Code: Select all
[jnr@Emi#jnr]export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/kde4/bin:/usr/local/bin:/home/jnr/bin


I'll make a launcher script to do this and then launch Amarok, lest I make the change permanently and break 1.4 in the same way :)


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]