Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

sleekxmpp.plugins.base.PluginNotFound: feature_starttls when packaging with pyinstaller #487

Open
0xjmux opened this issue Apr 29, 2018 · 5 comments

Comments

@0xjmux
Copy link

0xjmux commented Apr 29, 2018

Hello,
I'm trying to package several libraries into an executable using pyinstaller, but for some reason it's not working. The errors I'm getting are:

  File "xmppTest.py", line 23, in <module>
  File "xmppTest.py", line 16, in __init__
  File "sleekxmpp/clientxmpp.py", line 118, in __init__
  File "sleekxmpp/basexmpp.py", line 264, in register_plugin
  File "sleekxmpp/plugins/base.py", line 162, in enable
sleekxmpp.plugins.base.PluginNotFound: feature_starttls

Line 23 contains code for authentication with an xmpp server, specifically XClient = EchoBot(' ',' ') (obviously with username and password). Line 16 is pulled straight from an example, and is ClientXMPP.__init__(self, jid, password).

The program works fine on my machine, and is able to send messages to an xmpp address, but as soon as I try to package it up I run into problems. If you need any other information, let me know.

Also, I couldn't find a lot of information about ssl with your library on the website. You say it's deprecated, but is it still supported nonetheless? Is there a different method of encryption you recommend?
Thanks.

@jmaasing
Copy link

I tried all manner of --hidden-import flags to pyinstaller but did not manager to get it to package the feature_starttls. I'm a bit of a python n00b so this is a bit beyond me how to get the import working :-(

@FiksUpped
Copy link

FiksUpped commented Feb 20, 2019

Have you solved this issue? Stucked with same thing with pyinstaller, py2exe doesn't work too)

@Neustradamus
Copy link

@PwnKitteh @jmaasing @FiksUpped: Have you tested with "master"?

It works?

If not, have you a patch?
Can you create a PR?

@NohaelKa
Copy link

NohaelKa commented Dec 8, 2019

Hello, I am now also facing this issue with the Slixmpp. has anyone found a solution?

@NohaelKa
Copy link

NohaelKa commented Dec 8, 2019

Hello I have found a quick fix.
note I am using Slixmpp, but I have the same issue.
To resolve the feature_starttls plugin error simply add to your file:

(Replace slixmpp with Sleekxmpp)
from slixmpp.plugins.base import register_plugin
from slixmpp.features.feature_starttls.starttls import FeatureSTARTTLS
from slixmpp.features.feature_starttls.stanza import *

Unfortunalty then you will get errors for all the rest of the plugins and the features. You have to import them one by one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants