Kodi Community Forum

Full Version: Spotify for Kodi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
@marcelveldt

Getting login errors on latest (1.1.25) - says login failed (definitely have the correct login/pass)

Getting an error in the log "No module named webservice"
I'm on LibreElec 8 (Krypton 17.3)

Code:
20:34:46.817 T:140193143179008   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named webservice
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.audio.spotify/service.py", line 13, in <module>
from main_service import MainService
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 13, in <module>
from webservice import WebService
ImportError: No module named webservice
-->End of Python script error report<--
Should it also work with Spotify Family account?
I've created an account under my Spotify Family for my Kodi instance but in the addon it constantly tells me that there is no usename or password or they are wrong although they are filled in.
  • Hardware: PC
  • OS: Windows 10
  • Kodi version: 17.3
  • Addon version: 1.1.25
(2017-06-24, 12:44)jurialmunkey Wrote: [ -> ]@marcelveldt

Getting login errors on latest (1.1.25) - says login failed (definitely have the correct login/pass)

Getting an error in the log "No module named webservice"

Sorry, my fault in the git commit.
It's now fixed in the new version.
(2017-06-24, 12:46)Rouzax Wrote: [ -> ]Should it also work with Spotify Family account?
I've created an account under my Spotify Family for my Kodi instance but in the addon it constantly tells me that there is no usename or password or they are wrong although they are filled in.

Yes, that should indeed work. In fact I've added support for muliple accounts so you can easy switch between users.
Please test with version 1.1.26 because I made a mistake with version 1.1.25
(2017-06-24, 12:46)Rouzax Wrote: [ -> ]Should it also work with Spotify Family account?
I've created an account under my Spotify Family for my Kodi instance but in the addon it constantly tells me that there is no usename or password or they are wrong although they are filled in.
  • Hardware: PC
  • OS: Windows 10
  • Kodi version: 17.3
  • Addon version: 1.1.25
Why shouldn't it? The Family Account is the same as the usual premium. The only difference is that you invite your family-members to join your creditcard. Sounds as if you have introduced/invited a new family member, which is called "Kodi" ? That would mean you are trying to create a seperate (second) new spotify account. Obviously every account/family member has its own username and password, as every member has its own account and its own playlists etc.
(2017-06-22, 20:21)Didko Wrote: [ -> ]@marcelveldt, should we expect any new releases? I'm asking for RPi 1 support..

1.1.27 now also includes the special binary built for the pi 1/zero.
In theory it should work but I didn't test it. Please give it a try and let me know.
Code:
21:03:25.652 T:1577055136  NOTICE: plugin.audio.spotify --> reported architecture: armv6l
21:03:25.695 T:1577055136  NOTICE: plugin.audio.spotify --> The Raspberry Pi 1 is not (yet) supported - local playback unavailable

Sad
(2017-06-24, 21:14)Didko Wrote: [ -> ]Sad

You're testing with 1.1.26... please test with 1.1.27
Here is with 1.1.27.

Code:
21:32:10.718 T:1773138848  NOTICE: plugin.audio.spotify --> reported architecture: armv6l
21:32:11.932 T:1773138848  NOTICE: plugin.audio.spotify --> Architecture detected. Using librespot binary /storage/.kodi/addons/plugin.audio.spotify/resources/lib/librespot/linux_pi/librespot
21:32:12.716 T:1747973024 WARNING: CSkinInfo: failed to load skin settings
21:32:12.933 T:1773138848  NOTICE: plugin.audio.spotify -->
21:32:12.934 T:1773138848  NOTICE: plugin.audio.spotify --> Error while verifying librespot. Local playback is disabled.
(2017-06-24, 21:33)Didko Wrote: [ -> ]Here is with 1.1.27.

Code:
21:32:10.718 T:1773138848  NOTICE: plugin.audio.spotify --> reported architecture: armv6l
21:32:11.932 T:1773138848  NOTICE: plugin.audio.spotify --> Architecture detected. Using librespot binary /storage/.kodi/addons/plugin.audio.spotify/resources/lib/librespot/linux_pi/librespot
21:32:12.716 T:1747973024 WARNING: CSkinInfo: failed to load skin settings
21:32:12.933 T:1773138848  NOTICE: plugin.audio.spotify -->
21:32:12.934 T:1773138848  NOTICE: plugin.audio.spotify --> Error while verifying librespot. Local playback is disabled.

Sorry, forgot to ask. Can you test again with debug logging enabled and send me the log ?
It prints some debug lines so I can find out why it failed.
How can I enable it? (Edit: got it!)
Also, that weird popup about a browser login still appears.
Here you go!


@Karellen - Log Removed
@Didko,

We do not allow Logs to be posted in the Forum.

Please post at a pastebin type site, and link back here. If unsure how to do that, follow these instructions from step 3 onwards.

6. Upload the results
The log file is named kodi.log and it is located in the Kodi directory described in Step 2 above. It is one level above the \userdata directory in which you modified the advancedsettings.xml file
You must locate this log file and copy it's contents to a pastebin type site as follows:
  1. Navigate to the \kodi directory as described in Step 2, and locate the file named kodi.log
  2. Open the file with Notepad and copy all the contents of the document
  3. Locate a Pastebin type site. Two examples are https://pastebin.com/ or https://paste.ubuntu.com/
  4. Paste the contents of the kodi.log file
  5. Press Paste or Generate
  6. When the screen refreshes with your paste, copy the entire address in the address bar and paste it into a new message in your thread
@Karellen, thanks for that. I was looking for such kind of sites but couldn't find any.

So, here is the log -> https://pastebin.com/bDedMbqr
Firstly, can I say thanks for this awesome work - your responsiveness and work on the forum is amazing.

I'm running my Kodi on a Linux (Debian) machine, on a Celeron N3150. That's a quad core mobile chipset, 1.6GHz. It's not fast, but not slow either.

After installing I have Spotify working (logged in, can see my playlists, can play music). However, the interface is very slow - it takes seconds to open a given menu, to start streaming a track etc. It works well, and is useable enough, I'm not sure if that is expected experience, or if there's something in my configuration that is making it slow.

With Spotify connect it is showing up in my other Spotify devices, but when I select Kodi and ask it to play, I see the CPU on the machine ramp up, but no response on the UI (and no playing). I get different behaviour different times - sometimes the spotify connect option for this machine disappears, sometimes it stays. I do notice that when I play a track through the UI, it frequently doesn't play first time (and gives an error in the log about timeout), then playing again it plays straight away. This is pointing to a download latency perhaps.

Looking through the debug log I'm not seeing a lot, as an example:
10:11:58.229 T:139815241635584 DEBUG: plugin.audio.spotify --> DEBUG:librespot:Confusedpirc: kMessageTypeNext "Paul’s MacBook Pro" 4ef7b047883201474e614b5bf6cf6cc38f8b2d2c 9 0
10:11:58.284 T:139815241635584 DEBUG: plugin.audio.spotify --> DEBUG:librespot::player: command=Load(SpotifyId(u128 { high: 8116704705740095630, low: 13388111636356860763 }), true, 0)
10:11:58.663 T:139815241635584 NOTICE: plugin.audio.spotify --> Connect player preloaded track 3qyeNnFY67zX6VmmIbzPsL
10:11:58.664 T:139815241635584 DEBUG: plugin.audio.spotify --> INFO:librespot::player: Loading track "Body to Body" [3qyeNnFY67zX6VmmIbzPsL]
10:11:58.847 T:139815241635584 DEBUG: plugin.audio.spotify --> DEBUG:librespot:Confusedpirc: kMessageTypeNotify "Kodi (myth)" 823d78e2420b1d223618c01c1136633ac302a8f5 5 1498342318228
10:11:59.068 T:139815241635584 DEBUG: plugin.audio.spotify --> DEBUG:librespot::audio_file: Downloading file c68fec392955ab9e020cd544b5658d115c140802
10:12:00.275 T:139815241635584 DEBUG: plugin.audio.spotify --> INFO:librespot::player: Track "Body to Body" [3qyeNnFY67zX6VmmIbzPsL] loaded
10:12:03.593 T:139813027444480 DEBUG: Thread JobWorker 139813027444480 terminating (autodelete)
10:12:03.594 T:139813894203136 DEBUG: Thread JobWorker 139813894203136 terminating (autodelete)
10:12:03.621 T:139813086193408 DEBUG: Thread JobWorker 139813086193408 terminating (autodelete)
10:12:03.841 T:139814875690752 DEBUG: CWebServer[8080]: request received for /jsonrpc?Base
10:12:17.151 T:139816953639040 DEBUG: Previous line repeats 5 times.
10:12:17.151 T:139816953639040 NOTICE: NFS is idle. Closing the remaining connections.
10:12:23.868 T:139814875690752 DEBUG: CWebServer[8080]: request received for /jsonrpc?Base
10:12:34.162 T:139813919381248 DEBUG: Previous line repeats 5 times.
10:12:34.162 T:139813919381248 INFO: JSONRPC Server: Disconnection detected
10:12:36.298 T:139815241635584 DEBUG: plugin.audio.spotify --> DEBUG:librespot::audio_file: File c68fec392955ab9e020cd544b5658d115c140802 complete
10:12:38.222 T:139815241635584 DEBUG: plugin.audio.spotify --> DEBUG:librespot:Confusedession: Session[0] strong=3 weak=6

Before I spend time on this I wanted to check if there are known things here:
1. Are my expectations of performance unreasonable - is it normally a few seconds to do things because it's pulling stuff down from Spotify?
2. I'm using a shared metadata install - so a lot of what goes on interacts with a central MYSQL database. Is that an issue, are there known issues? I don't really need that config any more as I only have one Kodi running, but I thought I might have more than one again in the future
3. Is there potentially something with web access - is it perhaps timing out because of latency on the network? I get about 24 Mbps over a 3G connection (rural so no cabled connection for me), is that potentially the cause?

Quite happy to provide the full log, but thought I'd ask the basic questions first before I did so.