Kodi Community Forum
[ARCHIVED - WON'T UPDATE] XSqueeze - Squeezebox player for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [ARCHIVED - WON'T UPDATE] XSqueeze - Squeezebox player for XBMC (/showthread.php?tid=122199)



RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - DB1234 - 2013-11-29

Hello Bossanova,

I had a look at the LMS Logs and found this:
Code:
[13-11-29 22:22:46.8120] Slim::Plugin::CLI::Plugin::cli_cmd_login (755) Error: Connections require authentication, wrong creditentials received.
[13-11-29 22:22:46.8141] Slim::Plugin::CLI::Plugin::cli_cmd_login (756) Error: Disconnecting: 192.168.178.45:48649

I checked the entered credentials twice but have not found any mistakes. Then I removed the password in LMS but it still does't work. Next test was to setup XSqueeze as "visualization only". Without password on LMS it worked. Then I set back my password and I get same logs on both sides as posted. I have no idea what to check Sad


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - jaapp - 2013-11-30

What is the status regarding XSqueeze and Gotham? I tried enabling the addon but it is listed as incompatible. Though bossanavo has a posts stating that he managed to get it working on Gotham without issues.

Are there manual steps I can take to start testing XSqueeze under XBMC Gotham(specifically: under Ubuntu)? This way I'll be able to provide some early feedback, giving XSqueeze a head start.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2013-12-01

@jaapp - I just pushed an update with a python version bump for Gotham. It's now working fine here on Windows (was working up to a couple weeks ago when they bumped the API).

Working, but not perfect - seems some skinning stuff has changed to the NowPlaying xml is all messy. Will try and look at it soon but if oyu're handy with xml feel free to fix it up for me - it should just be moving a few coordinates.

@DB1234 - I don't think your issue is password related (I just chcked and that works here fine) - I think it can't start the player. Try starting it from the command line and seeing what you get there - OE/Rasp Pi has been all over the place with audio, so it may there's no also or something.

You can ask in their forums, but try squeezelite from the command line first to see what happens.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - jaapp - 2013-12-01

Thanks Bossanova! I tried it right away, but ran into some issues.

Version and specs:
Code:
10:31:38 T:140425015416704  NOTICE: Starting XBMC (13.0-ALPHA10 Git:ce4143c). Platform: x86 Linux 64-bit
10:31:38 T:140425015416704  NOTICE: Using Release XBMC x64 build, compiled Nov 28 2013 by GCC 4.8.1 for x86 Linux 64-bit 3.11.6
10:31:38 T:140425015416704  NOTICE: Running on Linux 64-bit (Ubuntu 13.10, 3.12.0+ x86_64)
10:31:38 T:140425015416704  NOTICE: Host CPU: AMD A10-5700 APU with Radeon(tm) HD Graphics, 4 cores available

Random error I found in the log:
Code:
10:14:05 T:140051046057728  NOTICE: -->Python Interpreter Initialized<--
10:14:05 T:140051046057728  NOTICE: ### XSqueeze Chooser-0.1.5 ### XSqueeze Chooser (Author: bossanova808) Starting ...
10:14:05 T:140051046057728  NOTICE: ### XSqueeze Chooser-0.1.5 ### Called as: ['plugin://plugin.program.xsqueezechooser/', '1', '']
10:14:05 T:140051046057728   ERROR: Traceback (most recent call last):
10:14:05 T:140051046057728   ERROR:   File "/home/xbmc/.xbmc/addons/plugin.program.xsqueezechooser/default.py", line 530, in <module>
10:14:05 T:140051046057728   ERROR:     buildRootListing()
10:14:05 T:140051046057728   ERROR:   File "/home/xbmc/.xbmc/addons/plugin.program.xsqueezechooser/default.py", line 92, in buildRootListing
10:14:05 T:140051046057728   ERROR:     addNode("New Music (latest 50 albums)","",NEW_MUSIC,"")
10:14:05 T:140051046057728   ERROR:   File "/home/xbmc/.xbmc/addons/plugin.program.xsqueezechooser/default.py", line 36, in addNode
10:14:05 T:140051046057728   ERROR:     "&cmd="+urllib.quote_plus(cmd)
10:14:05 T:140051046057728   ERROR:   File "/usr/lib/python2.7/urllib.py", line 1289, in quote_plus
10:14:05 T:140051046057728   ERROR:     if ' ' in s:
10:14:05 T:140051046057728   ERROR: TypeError: argument of type 'NoneType' is not iterable
10:14:05 T:140051046057728  NOTICE: ### XSqueeze Chooser-0.1.5 ### XSqueeze Chooser (Author: bossanova808) Exiting ....

Error that occurs right after I start XSqueeze:
Code:
10:14:30 T:140050327336704  NOTICE: -->Python Interpreter Initialized<--
10:14:30 T:140050327336704  NOTICE: ### XSqueeze-1.0.4 ### XSqueeze (Author: bossanova808) Starting ...
10:14:30 T:140050327336704  NOTICE: ### XSqueeze-1.0.4 ### Called as: ['']
10:14:40 T:140052576864128  NOTICE: Samba is idle. Closing the remaining connections
10:15:18 T:140050327336704  NOTICE: ### XSqueeze-1.0.4 ### Doing Cleanup
10:15:18 T:140050327336704  NOTICE: ### XSqueeze-1.0.4 ### XSqueeze (Author: bossanova808) Exiting ....
10:15:18 T:140052576864128  NOTICE: No Joystick name specified, loading default map
10:15:18 T:140050327336704  NOTICE: Previous line repeats 35 times.
10:15:18 T:140050327336704   ERROR: EXCEPTION: Non-Existent Control 1
10:15:18 T:140050327336704   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.RuntimeError'>
                                            Error Contents: Non-Existent Control 1
                                            Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/script.xsqueeze/default.py", line 118, in <module>
                                                viewer=ReadMeViewer()
                                              File "/home/xbmc/.xbmc/addons/script.xsqueeze/resources/lib/classes/ReadMeViewer.py", line 26, in __init__
                                                self.setControls()
                                              File "/home/xbmc/.xbmc/addons/script.xsqueeze/resources/lib/classes/ReadMeViewer.py", line 32, in setControls
                                                self.window.getControl( self.CONTROL_LABEL ).setLabel( "%s - %s" % ( heading, ADDONNAME +"-"+ VERSION ) )
                                            RuntimeError: Non-Existent Control 1
                                            -->End of Python script error report<--


It's non-functional at the moment. I'm willing to provide full logs via PM if necessary. But I assume this information is enough.

The XSqueeze script is referring to a non existant control. And the XSqueezechooser is iterating a non initialised variable?


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2013-12-01

Its not enough and out of order I'm afraid. XSqueeze has to run first the chooser is called from it. Can you do that and pm me a pastebin, thanks.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - jaapp - 2013-12-01

Sorry for troubling you. I had Aeon nox as a skin, which I assume is unsupported?

Anyhow XSqueeze is running. I have to tinker the settings I suppose, since I have no audio yet. Will report back.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2013-12-02

I think there is an Aeon skin file in the zip, but I am not sure on the state of it - I didn't make it. The XML side of it is not hard so feel free to knock up a Nox version and I can integrate it.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2013-12-03

Pushed 1.0.5 which detects Frodo or Gotham and serves up the appropriate skin file for Confluence

Let me know if you see any weirdness - the new positioning system isn't that well documented yet


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - CreasyMonster - 2013-12-06

Hi,

I've found in the last couple of days that XSqueeze has stopped working. I thought it was an update that wouldn't work with EDEN on MAC OSX 10.6.8 so I updated to Frodo 12.2 without success. The debug logs states that b808common and Xsqueezecommon modules are not found:

21:24:22 T:2692953408 DEBUG: ExecuteXBMCAction : To RunAddon(script.xsqueeze)
21:24:22 T:2692953408 INFO: initializing python engine.
21:24:22 T:2692953408 DEBUG: new python thread created. id=12
21:24:22 T:2953850880 NOTICE: Thread XBPyThread start, auto delete: false
21:24:22 T:2953850880 DEBUG: Python thread: start processing
21:24:22 T:2953850880 NOTICE: -->Python Interpreter Initialized<--
21:24:22 T:2953850880 DEBUG: Process - The source file to load is /Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/default.py
21:24:22 T:2953850880 DEBUG: Process - Setting the Python path to /Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.xbmcswift/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.simplejson/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.beautifulsoup/lib:/Applications/XBMC.app/Contents/Resources/XBMC/addons/script.module.pil/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.common.plugin.cache/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.simple.downloader/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.requests/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.mechanize/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.parsedom/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.xbmcswift2/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.elementtree/lib:/Applications/XBMC.app/Contents/Resources/XBMC/addons/script.module.pysqlite/lib:/Applications/XBMC.app/Contents/Frameworks:/Applications/XBMC.app/Contents/Frameworks/lib/python26.zip:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-darwin:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-mac:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-tk:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-old:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-dynload:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/site-packages:
21:24:22 T:2953850880 DEBUG: Process - Entering source directory /Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze
21:24:22 T:2953850880 DEBUG: Instantiating addon using automatically obtained id of "script.xsqueeze" dependent on version 2.1.0 of the xbmc.python api
21:24:22 T:2953850880 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 b808common
Traceback (most recent call last):
File "/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/default.py", line 16, in <module>
from b808common import *
ImportError: No module named b808common
-->End of Python script error report<--
21:24:22 T:2953850880 INFO: Python script stopped
21:24:22 T:2953850880 DEBUG: Thread XBPyThread 2953850880 terminating
21:24:22 T:2692953408 DEBUG: waiting for python thread 12 (/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/default.py) to stop
21:24:22 T:2692953408 DEBUG: python thread 12 (/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/default.py) destructed
21:24:22 T:2692953408 DEBUG: ------ Window Init (DialogKaiToast.xml) ------

Please could you give me a hint of what has gone wrong as it must be a specific error for me otherwise I would of seen more of this issue on this forum.

Thanks in advance,

CreasyMonster.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2013-12-06

@CreasyMonster - did you install vis the repo or maybe do a manual install via copy? You're missing bits that should come down automatically with the addon via the repo.

It's possible I broke the repo or something with the latest update - I haven't tried a clean install in a while. Ok - just tried one now and it worked fine. So maybe try 'force refresh' on the repo and re-installing (delete all *xsqueeze* and *808* from your addons folder so you're starting fresh).


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - CreasyMonster - 2013-12-07

Hi again,

Just tried what you have suggested a couple of times without any success:


Log file reports the same and Xsqueeze script fails.


11:38:23 T:2953850880 NOTICE: -->Python Interpreter Initialized<--
11:38:23 T:2953850880 DEBUG: Process - The source file to load is /Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/default.py
11:38:23 T:2953850880 DEBUG: Process - Setting the Python path to /Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze:/Applications/XBMC.app/Contents/Resources/XBMC/addons/weather.wunderground/resources/lib/wunderground:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.simplejson/lib:/Applications/XBMC.app/Contents/Resources/XBMC/addons/script.module.pil/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.requests/lib:/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.module.parsedom/lib:/Applications/XBMC.app/Contents/Resources/XBMC/addons/script.module.pysqlite/lib:/Applications/XBMC.app/Contents/Frameworks:/Applications/XBMC.app/Contents/Frameworks/lib/python26.zip:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-darwin:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-mac:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-tk:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-old:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-dynload:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/site-packages:
11:38:23 T:2953850880 DEBUG: Process - Entering source directory /Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze
11:38:23 T:2953850880 DEBUG: Instantiating addon using automatically obtained id of "script.xsqueeze" dependent on version 2.1.0 of the xbmc.python api
11:38:23 T:2953850880 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 b808common
Traceback (most recent call last):
File "/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/default.py", line 15, in <module>
from b808common import *
ImportError: No module named b808common
-->End of Python script error report<--
11:38:23 T:2953850880 INFO: Python script stopped
11:38:23 T:2953850880 DEBUG: Thread XBPyThread 2953850880 terminating
11:38:23 T:2692953408 DEBUG: waiting for python thread 9 (/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/default.py) to stop
11:38:23 T:2692953408 DEBUG: python thread 9 (/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/default.py) destructed


Looking at the log file it looks like pyhton path doesn't include the relevant module directories to find the modules?

Cheers,

CM


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2013-12-08

The scipt.module.b808common is required by the addon xsqueeze and it shouldn't install via the repo without it - if it can't find it you should get an unmet dependencies error. It lives where all your other addons live and is therefore, I believe, in the path by default.

Do you have a folder:

script.module.b808common in your (user) addons folder?

Inside it you should have:
C:\Users\Whatever\AppData\Roaming\XBMC\addons\script.module.b808common\lib\b808common.py (or the linux equivalent)

Have you got a Frodo install to try it on? It's working for me on both my main Frodo installs (2 windows, 1 linux) - and my Gotham test (windows).

Can you pastebin the entire log in case there is something else to be seen in it? (DM it you're worries about privacy)


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2013-12-08

Ok, I just did a clean install test again - removed all vestiges of my addons AND my repo. Installed repo, installed xsqueeze - no issues.

@creasy - there has to be someting odd about your install or setup....


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - Trixster - 2013-12-10

Hi, I finally managed to give XSqueeze a go on my OpenELEC Raspberry Pi running the latest Gotham build. Here are my thoughts.

My system is:

512mb Raspberry Pi running Gotham r16511, overclocked to 1Ghz. Skin = Confluence Modified, 1080p res
LMS 7.8.0 running on another 512mb Pi
Squeezebox Touch with 7.8.0
FLACs and MP3s streamed from a NAS

Installation went fine using the instructions on the XSqueeze xbmc wiki.

The problem is that XSqueeze seems to absolutely max out the Pi causing it to run at 100% all the time. Loading it up from clicking on the Home shortcut can take ages (5-10 seconds generally). Once it has loaded the interface again takes ages to register what track is being played, and changing track similarly takes an awfully long time (5 seconds to register user input). It doesn't matter whether I use the default Confluence skin or Confluence Modified. Gui sounds are off.

Great plugin but I think it's simply too much for a Raspberry Pi to cope with!

Anyone else managed to get it running snappily with an RPi?


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2013-12-10

It's written with a game loop approach much like xbmc itself - in other words it's really not designed (at all or...) for low power systems. Basically it's in a frantic update loop all the time nd almsot certainly saturating the Pi's cpu with all the back and forth messaging.

Startup speed is really dependent on your network - the player has to be started and register with the server before the main Ui starts (so I don't really care so much if it takes a bit)....but it would be good if the main ui was usable on the Pi of course.

You could try something if you like...go to

C:\Users\X\AppData\Roaming\XBMC\addons\script.xsqueeze\resources\lib\classes\NowPlayingWindow.py

(or your equivalent) - and on line 265, add a sleep:

Code:
with self.lock:
        xbmc.sleep(500)
        self.updateLineDisplay()

Note the indentation is critical, and use spaces, NOT tabs!

You can also try other values than 500 (this is milliseconds).

Whatever you put there will determine how quickly the UI tries to refresh the various bars, cover art, timers etc (and therefore how much back and forth polling there is between XBMC and your LMS).

You can also comment out some of the update features and remove the skin elements if you're content with a more basis UI.

Note - a Pi for running LMS is pretty crazy in and of itself - LMS is a slow, bloated pig of a server and I run it on an i7 and still wish it was quicker....so that won't help either.

When you've fixed all of this, shoot me the updated files and I can then maybe merge in some code to detect the Pi and strip things back a bit...