Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2.7 error #17

Open
little-better opened this issue Dec 29, 2022 · 4 comments
Open

Python 2.7 error #17

little-better opened this issue Dec 29, 2022 · 4 comments

Comments

@little-better
Copy link

little-better commented Dec 29, 2022

i have a problem running this addon due :

  File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/inverter/__main__.py", line 1, in <module>
    import Inverter
  File "/inverter/Inverter.py", line 10, in <module>
    import anyconfig
  File "/usr/local/lib/python2.7/site-packages/anyconfig/__init__.py", line 24, in <module>
    from .api import (
  File "/usr/local/lib/python2.7/site-packages/anyconfig/api/__init__.py", line 124
    def version() -> typing.List[str]:
                  ^
SyntaxError: invalid syntax```


i don't know it's trying to run it with python 2.7. I have home assisntant os
@pniewiadowski
Copy link

I have exactly the same problem. Do you know any solution for that?

@little-better
Copy link
Author

I have exactly the same problem. Do you know any solution for that?

i've cloned this repo and i've fixed it to work with python 3 but this addon is useless for me.
The best way for now and for me is to add my sofar solar on the ginlong website and scrape it with node red

@pniewiadowski
Copy link

@little-better Seems there is a scrapper already available: https://github.com/hultenvp/solis-sensor

@sophipl
Copy link

sophipl commented Oct 12, 2023

Change the line with pip to this line in Dockerfile
RUN pip install paho-mqtt==1.2.3 anyconfig==0.9.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants