You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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 :-(
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
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 isClientXMPP.__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.
The text was updated successfully, but these errors were encountered: