Jumpy: Jump into Python (and onto XBMC) Updated 22 Sep 2012

Discuss third-party additions, plugins and translations for PS3 Media Server

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby Hackashaq » Wed Nov 16, 2011 11:47 pm

infidel wrote:Hackashaq, I installed SHB30 also to see if I could replicate the problem. It seems there's something weird going on between subsonic and jumpy. When jumpy tries to open up xbmc.py I get an NPE in debug.log:
Code: Select all
[New I/O server worker #1-8] INFO  19:58:36.543 jumpy: adding root folder.
[New I/O server worker #1-8] INFO  19:58:36.544 jumpy: Found 1 scripts.
[New I/O server worker #1-8] INFO  19:58:36.545 jumpy: loading xbmc.py.
[New I/O server worker #1-8] INFO  19:58:36.773 java.lang.NullPointerException
[New I/O server worker #1-8] INFO  19:58:36.773    at net.pms.dlna.RootFolder.getAdditionalFoldersAtRoot(RootFolder.java:822)
[New I/O server worker #1-8] INFO  19:58:36.774    at net.pms.dlna.RootFolder.discoverChildren(RootFolder.java:153)
[New I/O server worker #1-8] INFO  19:58:36.774    at net.pms.dlna.DLNAResource.discoverChildren(DLNAResource.java:2075)

but if I remove subsonic.jar from plugins everything is normal and I see the xbmc plugins, etc. My jumpy.log looks ok, like yours.

Will post back once I have a chance to dig further tomorow, unfortunately I've got to go now. Maybe Sharkhunter has a clue?


Hi Infidel, I had already removed the subsonic plugin, but no jumpy content still....

Wondering if it's a Win7 x64 issue?
Hackashaq
 
Posts: 15
Joined: Mon Apr 20, 2009 6:16 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby infidel » Thu Nov 17, 2011 12:09 am

Hackashaq wrote:Wondering if it's a Win7 x64 issue?

No, my windows setup is Win7 x64. This is truly baffling. One other thing to try is to run jumpstart, which will confirm whether the socket is working right. First edit the java and python paths in plugins/jumpy/jumpstart.bat if necessary and then open up a console there and type:

Code: Select all
jumpstart xbmc.py

and see what the output is.
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby Hackashaq » Thu Nov 17, 2011 1:06 am

infidel wrote:No, my windows setup is Win7 x64. This is truly baffling. One other thing to try is to run jumpstart, which will confirm whether the socket is working right. First edit the java and python paths in plugins/jumpy/jumpstart.bat if necessary and then open up a console there and type:

Code: Select all
jumpstart xbmc.py

and see what the output is.


Ok Infidel, I edited jumpy.bat to read:

Code: Select all
@echo off

:: edit the 2 paths below if necessary
set PYTHON=C:\Program Files (x86)\PS3MediaServer-SHB\extras\Python27
set JAVA_HOME="C:\Program Files (x86)\Java\jre6"

set lib=%~dp0\lib
set PATH=%PYTHON%;%PATH%

%JAVA_HOME%\bin\java.exe -cp "%lib%/jumpstart.jar;%lib%/py4j0.7.jar" jumpstart %*


and this is the output I get when running it as instructed:

Code: Select all
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy>jumpstart xbmc.py
Running [python, C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\xbmc.py]
PYTHONPATH=C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\lib
JGATEWAY=192.168.1.5:25333

C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy>


I should add that I have tried it on two different computers, both on my same network.
Other functions of PSM-SHB30 work as expected, as does PlayOn media server and XBMC.

If I have time tonight, I will try to set up jumpy on the standard PS3mediaserver build...

Thanks again!
Hackashaq
 
Posts: 15
Joined: Mon Apr 20, 2009 6:16 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby infidel » Thu Nov 17, 2011 7:16 am

I modified the scripts slightly so as to be more verbose, which may help pin things down. So please do a fresh install of version 0.1.1 (from the top of the thread) and then try to jumpstart both xbmc.py and helloworld.py and see if output is any different. Also, try placing python at 'c:\Python27' or somewhere without a space in its path.
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby Hackashaq » Fri Nov 18, 2011 12:56 am

infidel wrote:I modified the scripts slightly so as to be more verbose, which may help pin things down. So please do a fresh install of version 0.1.1 (from the top of the thread) and then try to jumpstart both xbmc.py and helloworld.py and see if output is any different. Also, try placing python at 'c:\Python27' or somewhere without a space in its path.


Infidel, I tried moving python to C:\ and downloaded the latest jumpy from the first post.

The jumpstart output hasn't changed much:

Code: Select all
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy>jumpstart xbmc.py
Running [python, C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\xbmc.py
]
PYTHONPATH=C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\lib
JGATEWAY=192.168.1.5:25333

C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy>jumpstart helloworld.py
Running [python, C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\hellowo
rld.py]
PYTHONPATH=C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\lib
JGATEWAY=192.168.1.5:25333

C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy>


And the jumpy.log looks like this :

Code: Select all
[jumpy] initializing jumpy 0.1.1
[jumpy] home=C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\
[jumpy] python=C:\Python27\python.exe
[jumpy] pypath=C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\lib
[jumpy] adding root folder.
[jumpy] Found 2 scripts.

[jumpy] loading helloworld.py.

Running [C:\Python27\python.exe, C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\helloworld.py]
PYTHONPATH=C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\lib
JGATEWAY=192.168.1.5:25333

[jumpy] loading xbmc.py.

Running [C:\Python27\python.exe, C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\xbmc.py]
PYTHONPATH=C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\lib
JGATEWAY=192.168.1.5:25333
Hackashaq
 
Posts: 15
Joined: Mon Apr 20, 2009 6:16 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby infidel » Fri Nov 18, 2011 5:09 am

It looks like nothing passes through the socket, but then one would expect errors and a traceback at the python end. To verify that there is output generated by python try running the script without java, i.e. from inside plugins\jumpy run the following (I'm assuming python is still located in SHB\extras):

Code: Select all
set PATH=C:\Program Files (x86)\PS3MediaServer-SHB\extras\Python27;%PATH%
set PYTHONPATH=C:\Program Files (x86)\PS3MediaServer-SHB\plugins\jumpy\lib
set JGATEWAY=192.168.1.5:25333
python xbmc.py

which should output at least this much:

jumpy-xbmc version 0.2.1

found xbmc addons dir at 'C:\Users\abc\AppData\Roaming\XBMC\addons'.

and then possibly a traceback complaining about 'pms.setPath'. You may need to hit ctrl-break to end the process. If you see this output then the question is why does it otherwise vanish without a trace, and why doesn't it happen to me?

I'm assuming you're running as administrator. If you want to try turning your firewall off (temporarily :)) you can do it like so:
Code: Select all
netsh advfirewall set allprofiles state off
and then later turn it back on:
Code: Select all
netsh advfirewall set allprofiles state on
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby Hackashaq » Fri Nov 18, 2011 5:31 am

Might be getting somewhere...

Code: Select all
C:\Program Files (x86)\PS3MediaServer-SHB\plugins>set PATH=C:\Python27;C:\Progra
m Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common
 Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\s
ystem32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\W
indows Live\Shared;C:\Program Files (x86)\Calibre2;C:\Program Files (x86)\QuickT
ime\QTSystem;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\P
S3MediaServer-SHB\extras\Python27\python

C:\Program Files (x86)\PS3MediaServer-SHB\plugins>set PYTHONPATH=C:\Program File
s (x86)\PS3MediaServer-SHB\plugins\jumpy\lib

C:\Program Files (x86)\PS3MediaServer-SHB\plugins>set JGATEWAY=192.168.1.5:25333


C:\Program Files (x86)\PS3MediaServer-SHB\plugins>python xbmc.py


Along with a python.exe - System Error:

"The program can't start because python27.dll is missing from your computer. Try reinstalling the program to fix this problem."
Hackashaq
 
Posts: 15
Joined: Mon Apr 20, 2009 6:16 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby Hackashaq » Fri Nov 18, 2011 5:42 am

OK, I installed python and the error is gone
Hackashaq
 
Posts: 15
Joined: Mon Apr 20, 2009 6:16 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby Hackashaq » Fri Nov 18, 2011 5:57 am

Now everything is working great. It's fantastic having XBMC addons in PS3 mediaserver!

In case others are having issues:
I installed SHB31 (and the latest jumpy from post one)
opened PMS.conf and changed the python path to:
Code: Select all
python.path = C:\\Python27\\python.exe

And installed python27 from
http://www.python.org/ftp/python/2.7/python-2.7.msi

Thanks Infidel!
Hackashaq
 
Posts: 15
Joined: Mon Apr 20, 2009 6:16 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby infidel » Fri Nov 18, 2011 6:42 pm

Hackashaq wrote:Now everything is working great.

Finally :) !

Hackashaql wrote:"The program can't start because python27.dll is missing from your computer


Hackashaq wrote:
Code: Select all
python.path = C:\\Python27\\python.exe


And installed python27 from
http://www.python.org/ftp/python/2.7/python-2.7.msi

You know this may be the solution but it still doesn't explain the problem you were having before, since at one point you tried moving python to 'c:\Python27' and still got the error, right? It should have worked afaict, unless the python folder had somehow become corrupted.

Anyhow all's well that ends well!
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

PreviousNext

Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 7 guests