python-librespot icon indicating copy to clipboard operation
python-librespot copied to clipboard

add a readme

Open Sispheor opened this issue 6 years ago • 4 comments

Hi! Thanks for your work! You should add a little readme with a doc on how to build the library.

Do you think that it could be pushed into pypi (pip)?

Sispheor avatar Aug 02 '17 19:08 Sispheor

So, what I have done so far (on ubuntu 16.04)

Installed Rust

curl -sf -L https://static.rust-lang.org/rustup.sh | sh

Compiled your lib

cargo build

This gave me a liblibrespot.so. How I'm supposed to use it? I tryed to rename it librespot.so and placed it into the examples folder but when I run

dynamic module does not define init function (initlibrespot)

I tried also to add the module to the path by adding this at the beginning.

import sys
sys.path.append('.')

Sorry for being that noob :)

Sispheor avatar Aug 02 '17 21:08 Sispheor

Did you try the work around mentioned in this issue https://github.com/plietar/python-librespot/issues/3

shaunmulligan avatar Aug 02 '17 21:08 shaunmulligan

Hi, thanks for you answer. Yes I tried a symlink. Same error

Traceback (most recent call last):
  File "/home/nico/Documents/python-librespot/examples/play.py", line 5, in <module>
    from librespot import Session, SpotifyId
ImportError: dynamic module does not define init function (initlibrespot)

Sispheor avatar Aug 02 '17 21:08 Sispheor

It' doesn't work with python 2.7. And with python 3.5 I have an authentication error...

Sispheor avatar Aug 05 '17 14:08 Sispheor