-
Notifications
You must be signed in to change notification settings - Fork 104
Getting started using sucks as a library #32
Comments
Hi, Martjin! Does the command-line program work? E.g., can you do If that doesn't work, then perhaps do |
Hello wpietri, Actually not... I was focusing on on my code and I did a "sucks login" (which worked well). So I forgot to test this the output looked like this:
It looks like it has problems with the date time format somewhere... But I don't know where to sart looking. The config file looks like this (I removed the hashes):
outputs you requested:
I am running it on a raspberry pi 3 with Debian Jessie:
|
In my trail on error I tried switching between locales settings with "dpkg-reconfigirue locales" but no luck... |
For reasons I don't totally understand, this seems to be related to the pyasn1 package. If I have it installed, I get this error. If I don't, it works fine. If for some reason you can't remove that package, you could try rolling back to version 1.3.1 of sleekxmpp, which apparently also fixes this issue: fritzy/SleekXMPP#462 |
Thanks for your reply I managed to remove pyasn1 and i can control (send clean and send charge command) things now. But running my script still gives errors because of the missing pyasn1 package
reverting back to 1.3.1 of sleekxmpp did not change anything... any clues? strange is I managed to uninstall pyasn1 with "pip3 uninstall pyasn1" but it is still in the list:
when i reinstall the module with sleekxmpp 1.3.1 installed i get the same errors back:
|
My trail on error leads to the situation I have now: for the ValueError I found this solution: fritzy/SleekXMPP#478
After some googling and downgrading versions of the used packages:
Any suggestions what is left to try or debug for me? |
OK after I was writing my previous post I decided to go back to my code.
it does not return to the charger after 30 seconds... I tried getting the battery state again. but no luck...
It seems to me that the script is "hanging" after the first "run" line |
I have the same problem as the original poster. This is on my Linux server. Works on my Mac! (I removed IDs and certificates)
|
hello snipem, I managed to solve the most of these problems. I also confirmed the command line function is working with sleekxmpp 1.3.1. See read my previous posts. downgrade to these versions: |
Yep, I made it working with these changes: snipem@b95bbaf I basically fixed the versions that were stated in this issue. |
When I start the script with the downgrades the deebot starts as well but the script remains in an endless loop. Any idea how to stop it after sending the command? |
@SwapFaceL I'm getting the same results. It works fine but the python script never exits. Have you solved this? I think some thread with the VacBot object must be still running and I don't know how to stop it. thanks |
@guillebot Yes I've solved this problem. I am not at home, if I do not forget, I can post you the solution later or maybe someone else who is faster ;) |
Yet another self answer:
did the trick. thanks anyway |
Have you tested with SleekXMPP 1.3.2? |
Not yet.
I just updated and it went straight through 1.3.3.
It's that ok? Or sucks needs 1.3.2?
thanks!
…On Fri, Nov 30, 2018 at 2:47 PM Neustradamus ***@***.***> wrote:
Have you tested with SleekXMPP 1.3.2?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABF62TThKNV8rrCQ_RhUIkDIM6NRnN6qks5u0W8agaJpZM4ST7ey>
.
|
No luck it seems. Updated to 1.3.3
Same error:
|
@dixi83 @wpietri @snipem @SwapFaceL @guillebot: Have you tested the "master"? |
Hello,
I am trying to use use sucks as a library to get some info for my domotica system. I have programming experience but I have not much (almost none) python experience.
This is the code I have so far for getting the battery state:
But when I execute this code I get a lot of errors:
I installed sucks with "pip3 install sucks" and I checked if these libraries are installed and "requests-mock, nose, pycountry-convert, pycryptodome, requests, click, sleekxmpp"
I'm proberbly doing something stupid ;) but please help me out
Best Regads, Martijn
The text was updated successfully, but these errors were encountered: