import Skype4Py problem

Hi,



I tried to import “Skype4Py” and I got an error I can’t solve. Do you have any idea?



Plex Plugin Log:


2011-04-16 19:40:48,119 (-5f603ac0) :  DEBUG (core) - Finished starting framework core<br />
2011-04-16 19:40:48,121 (-5f603ac0) :  DEBUG (core) - Loading plug-in code<br />
2011-04-16 19:40:48,258 (-5f603ac0) :  CRITICAL (core) - Exception starting plug-in (most recent call last):<br />
  File "/Users/pieter-bas/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 337, in start<br />
    self.host.execute(self.init_code)<br />
  File "/Users/pieter-bas/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code.py", line 572, in execute<br />
    exec(code) in self.environment<br />
  File "/Users/pieter-bas/Library/Application Support/Plex Media Server/Plug-ins/Tagesschau.bundle/Contents/Code/__init__.py", line 2, in <module><br />
    import Skype4Py<br />
  File "/Users/pieter-bas/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code.py", line 608, in __import__<br />
    raise e<br />
TypeError: __init__() takes at least 2 non-keyword arguments (1 given)



importing Skype4Py in python2.5 cli is no problem...

Any help would be appreciated.

You might need to use the elevated security code policy in the plugin plist.


	<key>PlexPluginCodePolicy</key>	<string>Elevated</string>


thanks for your reply.

I do have that line in my Info.plist
I also put the Skype4Py directory in /Content/Libraries/Shared/

And even if I install the module systemwide, the problem still exists.
What I did:

sudo easy_install-2.5 Skype4Py<br />
sudo easy_install-2.5 appscript


in python2.5 CLI both modules will import without an error.

In Plex the module appscript imports without an error, but Skype4Py imports with the error posted above.

First thing I notice is that it’s giving an error for the Tagesschau plugin…?



File "/Users/pieter-bas/Library/Application Support/Plex Media Server/Plug-ins/Tagesschau.bundle/Contents/Code/__init__.py"<br />
                                                                               ^^^^^^^^^^^^^^^^^

Hi Sander,



That could be right, cause I was testing with other plugins as well. Just to make sure that my code wasn’t the reason.



I just got a PM from James where he stated that I should try to activate the “dev mode” in plex online - preferences. I would get the latest beta framework where my problem has been fixed.



oortmanp

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.