NosIreland / solismon3

A collection of utilities to interact with Solarman Data Logging Sticks
38 stars 11 forks source link

SyntaxError: invalid syntax #8

Closed kuttikutt closed 1 year ago

kuttikutt commented 1 year ago

why I try to run the main.py I get:

python2.7 main.py
  File "main.py", line 69
    logging.error(f'{repr(e)}. Exiting')
                                      ^
SyntaxError: invalid syntax

any ideas?

kuttikutt commented 1 year ago

nevermind - just figured out that my WiFi stick isn't compatible anyway. What a pitty :/

alienatedsec commented 1 year ago

I don't have the same datalogger - you mentioned it here; however, you need to meet requirements and install those modules

umodbus
paho-mqtt
prometheus-client
pysolarmanV5

Also, when you run the main.py, execute with python3

python3 main.py