# import Skype4Py problem

**URL:** <https://forums.plex.tv/t/import-skype4py-problem/8868>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [April 16, 2011, 5:52pm UTC](https://forums.plex.tv/t/import-skype4py-problem/8868 "2011-04-16T17:52:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oortmanp](https://avatars.discourse-cdn.com/v4/letter/o/e47c2d/32.png) [@oortmanp](https://forums.plex.tv/u/oortmanp)\
**Post date:** [April 16, 2011, 5:52pm UTC](https://forums.plex.tv/t/import-skype4py-problem/8868/1 "2011-04-16T17:52:45Z")

</div>

Hi,  
  
  
  
I tried to import “Skype4Py” and I got an error I can’t solve. Do you have any idea?  
  
  
  
Plex Plugin Log:

```auto

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.

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [April 17, 2011, 2:54am UTC](https://forums.plex.tv/t/import-skype4py-problem/8868/2 "2011-04-17T02:54:14Z")

</div>

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

```auto

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

```

---

<div class="post-metadata">

**Author:** ![oortmanp](https://avatars.discourse-cdn.com/v4/letter/o/e47c2d/32.png) [@oortmanp](https://forums.plex.tv/u/oortmanp)\
**Post date:** [April 17, 2011, 6:20am UTC](https://forums.plex.tv/t/import-skype4py-problem/8868/3 "2011-04-17T06:20:21Z")

</div>

> [@](#):
>
> You might need to use the elevated security code policy in the plugin plist.  
> 
> ```auto
> 
> <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:  

```auto

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.

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [April 21, 2011, 5:49pm UTC](https://forums.plex.tv/t/import-skype4py-problem/8868/4 "2011-04-21T17:49:14Z")

</div>

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

```auto

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

```

---

<div class="post-metadata">

**Author:** ![oortmanp](https://avatars.discourse-cdn.com/v4/letter/o/e47c2d/32.png) [@oortmanp](https://forums.plex.tv/u/oortmanp)\
**Post date:** [April 21, 2011, 7:00pm UTC](https://forums.plex.tv/t/import-skype4py-problem/8868/5 "2011-04-21T19:00:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 9:05pm UTC](https://forums.plex.tv/t/import-skype4py-problem/8868/6 "2019-12-20T21:05:39Z")

</div>

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