SleekXMPP
SleekXMPP copied to clipboard
sleekxmpp.plugins.base.PluginNotFound: feature_starttls when packaging with pyinstaller
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.
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 :-(
Have you solved this issue? Stucked with same thing with pyinstaller, py2exe doesn't work too)
@PwnKitteh @jmaasing @FiksUpped: Have you tested with "master"?
- https://github.com/fritzy/SleekXMPP/commits/develop
It works?
If not, have you a patch? Can you create a PR?
Hello, I am now also facing this issue with the Slixmpp. has anyone found a solution?
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.