dsmrreader / dsmr-reader

DSMR-telegram reader & data visualizer for hobbyists. Free for non-commercial use.
https://dsmr-reader.readthedocs.io
Other
459 stars 95 forks source link

🙋 Fresh install of data_logger (v5) gives module 'decouple' has no attribute 'Choices' #1933

Closed MrHappy closed 6 months ago

MrHappy commented 7 months ago

Description

Yesterday installed data_logger v4 by accident, but worked fine (except for delivering data to home assistant). I noticed I did not have the most recent version and followed these instructions. Now I receive the notification (after enabling debug-logging) that decouple has no Choices-attribute. What did I miss (or is missing from the installation instructions)?

DSMR-reader version

5

DSMR-reader platform

Native (e.g. manual installation)

Debug info dump

[2023-12-08 12:38:25.585873] Starting...
Traceback (most recent call last):
  File "/home/dsmr/dsmr_datalogger_api_client.py", line 236, in <module>
    main()
  File "/home/dsmr/dsmr_datalogger_api_client.py", line 133, in main
    cast=decouple.Choices(["serial", "ipv4"]),
AttributeError: module 'decouple' has no attribute 'Choices'
dennissiemensma commented 7 months ago

De twee versies zijn niet compatible met elkaar qua config en/of dependencies. Je kunt het beste de v5-variant installeren:

https://dsmr-reader.readthedocs.io/en/v5/how-to/installation/remote-datalogger.html

dennissiemensma commented 7 months ago

Decouple is onderdeel van: https://dsmr-reader.readthedocs.io/en/v5/how-to/installation/remote-datalogger.html#remote-datalogger-device