Comments (4)
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envoyvenusdriver.