Git Product home page Git Product logo

Comments (4)

mr-manuel avatar mr-manuel commented on July 4, 2024

Hi,
I'm also stuck. I was able to install all drivers, but then I get the error

INFO:dbus-envoy:Driver start
INFO:dbus-envoy:http server listening on port 8000
Traceback (most recent call last):
  File "/data/dbus-envoy/dbus-envoy.py", line 340, in <module>
    main()
  File "/data/dbus-envoy/dbus-envoy.py", line 321, in main
    _mainloop = gobject.MainLoop()
AttributeError: module 'gobject' has no attribute 'MainLoop'

I installed the drivers with this commands:

opkg update && opkg install python3-pip
python -m pip install Gauge gobject glib

from envoyvenusdriver.

jaedog avatar jaedog commented on July 4, 2024

I'm pretty sure python3 isn't yet tested with this repo. It has been awhile since I've worked on it. It probably needs to be updated to the latest VenusOS and Python3.

from envoyvenusdriver.

mr-manuel avatar mr-manuel commented on July 4, 2024

I tried to migrate the script to Python 3.x, by try and error but one issue is left. See pull request #2. Unfortunately this is my first time scripting in Python.

root@raspberrypi4:~# /data/etc/dbus-envoy/dbus-envoy.py                                  
Traceback (most recent call last):
  File "/data/etc/dbus-envoy/dbus-envoy.py", line 33, in <module>
    from prometheus_client import start_http_server, Gauge
  File "/usr/lib/python3.8/site-packages/prometheus_client/__init__.py", line 3, in <module>
    from . import (
  File "/usr/lib/python3.8/site-packages/prometheus_client/metrics.py", line 10, in <module>
    from . import values  # retain this import style for testability
  File "/usr/lib/python3.8/site-packages/prometheus_client/values.py", line 5, in <module>
    from .mmap_dict import mmap_key, MmapedDict
  File "/usr/lib/python3.8/site-packages/prometheus_client/mmap_dict.py", line 2, in <module>
    import mmap
ModuleNotFoundError: No module named 'mmap'

To get it to work I had to comment out import mmap in /usr/lib/python3.8/site-packages/prometheus_client/mmap_dict.py, which is obviously not the right way. I was not able to install mmap. Maybe you know hot to fix it properly?

from envoyvenusdriver.

mr-manuel avatar mr-manuel commented on July 4, 2024

If someone is interrested: I created a new package for the Enphase Envoy-S with MQTT. It integrates the PV and grid.

https://github.com/mr-manuel/venus-os_dbus-enphase-envoy

from envoyvenusdriver.

Related Issues (1)

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.