tthomas48 / musiccabinet

Artist radio, genre radio, related artists and more. Based on last.fm knowledge and your music.
10 stars 0 forks source link

Unable to compile #3

Open vinceblake opened 10 years ago

vinceblake commented 10 years ago

I have been unable to compile this -- some Spotify-related missing dependencies?

tthomas48 commented 10 years ago

Have you compiled libjahspotify? After you do a mvn install locally, my hunch is that it will work.

https://github.com/tthomas48/libjahspotify

I'd like to make this optional at some point.

joris-77 commented 9 years ago

Saw your post on the musiccabinet forum and I am really happy you are doing something with this great subsonic fork.

So I tried it out, I am also seeing some error related to spotify, but I did install libjahspotify. Any idea what is going wrong & how I can fix it?

This is the error while I do mvn compile

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project musiccabinet-server: Compilation failure [ERROR] /home/joris/musiccabinet/musiccabinet/musiccabinet-server/src/main/java/com/github/hakko/musiccabinet/service/spotify/MissingArtistService.java:[65,50] error: cannot find symbol

tthomas48 commented 9 years ago

Hmm... that's definitely in the Spotify code, but I'm not sure what's going on. Could you pipe to a file and send me the output? Something like this:

mvn compile > compile.log

joris-77 commented 9 years ago

Thanks for your fast response! mvn compile http://sprunge.us/gOJW mvn compile -e http://sprunge.us/dVFJ

joris-77 commented 9 years ago

Not sure if it's helpful but this is the output when I compile libjahspotify. Looks good to me... mvn clean install -> http://sprunge.us/OhhP

tthomas48 commented 9 years ago

And you're using this libjahspotify?

https://github.com/tthomas48/libjahspotify/

joris-77 commented 9 years ago

yeah and that one seemed to have installed correctly. How can I test this to be sure?

tthomas48 commented 9 years ago

The method 'readStarredPlaylist' is only in my fork of the jahspotify library.

joris-77 commented 9 years ago

Oh damn! I am an idiot, sorry for wasting your time...

I just blindly cut & pasted git clone git://github.com/nvdweem/libjahspotify.git So yeah I was not running your fork of libjahspotify... Musiccabinet compiles fine now.

tthomas48 commented 9 years ago

Not wasting my time at all... I need to at least update the README on subsonic. Please feel free to open bugs on the UI. There are quite a few. I still want to do more of an overhaul.

evanjt commented 9 years ago

Which version of subsonic is this compiled on? I spent a lot of time in the past trying to get things to work but I needed a premium account on spotify for the API, even though I don't use Spotify. But I'd like to get things going again, madsonic is not really an alternative :)

tthomas48 commented 9 years ago

It compiles against the subsonic fork in my repo. It works OK, but I'm starting to focus on isolating musiccabinet so it can be added onto the most current version of subsonic and uses hsqldb. On May 24, 2015 10:52 PM, "evanjt" notifications@github.com wrote:

Which version of subsonic is this compiled on? I spent a lot of time in the past trying to get things to work but I needed a premium account on spotify for the API, even though I don't use Spotify. But I'd like to get things going again, madsonic is not really an alternative :)

— Reply to this email directly or view it on GitHub https://github.com/tthomas48/musiccabinet/issues/3#issuecomment-105116934 .

tthomas48 commented 9 years ago

So to compile git clone https://github.com/tthomas48/libjahspotify.git cd libjahspotify mvn install cd ../ git clone https://github.com/tthomas48/musiccabinet.git cd musiccabinet mvn install -DskipTests=true cd ../../ git clone https://github.com/tthomas48/subsonic.git cd subsonic/subsonic-main/ mvn install -DskipTests=true

That should build you a war. It is very much not stock musiccabinet anymore. There's also a version of Ultrasonic that has Spotify support built in, and some minor visual upgrades/bug fixes. It also handles jukebox mode better.

git clone https://github.com/tthomas48/Subsonic-Android.git

evanjt commented 9 years ago

fantastic, I'll give it a go. Actually I didn't expect a response and you just gave me exactly what I've been looking for, I admire your efforts to bring this project back alive - I just wish I could be more of a help :)

evanjt commented 9 years ago

I've been able to compile libjahspotify, but I'm having trouble with musiccabinet and subsonic. They seem to be related to spotify modules. Everything has been sourced from your repository. Any clue what it could be? libjahspotify -> http://sprunge.us/AVhF (seems successful) Musiccabinet -> http://sprunge.us/bebG Subsonic -> http://sprunge.us/AiWN

tthomas48 commented 9 years ago

Ok, I think I got it compiling. Sorry about that. A few notes:

This is probably the last version of musiccabinet I'll be working on. I'm currently working on making the main Subsonic branch accept plugins, and then hope to migrate musiccabinet and spotify support as separate plugins that can be integrated into the most recent version of Subsonic. Trying to keep them up to date has been a pain.

evanjt commented 9 years ago

So I feel like a doofus, but I still can't get it to work. I've never worked with maven before, but it's looking for jahspotify-api-0.0.2 which seems to be missing from your jahspotify, the libspotify/jahspotify/libjahspotify or google.

Let me tell you, this has so far been a learning experience, haha!

Missing:

1) jahspotify:jahspotify-api:jar:0.0.2

Try downloading the file manually from the project website.

Then, install it using the command: mvn install:install-file -DgroupId=jahspotify -DartifactId=jahspotify-api -Dversion=0.0.2 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=jahspotify -DartifactId=jahspotify-api -Dversion=0.0.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency: 1) com.github.hakko.musiccabinet:musiccabinet-server:jar:0.7.25 2) jahspotify:jahspotify-api:jar:0.0.2


1 required artifact is missing.

for artifact: com.github.hakko.musiccabinet:musiccabinet-server:jar:0.7.25

from the specified remote repositories: com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release), central (http://repo1.maven.org/maven2), repository.springframework.maven.release (http://maven.springframework.org/release), com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external)

tthomas48 commented 9 years ago

Crud. I updated the versions. Make sure to do a git pull in between to get the latest code:

cd libjahspotify git pull mvn install cd ../musiccabinet/musiccabinet-server/ git pull mvn install -DskipTests=true cd ../subsonic/subsonic-main git pull mvn install -DskipTests=true

On Fri, Jun 19, 2015 at 1:15 AM, evanjt notifications@github.com wrote:

So I feel like a doofus, but I still can't get it to work. I've never worked with maven before, but it's looking for jahspotify-api-0.0.2 which seems to be missing from your jahspotify, the libspotify/jahspotify/libjahspotify or google.

Let me tell you, this has so far been a learning experience, haha! Missing:

1) jahspotify:jahspotify-api:jar:0.0.2

Try downloading the file manually from the project website.

Then, install it using the command: mvn install:install-file -DgroupId=jahspotify -DartifactId=jahspotify-api -Dversion=0.0.2 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=jahspotify -DartifactId=jahspotify-api -Dversion=0.0.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency: 1) com.github.hakko.musiccabinet:musiccabinet-server:jar:0.7.25

2) jahspotify:jahspotify-api:jar:0.0.2

1 required artifact is missing.

for artifact: com.github.hakko.musiccabinet:musiccabinet-server:jar:0.7.25

from the specified remote repositories: com.springsource.repository.bundles.release ( http://repository.springsource.com/maven/bundles/release), central (http://repo1.maven.org/maven2), repository.springframework.maven.release ( http://maven.springframework.org/release), com.springsource.repository.bundles.external ( http://repository.springsource.com/maven/bundles/external)

— Reply to this email directly or view it on GitHub https://github.com/tthomas48/musiccabinet/issues/3#issuecomment-113387146 .

evanjt commented 9 years ago

nope, all up to date: http://sprunge.us/QLJi

I'm amazed at your patience with this, thank you!

tthomas48 commented 9 years ago

I'm amazed by your patience... :D

I hadn't updated the libjahspotify code. Try pulling that down again and recompiling. If I've done it correctly the version should be 0.0.2 in the pom.xml file.

On Fri, Jun 19, 2015 at 9:43 AM, evanjt notifications@github.com wrote:

nope, all up to date: http://sprunge.us/QLJi

I'm amazed at your patience with this, thank you!

— Reply to this email directly or view it on GitHub https://github.com/tthomas48/musiccabinet/issues/3#issuecomment-113534725 .

evanjt commented 9 years ago

I got musiccabinet to compile!!! But I'm having problems now with subsonic-main, it looks like the repos to build it are gone, or moved. I've tried compiling the subsonic verison by hakko and get similar problems. http://sprunge.us/ePIY

I think I've almost given up, but I've come so far!! haha

tthomas48 commented 9 years ago

What OS are you compiling on? There are some potential fixes for this issue on this Stack Overflow thread:

http://stackoverflow.com/questions/4764611/java-security-invalidalgorithmparameterexception-the-trustanchors-parameter-mus

On Sat, Jun 20, 2015 at 12:32 AM, evanjt notifications@github.com wrote:

I got musiccabinet to compile!!! But I'm having problems now with subsonic-main, it looks like the repos to build it are gone, or moved. I've tried compiling the subsonic verison by hakko and get similar problems. http://sprunge.us/ePIY

I think I've almost given up, but I've come so far!! haha

— Reply to this email directly or view it on GitHub https://github.com/tthomas48/musiccabinet/issues/3#issuecomment-113712684 .

evanjt commented 9 years ago

Ubuntu 14.04. Thank for that link, I seem to have solved one of the problems, but still continuing with ant now...I've been a little busy, I'll take another look later