2013-01-28, 00:10
Hello,
I run raspbmc (frodo) on raspberry pi.
I have the following problem: import of xbmc module fails with the following error message when I try to make some python scripts:
Python 2.7.3 (default, Jan 13 2013, 11:20:46)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xbmc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named xbmc
Same problem with xbmcgui, xbmcaddon.
Same problem on raspbmc and xbian.
Same problem as user or root.
I search all around the forums and do a lot of google searching... nowhere I found a solution.
I read that modules are visible only in the xbmc context. I guess that means that I have to loggon on a box where xbmc is up and running and scripting inside this box.
What I do :
Boot my raspberry with raspmc.
xbmc runs and works fine.
(I can play video/music with it. I can connect to the web interface from outside and ssh.)
I ssh to the box. OK
I can do shell commands etc.
I can succefully do http json rpc requests.
I fire python.
I've got the prompt.
>>> help('modules')
Please wait a moment while I gather a list of all available modules...
BaseHTTPServer argparse httplib sets
Bastion array ihooks setuptools
CDROM ast imageop sgmllib
(snip...)
_threading_local grp resource xml
_warnings gzip rexec xmllib
_weakref hashlib rfc822 xmlrpclib
_weakrefset heapq rlcompleter xxsubtype
abc hmac robotparser zipfile
aifc hotshot runpy zipimport
antigravity htmlentitydefs sched zlib
anydbm htmllib select
But :
>>> import xbmc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named xbmc
If anybody knows the solution, please help me.
Thanks a lot.
I run raspbmc (frodo) on raspberry pi.
I have the following problem: import of xbmc module fails with the following error message when I try to make some python scripts:
Python 2.7.3 (default, Jan 13 2013, 11:20:46)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xbmc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named xbmc
Same problem with xbmcgui, xbmcaddon.
Same problem on raspbmc and xbian.
Same problem as user or root.
I search all around the forums and do a lot of google searching... nowhere I found a solution.
I read that modules are visible only in the xbmc context. I guess that means that I have to loggon on a box where xbmc is up and running and scripting inside this box.
What I do :
Boot my raspberry with raspmc.
xbmc runs and works fine.
(I can play video/music with it. I can connect to the web interface from outside and ssh.)
I ssh to the box. OK
I can do shell commands etc.
I can succefully do http json rpc requests.
I fire python.
I've got the prompt.
>>> help('modules')
Please wait a moment while I gather a list of all available modules...
BaseHTTPServer argparse httplib sets
Bastion array ihooks setuptools
CDROM ast imageop sgmllib
(snip...)
_threading_local grp resource xml
_warnings gzip rexec xmllib
_weakref hashlib rfc822 xmlrpclib
_weakrefset heapq rlcompleter xxsubtype
abc hmac robotparser zipfile
aifc hotshot runpy zipimport
antigravity htmlentitydefs sched zlib
anydbm htmllib select
But :
>>> import xbmc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named xbmc
If anybody knows the solution, please help me.
Thanks a lot.