Closed clarkspark closed 3 years ago
It's unfortunate that the maintainer of sleexmpp
also did not make both pyasn1
and pyasn1_modules
dependencies of it. It wouldn't make sense for me to make them dependencies of apprise at this point since sleekxmpp isn't even one.
One option is to make sleekxmpp a part of apprise and try to fix it locally. I do this for one other library already since it was also no longer maintained either (gntp used by Prowl services). There are a list of pending merge requests already; perhaps one of them hold the key to your problem. There is also a ticket here which identifies a similar date/time issue suggesting that downgrading to SleekXMPP 1.3.1 might solve your problem.
Unfortunately I'm not really an XMPP expert and was relying on this one dependent library to shine here.
Also, what happens if you use Python v3? Do you experience the same symptoms?
Dear @clarkspark,
does using verify=no
and uninstalling pyasn1
and pyasn1_modules
work for you? While I know this is not a perfect solution, it might make things work at least.
With kind regards, Andreas.
@caronc: Have you looked for Slixmpp the successor of SleekXMPP?
@Neustradamus Thanks for making the point. In this case the OP is using Python 2.7 which Slixmpp isn't compatible with. I realize Python 2.7 is a thing of the past these days. Honestly, I've been trying my best to keep Apprise backwards compatible with it (only because I use CentOS 7 at home and at work which is still very much supported). Unfortunately RedHat/Oracle Linux/CentOS 7 all use Python v2.7 as their base.
However I could see value in the Apprise NotifyXMPP plugin at least using Slixmpp first (if available) and then falling back to SleekXMPP? I need to look at how Slixmpp works; is it a similar commands/setup?
I don't mind taking the archived master branch of SleekXMPP into this package as well (as it's MIT Licensed) and seeing if i can fix the time issue the OP suggested. Apparently just using an older version of SleekXMPP works great (mentioned here on an issue you were even part of :slightly_smiling_face:)
# The last known working version with respect to the date issue
pip install sleekxmpp==1.3.1
What are your thoughts?
Better late then never right?
Can one of you guys give this a test? The easiest way to do it is like so (with Python 3):
# Create a virtual environment to work in
# This way you can just destroy it after when it's all over.
# It will create a directory called apprise
python3 -m venv apprise
# Change into our new directory
cd apprise
# Activate our virtual environment
source bin/activate
# Install our branch:
pip install git+https://github.com/caronc/apprise.git@227-xmpp-slixmpp-support
# install just slixmpp
pip install slixmpp
# Give it a go:
apprise -t "Title" -b "Body" xmpp://{your_details}
I'll merge the code into the master branch if we have success (and will become part of Apprise v0.8.6).
This plugin will now always use slixmpp
first if it's installed, if not it will fall back to sleekxmpp
(if installed).
@clarkspark : I don't suppose you'd be able to test this for me would you? Your my goto guy since i made the change just for you :wink:
No pressure; alternatively i just plan to just continue to leave this issue blocked until someone can let me know if it works okay for them.
I've merged all of the Apprise slixmpp
code as I've gotten a workaround in place for it to work properly in harmony with sleekxmpp
. Issue resoved in #240
:mega: Notification Service(s) Impacted XMPP
:beetle: Describe the bug
:bulb: Screenshots and Logs When I executed
I get the following output:
It seems that sleekXMPP does not try to determine the version of TLS used by the XMPP server, and instead just uses TLSv1 even if the server does no support it.
After enabling TLSv1 on the XMPP server I got the following:
So I:
which then gets me:
I then tried to set verify=no:
But see the same error message:
:computer: Your System Details:
:crystal_ball: Additional context As these seem to be issues with the sleekxmpp lib I'm not sure who/how would/could make changes to it.
I just wanted to let you know my experience trying to use xmpp with apprise.
Thanks, Ryan