2011-01-06, 13:19
RPGamer Wrote:Maybe we need to run a wsh, vb or python-script which will wait until XBMC was started and will then call python with airplayer.py (and restart when XBMC was quit and started again) - I am not sure if this is required for your airplayer.py (cannot test currently; have no working Windows machine with XBMC currently). But would be best if your script would be "robust" enough too "run" without having XBMC running (=having a connection to XBMC all the time).
That could be a solution. Airplayer can run without XBMC running, no problem.
RPGamer Wrote:Short question: Would it possible to use the XBMC-built-in Python 2.4 with your script. Have tried to execute it with the autoexec.py (to avoid to register a service) using: xbmc.executescript() - but it failed (of course) because it could not find the required packages - see xbmc.log:
Code:10:42:26 T:4848 M:830394368 NOTICE: -->Python Interpreter Initialized<--
10:42:27 T:4848 M:830926848 ERROR: Error Type: exceptions.ImportError
10:42:27 T:4848 M:830926848 ERROR: Error Contents: No module named pybonjour
10:42:27 T:4848 M:830914560 ERROR: Traceback (most recent call last):
File "C:\XBMC\python_scripts\airplayer\airplayer.py", line 18, in ?
import bonjour
File "C:\XBMC\python_scripts\airplayer\bonjour.py", line 2, in ?
import pybonjour
ImportError: No module named pybonjour
Tried to copy the site-packages folder to XBMC/system/python/Lib, but he seams to ignore this. Same behaviour as before. I think it would be could to have it running as XBMC script, but maybe it is not possible with the built-in python?
Python 2.4 is a pain (it was released in 2004, mind you). My code would probably need quite some adjustments and the python modules Airplayer depends on (pybonjour, tornado) are probably not 2.4 compatible either.
We could create an Ubuntu package and/or windows installer to make installation easier, but to be honest I'm not really interested in doing that. But if someone else is interested in doing that, please feel free to do so.