littleyoda / Home-Assistant-Tripower-X-MQTT

Script which reads out the current measured values of an inverter of the SMA Tripower x (STP XX-50) series and makes them available via MQTT Home Assistant.
The Unlicense
10 stars 3 forks source link

Problem Install ha_mqtt_discoverable #4

Closed 5G7K closed 1 year ago

5G7K commented 1 year ago

Hallo Yoda,

ich würde gerne dein Skript auf meinem Raspi ausprobieren. Leider bleibe ich bei den Abhängigkeiten hängen. Wie bekomme ha_mqtt_discoverable installiert? Könntest du mir da bitte einen Tipp geben? Danke dir!

pi@raspberrypi:/opt/SMA_py $ python3 sma2mqtt.py
Traceback (most recent call last):
  File "sma2mqtt.py", line 3, in <module>
    from ha_mqtt_discoverable import Settings
ModuleNotFoundError: No module named 'ha_mqtt_discoverable'

pi@raspberrypi:/opt/SMA_py $ python3 --version
Python 3.7.3
pi@raspberrypi:/opt/SMA_py $ python --version
Python 2.7.16

pi@raspberrypi:/opt/SMA_py $ sudo pip3 install -r requirements.txt
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting ha_mqtt_discoverable>0.8 (from -r requirements.txt (line 1))
  Could not find a version that satisfies the requirement ha_mqtt_discoverable>0.8 (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for ha_mqtt_discoverable>0.8 (from -r requirements.txt (line 1))

pi@raspberrypi:/opt/SMA_py $ pip3 --version
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

Viele Grüße Andreas

5G7K commented 1 year ago

ok, liegt wohl an der zu alten Python Version...

5G7K commented 1 year ago

probiere es später mal mit einer aktuellen Python Version....

littleyoda commented 1 year ago

Interessant. Mit welcher Python-Version funktioniert es bei dir?