3tc / efergy2mqtt Goto Github PK
View Code? Open in Web Editor NEWPublish energy measurements from an Efergy E2 to an MQTT topic.
Publish energy measurements from an Efergy E2 to an MQTT topic.
I think I've followed the guide (thank you by the way! really great to see someone else has already done what I'm trying to do) but am stuck at pipenv install, with the following error: 'ImportError: No module named weakref' details:
pi@AMRIDM2MQTT:/sdr/efergy2mqtt $ pipenv install/sdr/efergy2mqtt $ ./run.sh
Traceback (most recent call last):
File "/home/pi/.local/bin/pipenv", line 6, in
from pipenv import cli
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/init.py", line 22, in
from pipenv.vendor.vistir.compat import ResourceWarning, fs_str
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/init.py", line 4, in
from .compat import (
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/compat.py", line 13, in
from .backports.tempfile import NamedTemporaryFile as _NamedTemporaryFile
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/backports/init.py", line 6, in
from .tempfile import NamedTemporaryFile
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/backports/tempfile.py", line 15, in
from backports.weakref import finalize
ImportError: No module named weakref
pi@AMRIDM2MQTT:
pi@AMRIDM2MQTT:~/sdr/efergy2mqtt $ Traceback (most recent call last):
File "/home/pi/.local/bin/pipenv", line 6, in
from pipenv import cli
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/init.py", line 22, in
from pipenv.vendor.vistir.compat import ResourceWarning, fs_str
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/init.py", line 4, in
from .compat import (
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/compat.py", line 13, in
from .backports.tempfile import NamedTemporaryFile as _NamedTemporaryFile
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/backports/init.py", line 6, in
from .tempfile import NamedTemporaryFile
File "/home/pi/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/backports/tempfile.py", line 15, in
from backports.weakref import finalize
ImportError: No module named weakref
Did a google for the error and one suggestion was this:
pi@AMRIDM2MQTT:~/sdr/efergy2mqtt $ pip install backports.weakref
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting backports.weakref
Downloading https://files.pythonhosted.org/packages/88/ec/f598b633c3d5ffe267aaada57d961c94fdfa183c5c3ebda2b6d151943db6/backports.weakref-1.0.post1-py2.py3-none-any.whl
Installing collected packages: backports.weakref
Successfully installed backports.weakref-1.0.post1
Which also didn't help. Any suggestions on what to try next? Might be helpful but is a bit of a mess, the command history:
44 cd efergy2mqtt/
45 ls
46 python3 -m pip --user pipenv
47 pipenv install
48 pipenv shell
49 cd ..
50 ls
51 cd RPI_Efergy/
52 pipenv install
53 cd ..
54 cd efergy2mqtt/
55 ls
56 echo .env
57 echo $.env
58 cat .env
59 ls
60 echo 'EFERGY_BINARY=/home/pi/sdr/RPI_Efergy/EfergyRPI_log' >> .env
61 echo 'MQTT_HOST=xxx' >> .env
62 echo 'MQTT_USER=xxx' >> .env
63 echo 'MQTT_PASS=xxx' >> .env
64 cat .env
65 python3 -m pip --user pipenv
66 pipenv install
67 pip install --user pipx
68 pip --version
69 sudo apt-get install pip
70 python -m ensurepip --upgrade
71 sudo apt-get install python-pip
72 curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
73 pip install --user pipenv
74 pipenv shell
75 ./run.sh
76 pipenv install
77 python3 -m pip --user pipenv
78 pip install paho.mqtt
79 cat run.sh
80 pipenv
81 pip install --user pipenv
82 python -m site --user-base
83 ls
84 ls -la
85 python -m site --user-base
86 export PATH=$PATH:/home/pi/.local/bin
87 pipenv install
88 ./run.sh
89 pip install backports.weakref
90 pipenv install
91 ./run.sh
92 pi@AMRIDM2MQTT:/sdr/efergy2mqtt $ ./run.sh/sdr/efergy2mqtt $ Traceback (most recent call last):
93 pi@AMRIDM2MQTT:
94 ImportError: No module named weakref
95 history
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.