Python XBMCPlugin Module not found
Joined: May 2014
2014-05-05 02:14 Post: #1
Hi! I have been a XBMC user for sometime now and a beginning python programmer. I wanted to start developing an addon so I went to the XBMC wiki and downloaded the plugin tutorial (http://voinage-xbmc-plugins.googlecode.c...rial.rar). I ran a script from the file and got an error saying no module named xbmcplugin. Any help?
Team Kodi Developer
Joined: Jan 2009
2014-05-05 07:50 Post: #2
Moved into the Python Add-on Development forum.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Joined: Jul 2011
Location: Dawn of time
2014-05-05 08:08 Post: #3
don't run python outside of xbmc
Do NOT e-mail Team-Kodi members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
Joined: Jan 2011
Location: Honolulu, HI
2014-05-07 00:35 Post: #4
As Martijn said, you need to run the add-on from within XBMC. XBMC has a separate python instance it uses that contains all the necessary XBMC related libraries. When you run the add-on from the command line, you're using the python instance of the computer, and that doesn't have all the libraries you need.
Providing a debug log: http://wiki.xbmc.org/index.php?title=Log_file/Easy
Add-ons I maintain:
Artist Slideshow: http://wiki.xbmc.org/index.php?title=Add..._Slideshow
SpeedFan Information Display: http://wiki.xbmc.org/index.php?title=Add...on_Display