[fixed] python with apple tv
#1
Hi there Smile

this might be old to some but i couldn't find the answer i needed:

I was trying to add some add ons to xbmc on my apple tv, but all most all the apps failed to open. Some of them came up with a python error. i Then installed Python as explained on http://wiki.awkwardtv.org/wiki/Python

Is this nescesary or what could the problem be? One of the programs that would not load came up with the following error

http://pastebin.org/297836

if i am writing "python" while ssh'ed to the apple tv it tells me:


-bash-2.05b$ python
Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

so it seems to be installed. Could someone help me? Smile
Reply
#2
da-bitsch Wrote:Hi there Smile

this might be old to some but i couldn't find the answer i needed:

I was trying to add some add ons to xbmc on my apple tv, but all most all the apps failed to open. Some of them came up with a python error. i Then installed Python as explained on http://wiki.awkwardtv.org/wiki/Python

Is this nescesary or what could the problem be? One of the programs that would not load came up with the following error

http://pastebin.org/297836

if i am writing "python" while ssh'ed to the apple tv it tells me:


-bash-2.05b$ python
Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

so it seems to be installed. Could someone help me? Smile

XBMC uses it's own internal Python. Installed Python does nothing.

I can't tell which version you are using because you cut xbmc.log. The XBMC version would be good to know.

Quote:00:03:50 T:52248064 M: 9379840 INFO: -->Python script returned the following error<--
00:03:50 T:52248064 M: 9375744 ERROR: Error Type: exceptions.ImportError
00:03:50 T:52248064 M: 9379840 ERROR: Error Contents: No module named info
00:03:50 T:52248064 M: 9216000 ERROR: Traceback (most recent call last):
File "/Users/frontrow/Library/Application Support/XBMC/addons/plugin.video.dr.dk.live/addon.py", line 3, in ?
from danishaddons import *
File "/Users/frontrow/Library/Application Support/XBMC/addons/script.module.danishaddons/danishaddons/__init__.py", line 8, in ?
import info
ImportError: No module named info
00:03:50 T:52248064 M: 9220096 INFO: -->End of Python script error report<--

danishaddons is referencing a python module call "info" that python cannot find.
Reply
#3
Thank you for the reply Davilla

hmmm the entire log can be seen here

http://pastebin.org/312479

Many of the scripts i install comes up with errors.. Does the ATV handle python in another way than other osx or win/linux machines? or what can i do to solve this Smile?
Reply
#4
After downloading all the files and adding them through ssh manually i got a bit closer to getting these add ons to work, but then it fails again Smile - To me it seems as if the tv fails to download the content in the right manner... I am having issuses with most of the add ons i try to add so a little help would be much appreciated Smile my log this time is

http://pastebin.org/313765
Reply
#5
are you using the addon repository plugins, or non-repository ?

do these plugins work under the same xbmc version in Linux or Windows?
Reply
#6
I am not sure if i am understanding your question right.. but never the less here it comes Smile

i tried several thing with the danish addon script in particular:

first i tried to go to system -> addons -> install by zip and then i added the danishaddons repository.. That all went fine

when i then tried to install the individual add ons within that repository it took ages downloading them and when they finished (if they even did that) i got all sort of errors...

i then tried to ssh into the apple tv and upload the add ons manually.. I got less errors doing this however i cant play any of the video content within the add ons.. it begins loading but eventually fails... When i check the the xbmc log i found errors like (for the install progress)

20:23:32 T:51627520 M: 16199680 WARNING: FillBuffer: curl failed with code 28

and

20:23:32 T:51627520 M: 16199680 ERROR: Open - failed to open source <http://github.com/xbmc-danish-addons/Danish-XBMC-addons/raw/master/plugin.video.dr.dk.live/LICENSE.txt>

so for me it seems as if the atv fails in the download progress?

In general i am having troubles using add ons from the xbmc standard repo.. som installs but fails to open... som does not install.. and a few installs and opens...

i tried installing the danish addons on my windows machine... Here everything worked extremely well.. Both my windows machine and my atv is connected through cable...

One last remark would be that my atv is currently running with around 20mb free memory.. does that call for any concern?

Thank you so far Davilla
Reply
#7
i tried the oldest trick in the book.. Factory reset Smile - it all works again now and the danish plugin works great.. thanks for your replies Davilla.. consider this case closed
Reply

Logout Mark Read Team Forum Stats Members Help
[fixed] python with apple tv0