Giter Club home page Giter Club logo

Comments (6)

tillsteinbach avatar tillsteinbach commented on July 30, 2024 1

yes, looks like I made a mess :( will need some time to fix that, sorry

from weconnect-mqtt.

tillsteinbach avatar tillsteinbach commented on July 30, 2024

Ah yes, that bug was introduced with the latest version that fetches the data slightly different. Will be fixed in the next version.

from weconnect-mqtt.

tillsteinbach avatar tillsteinbach commented on July 30, 2024

This should be fixed in 0.23.0 can you check and report back?

from weconnect-mqtt.

msome avatar msome commented on July 30, 2024

Tried to test it, but unfortunately docker image not working anymore after updating to 0.23.0.
I assume I fetched a new image as docker says image created 18min ago... matches info from DockerHub.

Docker failure:
docker-compose up
weconnect-mqtt_weconnect-mqtt_1 is up-to-date
Attaching to weconnect-mqtt_weconnect-mqtt_1
weconnect-mqtt_1 | Traceback (most recent call last):
weconnect-mqtt_1 | File "/usr/local/bin/weconnect-mqtt", line 5, in
weconnect-mqtt_1 | from weconnect_mqtt.weconnect_mqtt_base import main
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/weconnect_mqtt/weconnect_mqtt_base.py", line 17, in
weconnect-mqtt_1 | from weconnect import weconnect, addressable, errors, util, domain
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/weconnect/weconnect.py", line 21, in
weconnect-mqtt_1 | from weconnect.elements.vehicle import Vehicle
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/weconnect/elements/vehicle.py", line 48, in
weconnect-mqtt_1 | from weconnect.elements.helpers.request_tracker import RequestTracker
weconnect-mqtt_1 | ModuleNotFoundError: No module named 'weconnect.elements.helpers'

I now went back to 0.22.0 from docker and it's running again as expected.

from weconnect-mqtt.

msome avatar msome commented on July 30, 2024

Similar using 0.23.1 version docker image:

docker-compose up
Recreating weconnect-mqtt_weconnect-mqtt_1 ... done
Attaching to weconnect-mqtt_weconnect-mqtt_1
weconnect-mqtt_1 | Traceback (most recent call last):
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/weconnect_mqtt/weconnect_mqtt_base.py", line 217, in main
weconnect-mqtt_1 | mqttCLient.connectWeConnect(username=username, password=password, maxAgePictures=args.pictureCache)
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/weconnect_mqtt/weconnect_mqtt_base.py", line 287, in connectWeConnect
weconnect-mqtt_1 | self.weConnect = weconnect.WeConnect(username=username, password=password, updateAfterLogin=False, updateCapabilities=self.updateCapabilities,
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/weconnect/weconnect.py", line 210, in init
weconnect-mqtt_1 | if self.__token['expires'] is None or cast(datetime, self.__token['expires']) <=
weconnect-mqtt_1 | TypeError: can't compare offset-naive and offset-aware datetimes
weconnect-mqtt_1 |
weconnect-mqtt_1 | During handling of the above exception, another exception occurred:
weconnect-mqtt_1 |
weconnect-mqtt_1 | Traceback (most recent call last):
weconnect-mqtt_1 | File "/usr/local/bin/weconnect-mqtt", line 8, in
weconnect-mqtt_1 | sys.exit(main())
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/weconnect_mqtt/weconnect_mqtt_base.py", line 254, in main
weconnect-mqtt_1 | mqttCLient.disconnect()
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/weconnect_mqtt/weconnect_mqtt_base.py", line 282, in disconnect
weconnect-mqtt_1 | disconectPublish.wait_for_publish()
weconnect-mqtt_1 | File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 362, in wait_for_publish
weconnect-mqtt_1 | raise RuntimeError('Message publish failed: %s' % (error_string(self.rc)))
weconnect-mqtt_1 | RuntimeError: Message publish failed: The client is not currently connected.

from weconnect-mqtt.

msome avatar msome commented on July 30, 2024

v0.23.2 docker works fine, the userCapabilities are now gone with --no-capabilities.
Appreciate your quick fix, thank you. πŸ‘

from weconnect-mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.