Kodi Community Forum

Full Version: Python plugins not working, can't find modules
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just did a fresh install of XBMC from the latest SVN, and it has been working great, except for one thing. Any attempt to use a plugin shows the error "Remote share: Could not connect to network server". In xbmc.log I see an ImportError, which I think is due to XBMC not knowing where its Python libs are. Any suggestions? Thanks.

FYI: This is on my Gentoo box, which has Python 2.5 installed (but I am assuming XBMC uses its own Python).

example of ImportError during another process:
Quote:02:54:25 T:3011586960 M:552828928 DEBUG: Hash[tvshows,/video/anime/Yamato/]Big GrinB=[],Computed=[]
02:54:25 T:2985200528 M:551497728 NOTICE: Traceback (most recent call last):
02:54:25 T:2985200528 M:551497728 NOTICE: File "<string>", line 1, in ?
02:54:25 T:2985200528 M:551497728 NOTICE: ImportError
02:54:25 T:2985200528 M:551497728 NOTICE: :
02:54:25 T:2985200528 M:551497728 NOTICE: No module named threading
02:54:25 T:2985200528 M:551497728 NOTICE:
02:54:25 T:2985200528 M:551497728 INFO: Python script stopped
02:54:25 T:2985200528 M:551497728 DEBUG: staticThread, deleting thread graphic context
02:54:25 T:2985200528 M:551497728 DEBUG: Thread 2985200528 terminating

Error on loading a plugin:
Quote:22:09:40 T:2797722512 M: 26255360 NOTICE: -->Python Interpreter Initialized<--
22:09:40 T:2797722512 M: 26255360 NOTICE:
22:09:40 T:2797722512 M: 26255360 NOTICE: Traceback (most recent call last):
22:09:40 T:2797722512 M: 26255360 NOTICE: File "/home/pa/.xbmc/plugins/programs/Launcher/default.py", line 7, in ?
22:09:40 T:2797722512 M: 26255360 NOTICE:
22:09:40 T:2797722512 M: 26255360 NOTICE: import os
22:09:40 T:2797722512 M: 26255360 NOTICE: ImportError
22:09:40 T:2797722512 M: 26255360 NOTICE: :
22:09:40 T:2797722512 M: 26255360 NOTICE: No module named os
22:09:40 T:2797722512 M: 26255360 NOTICE:
22:09:40 T:2797722512 M: 26255360 ERROR: Scriptresult: Error
22:09:41 T:2797722512 M: 26193920 NOTICE: Traceback (most recent call last):
22:09:41 T:2797722512 M: 26193920 NOTICE: File "<string>", line 1, in ?
22:09:41 T:2797722512 M: 26193920 NOTICE: ImportError
22:09:41 T:2797722512 M: 26193920 NOTICE: :
22:09:41 T:2797722512 M: 26193920 NOTICE: No module named threading
22:09:41 T:2797722512 M: 26193920 NOTICE:
22:09:41 T:2797722512 M: 26193920 INFO: Python script stopped
22:09:41 T:2797722512 M: 26193920 DEBUG: staticThread, deleting thread graphic context
22:09:41 T:2797722512 M: 26193920 DEBUG: Thread 2797722512 terminating
Launcher is a plugin, not a script. You don't launch plugins directly. Normally you add them as a source under the proper section. Programs in this case. But as most skins have dropped the programs section you'll need to create ~/.xbmc/userdata/favorites.xml and add an appropriate entry. Following is a similar entry for another plugin.
Code:
<favourites>
  <favourite name="SVN Repo Installer" thumb="U:\plugins\programs\SVN Repo Installer\default.tbn">ActivateWindow(10001,plugin://programs/SVN Repo Installer/)</favourite>
</favourites>

Also, you don't want to install any addons in your prefix, as users won't have write access, you should never run XBMC as root, and they will come up missing when you uninstall. Instead use the same dir structure under~/.xbmc/.
Yes, the .xbmc wasn't working for me at first, but I am using it now.

I am using Launcher as a Programs source (using xTV theme), and I get an error in the GUI saying "network not available" or something similar. The same happens when I use the Youtube3 video plugin. I then checked xbmc.log and found the actual error.
Here is the same error after I reinstalled xbmc in a more proper way:

http://pastebin.com/m7784190c

In the GUI It says "Remote Share: Could not connect to network server"

Thanks again...
Sorry to bump this, but nobody else has seen the error "Remote Share: Could not connect to network server" before, when using a plugin?
Actually Apple movie Trailer II and SVN repo installer not working for me neither and generating exectly the same messages in the XBMC.log as posted above. This is with SVN 16713 compiled from source.

Does AMT working for you, even with recent SVN builds?