• 1
  • 32
  • 33
  • 34(current)
  • 35
  • 36
  • 117
[ARCHIVED - WON'T UPDATE] XSqueeze - Squeezebox player for XBMC
I know I was supposed to try running squeezeslave separately - but - Can either of you tell me exactly how to execute the run squeezeslave command in RPI Openelec / putty? I keep getting "unknown command".
Thanks for any help, I am still on a steep learning curve...
Reply
Quote:18:38:16 T:8870192 NOTICE: start dvd mediatype detection
18:38:16 T:8870192 NOTICE: initializing playlistplayer
18:38:16 T:8870192 NOTICE: DONE initializing playlistplayer
18:38:18 T:8870192 NOTICE: initialize done
18:38:18 T:8870192 NOTICE: Running the application...
18:38:18 T:3068132208 NOTICE: -->Python Interpreter Initialized<--
18:38:18 T:8870192 NOTICE: Webserver: Starting...
18:38:18 T:8870192 NOTICE: WebServer: Started the webserver
18:38:18 T:3059739504 NOTICE: -->Python Interpreter Initialized<--
18:38:18 T:8870192 NOTICE: starting upnp renderer
18:38:19 T:8870192 NOTICE: ES: Starting event server
18:38:19 T:2982120304 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
18:38:19 T:2982120304 NOTICE: UDP: Listening on port 9777
18:38:19 T:8870192 ERROR: JSONRPC Server: Failed to connect to sdpd
18:38:19 T:8870192 NOTICE: starting zeroconf publishing
18:38:21 T:3059739504 NOTICE: StorageServer Module loaded RUN
18:38:21 T:3059739504 NOTICE: StorageClient-1.3.0 Starting server
18:38:21 T:3059739504 NOTICE: StorageServer-1.3.0 Storage Server starting /home/xbmc/.xbmc/userdata/Database/commoncache.db
18:38:21 T:3032476528 NOTICE: -->Python Interpreter Initialized<--
18:38:22 T:30817136 WARNING: FillBuffer: curl failed with code 7
18:38:22 T:30817136 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
18:38:46 T:3032476528 NOTICE: -->Python Interpreter Initialized<--
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: ### uname is: ('Linux', 'xbmc', '3.0.0-16-generic', '#29-Ubuntu SMP Tue Feb 14 12:49:42 UTC 2012', 'i686')
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: ### System is linux
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: ### (linux/arm) chmod +x the Squeezeslave binaries - success
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: ### XSqueeze Starting ...
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: ### Author: bossanova808
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: ### Version: 0.8.2
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: Unable to suspend XBMC AE: 'module' object has no attribute 'audioSuspend'
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: Installed custom keymap
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: XBMC Notificaton Requested: [XBMC.Notification(Starting XSqueeze and Connecting to LMS,Please wait a moment...(up to 10 seconds)...,6000,/home/xbmc/.xbmc/addons/script.xsqueeze/icon.png)]
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: Starting local Squeezeslave, system is linux
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: Attempting to start Squeezelave: ['/home/xbmc/.xbmc/addons/script.xsqueeze/resources/bin/squeezeslave-1.2-376-lnx26/squeezeslave-lnx26-1.2-376', '-m00:00:00:00:00:02', '-o10', 'media.home']
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:47 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:47 T:3032476528 NOTICE: XSqueeze-0.8.2: Process ID for Squeezeslave is 1441
18:38:47 T:3032476528 NOTICE: ****************************************************************
18:38:52 T:3032476528 NOTICE: Previous line repeats 1 times.
18:38:52 T:3032476528 NOTICE: XSqueeze-0.8.2: Attempting to connect to LMS named [media.home] at IP: media.home on CLI port: 9090
18:38:52 T:3032476528 NOTICE: ****************************************************************
18:39:17 T:3032476528 NOTICE: Previous line repeats 1 times.
18:39:17 T:3032476528 NOTICE: XSqueeze-0.8.2: Couldn't connect to server!
18:39:17 T:3032476528 NOTICE: ****************************************************************
18:39:17 T:3032476528 NOTICE: Previous line repeats 1 times.
18:39:17 T:3032476528 NOTICE: XSqueeze-0.8.2: XBMC Notificaton Requested: [XBMC.Notification(Couldn't connect to server!,Check your server settings,6000,/home/xbmc/.xbmc/addons/script.xsqueeze/icon.png)]
18:39:17 T:3032476528 NOTICE: ****************************************************************
18:39:17 T:3032476528 NOTICE: Previous line repeats 1 times.
18:39:17 T:3032476528 NOTICE: XSqueeze-0.8.2: ### Failed to create SqueezePlayer object
18:39:17 T:3032476528 NOTICE: ****************************************************************
18:39:17 T:3032476528 ERROR: Traceback (most recent call last):
18:39:17 T:3032476528 ERROR: File "/home/xbmc/.xbmc/addons/script.xsqueeze/resources/lib/classes/NowPlayingWindow.py", line 190, in __init__
18:39:17 T:3032476528 ERROR: self.player = SqueezePlayer()
18:39:17 T:3032476528 ERROR: File "/home/xbmc/.xbmc/addons/script.module.xsqueezecommon/lib/XSqueezeCommon.py", line 218, in __init__
18:39:17 T:3032476528 ERROR: self.sc.connect()
18:39:17 T:3032476528 ERROR: File "/home/xbmc/.xbmc/addons/script.module.xsqueezecommon/lib/pylms/server.py", line 59, in connect
18:39:17 T:3032476528 ERROR: self.login()
18:39:17 T:3032476528 ERROR: File "/home/xbmc/.xbmc/addons/script.module.xsqueezecommon/lib/pylms/server.py", line 72, in login
18:39:17 T:3032476528 ERROR: result = self.request("login %s %s" % (self.username, self.password))
18:39:17 T:3032476528 ERROR: File "/home/xbmc/.xbmc/addons/script.module.xsqueezecommon/lib/pylms/server.py", line 94, in request
18:39:17 T:3032476528 ERROR: response = self.__decode(self.telnet.read_until(self.__encode("\n"))[:-1])
18:39:17 T:3032476528 ERROR: File "/usr/lib/python2.7/telnetlib.py", line 306, in read_until
18:39:17 T:3032476528 ERROR: self.fill_rawq()
18:39:17 T:3032476528 ERROR: File "/usr/lib/python2.7/telnetlib.py", line 516, in fill_rawq
18:39:17 T:3032476528 ERROR: buf = self.sock.recv(50)
18:39:17 T:3032476528 ERROR: error: [Errno 104] Connection reset by peer
18:39:17 T:8870192 ERROR: ClearBlock: Trying to clear non existent block /home/xbmc/.xbmc/addons/script.xsqueeze

Here is the relevant dump of the log from XBMC on Linux (x86) - Eden..

Whats strange is that even though it says couldn't connect to server, it actually does and I can play audio through it. It also appears in the list of players on the server.
So it seems the only issue is that it reports an error and the GUI doesn't load.

Thanks[/code]
Reply
(2012-12-06, 18:34)StefanK Wrote: I know I was supposed to try running squeezeslave separately - but - Can either of you tell me exactly how to execute the run squeezeslave command in RPI Openelec / putty? I keep getting "unknown command".
Thanks for any help, I am still on a steep learning curve...

Hi Stefan

You'll need to change directory to where the squeezeslave binary is (in your addons/script.xsqueeze directory, but you'll have to find that as it varies depending on your distro). Then once in there you run it as ./squeezeslave-version -commands, basically. The squeezeslave wiki is useful. You're getting command not found at the moment because the squeezeslave binary isn't in the searched path for executables...hence you needing to move tot he right place, then use ./squeezesalve to tell it to run the local binary.

@nigma2k

Can you post your entire log via pastebin (log snippets are actually against the forum rules here!).

Can you try running the same command from the command line and seeing what output you get:

/home/xbmc/.xbmc/addons/script.xsqueeze/resources/bin/squeezeslave-1.2-376-lnx26/squeezeslave-lnx26-1.2-376', '-m00:00:00:00:00:02', '-o10', 'media.home'

(without the quotes on the args).

My guess is this is yet another python process open issue - that's the messy cross platform stuff. I have tested on OsX and Openeelc and they both work, but I don't have anything to put xbmcuntu on....

If you know any Python I can point you at where it will be going wrong for you to muck about... basically it's lines 266 to 276 of default.py:

Code:
log ("Attempting to start Squeezelave: " + str(exe))
          try:
            #need this to stop windows opening a console window
            if constants.SYSTEM.startswith("win"):
              slaveProcess = subprocess.Popen(exe, creationflags=0x08000000, shell=False)
            else:
              slaveProcess = subprocess.Popen(exe, shell=False)
          except Exception as inst:
            log("Failed creating squeezeslave process", inst)
            notify(LANGUAGE(19610),LANGUAGE(19611))
            cleanup(andexit=True)

Another thing to try - can you manually telnet to media.home:9090 and issue LMS CLI commands?

I don't think there is a general ubuntu issue, I presume others are using it on that platform, but I don't know for sure..........anyone?
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
(2012-12-07, 00:55)bossanova808 Wrote: I don't think there is a general ubuntu issue, I presume others are using it on that platform, but I don't know for sure..........anyone?
I was using XBMCbuntu until about 2 weeks ago (Jumped back to the Openelec beta builds). I had no issues with Xsqueeze/squeezeslave during the time that I was using XBMCbuntu.
Reply
(2012-12-07, 00:55)bossanova808 Wrote: hence you needing to move to the right place, then use ./squeezeslave to tell it to run the local binary.

Thank you, "./" did the trick for me. I am running squeezeslave-1.2-381-armhf-lnx32 which gets me
./squeezeslave-1.2-381: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

(2012-06-08, 13:57)Paul Webster Wrote: Running Squeezeslave on Openelec fro RPi fails because it cannot find libasound.so.2

Is there any solution on this?
Reply
Find a distro with this file and copy it over?? But there will likely be other things required...I am sure there is a way to get squeezeslave to list its depends...

Basically, probably waiting is the way to go - the Raspbmc folk say:

Upgrade to Kernel 3.6.

Raspbmc now uses the kernel 3.6. You probably won’t notice much of a difference, however, it should be noted that the ALSA driver for the BCM2835 is broken in this release. We do expect this to be fixed in the near future.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
Hi Bossanova and all xbmc users,

I am running xbmc on 2 windows7 pcs with xsqueeze installed on both of them.
I have one problem with not being able to connect to an existing instance of xsqueeze.

e.g. I start xsqueeze from programs>click info button on remote in order to lunch xsqueeze chooser>click back button on remote>
i am returned to home screen and get an info message "please don't run xchooser directly",
at this point i continue hearing music playing but if i go to programs>xsqueeze and try to enter, nothing happens.
So the question is how to connect to an existing xsqueeze instance in order to select what is playing?

Thanks in advance.
Reply
Yep just like it says DO NOT RUN XSQUEEZE CHOOSER outside of XSqueeze. Use 'info', 'i' to run the chooser from within a running instance of XSqueeze....which must already be configured in its own settings.

So, both PCs need to bu runnign XSqueeze. Set them up with seprate MAC ids, and then get them to play in sync. Then on either machine, from within XSqueeze, hit 'i' to run the chooser, choose some music - and both will start to play your new choice.

Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
(2012-12-10, 01:00)vecnar Wrote: Hi Bossanova and all xbmc users,

I am running xbmc on 2 windows7 pcs with xsqueeze installed on both of them.
I have one problem with not being able to connect to an existing instance of xsqueeze.

e.g. I start xsqueeze from programs>click info button on remote in order to lunch xsqueeze chooser>click back button on remote>
i am returned to home screen and get an info message "please don't run xchooser directly",
at this point i continue hearing music playing but if i go to programs>xsqueeze and try to enter, nothing happens.
So the question is how to connect to an existing xsqueeze instance in order to select what is playing?

Thanks in advance.

I have seen this behavior a couple of times. Instead of the 'back' button, try using the 'home' button on your remote to get from 'chooser' to Xsqueeze main display.
Reply
Oh yeah, I mis-read that. Yes, this is because the window return path for addons started via an icon on your home screen and from the programmes menu is different - basically it's an XBMC window layering bug.

As per the wiki - strongly recommend you add XSqueeze to your home screen (so skin settings->addons->programs addons->add XSqueeze). It was designed to be run from there..and you will always drop back to the main XSqueeze from chooser in the case (with back or home or by choosing music).

Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
(2012-12-10, 05:57)bossanova808 Wrote: Oh yeah, I mis-read that. Yes, this is because the window return path for addons started via an icon on your home screen and from the programmes menu is different - basically it's an XBMC window layering bug.

As per the wiki - strongly recommend you add XSqueeze to your home screen (so skin settings->addons->programs addons->add XSqueeze). It was designed to be run from there..and you will always drop back to the main XSqueeze from chooser in the case (with back or home or by choosing music).

I have to read wiki more carefully as i have read the wiki one more time this morning and found it as well.

Sorry for annoyance but i have a few more questions.
My plan is to be able to manage multiple xbmc xsqueeze using android phone. in order to do that i need to have xsqueeze turned on automatically without going to xbmc pc. I asked in the forum and manage to autostart add on using autoexec.py script below
import xbmc
xbmc.executebuiltin("RunAddon(script.xsqueeze)")
This would work fine if xbmc would be dediated only for xsqueeze but in my case i use xbmc for watching videos,tv,etc.

Questions:
1) Is there a way to autostart xsqueeze in the background and keep it running all the time?
2) Is it possible to connect to an existing instance of xsqueeze and change song or radio station?

Thanks,
Oleg
Reply
Hi Oleg

Sounds more like you just want to run squeezeslave manually in the background and not actually use XSqueeze to control it. In which case you're probably better of investigating running squeezeslave as a service at the OS level when you boot (or just using task scheduler in windows to run at logon), rather than running it inside XBMC.

Your main issue then will be that XBMC will attempt to hog the audio device if you're on windows and using WASAPI....and possibly similiar issues on other platforms. But there's no need to use XSqueeze if you don't want to use the UI to control playback...




Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
(2012-12-11, 01:44)bossanova808 Wrote: Hi Oleg

Sounds more like you just want to run squeezeslave manually in the background and not actually use XSqueeze to control it. In which case you're probably better of investigating running squeezeslave as a service at the OS level when you boot (or just using task scheduler in windows to run at logon), rather than running it inside XBMC.

Your main issue then will be that XBMC will attempt to hog the audio device if you're on windows and using WASAPI....and possibly similar issues on other platforms. But there's no need to use XSqueeze if you don't want to use the UI to control playback...

Hi,
You are correct in that i want to run squeezeslave manually but you are wrong in that i don't want to control it using xsqueeze.
Lets say i start squeezeslave on windows startup or any other way and control squeezeslave using android phone but then i might not want to use android phone as i am next to computer and would like to manage playlist from xbmc, will i be able to connect to a running instance of squeezeslave, control it and exit xsqueeze without ending squeezslave?

I hope it is possible to do so.

Thanks for your help and guidance!

Reply
Yep just run the squeezeslave manually at the OS level and then configure XSqueeze to run in controller only mode and connect to this local instance.

Easy.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
(2012-12-12, 02:18)bossanova808 Wrote: Yep just run the squeezeslave manually at the OS level and then configure XSqueeze to run in controller only mode and connect to this local instance.

Easy.

Sorry for late replies, working long hours and xmas shopping doesn't help Big Grin
I am very thankfull that you have tested it and made sure it is working, so now i can do the same.
Thank you very much one more time!
Reply
  • 1
  • 32
  • 33
  • 34(current)
  • 35
  • 36
  • 117

Logout Mark Read Team Forum Stats Members Help
[ARCHIVED - WON'T UPDATE] XSqueeze - Squeezebox player for XBMC3