tooxie / shiva-server

A RESTful API to your music collection
http://shiva.readthedocs.org/en/latest/intro.html
MIT License
556 stars 51 forks source link

Rough take-off #177

Open camsteffen opened 8 years ago

camsteffen commented 8 years ago

I'm just getting started with shiva. I really love the concept and want to contribute to the project but I'm having some issues.

First, ffmpeg is not provided in the latest Debian repo so I installed libav-tools instead. I'm not sure if that will cause problems. Then I ran into some other dependency issues while trying to run setup.py.

unable to execute 'x86_64-linux-gnu-gcc': No such file or directory error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

so I installed gcc (but I'm not sure if that was necessary) Next time, I got this error

c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory

so I installed libffi-dev. Then it installed successfully.

Now, I have the server running and I tried to open http://127.0.0.1:9002/artists but I got a 401 Unauthorized error. I'm not sure how to fix that so now I'm stuck.

tooxie commented 8 years ago

Hey @camsteffen,

I just replied to an issue from @fredele where I explain a little more in detail the problem you had with the 401. In short, you have ALLOW_ANONYMOUS_ACCESS set to False, which is the default, so every URL will return a 401. He points out that authentication should be disabled by default, and I totally agree since it's quite confusing.

Before going into the ffmpeg issue, keep in mind that it's only used for conversion. Unless you request a file in a different format than what's stored, it won't try to convert anything.

Regarding the libav-tools problem, right now Shiva uses ffmpeg specifically, but that's easy to change. The documentation explains how to use a different software for conversion. If you have time to write a new converter class I would really appreciate a pull request. Give a quick look to the section about contributing to Shiva. Otherwise I will install libav-tools and try to reproduce your issue.

And last, libffi-dev is installed by default in the systems I tried it, that's why I haven't run into that issue. Will include that in the documentation.

Thanks!