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

Unable to link #532

Open
mikey4321 opened this issue Aug 28, 2023 · 0 comments
Open

Unable to link #532

mikey4321 opened this issue Aug 28, 2023 · 0 comments

Comments

@mikey4321
Copy link

Hi,

Older versions used to work well, but after a hiatus I'm stumped why the latest 1.3.0 won't work. Tried it with both docker and manual, all the dependencies and so forth seem right, but can't get it to connect to the HPWC.

When I run it, it just does the first two lines and goes no further. It will stall indefinitely until I hit ctrl-c

twcmanager@twcmanager:~/TWCManager $ sudo -u twcmanager python -m TWCManager
17:41:03 🎮 HTTP     20 Serving at port: 8080
17:41:03 ⛽ Manager  20 TWC Manager starting as fake Master with id 7777 and sign 77

Any suggestions on how to progress greatly appreciated. Tried it with a Pi3B+ and a Pi W Zero, no change. Fresh install of RPi and same result with docker or manual. I've been using the same HPWC; R485; car; and versions of this software for years, so the hardware should be OK. (think it's a gen2 HPWC).

Mike

a dump of the lines when I ran the install script below:
`twcmanager@twcmanager:~ $ git clone https://github.com/ngardiner/TWCManager
cd TWCManager
git checkout v1.3.0
sudo make install
fatal: destination path 'TWCManager' already exists and is not an empty directory.
Note: switching to 'v1.3.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 93a5606 Fix issue with workflow for creating docker + pypi release packages
sudo apt-get update
Hit:1 https://download.docker.com/linux/raspbian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
sudo apt-get install -y git libffi-dev libpq-dev libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.30.2-1+deb11u2).
libffi-dev is already the newest version (3.3-6).
libpq-dev is already the newest version (13.11-0+deb11u1).
libssl-dev is already the newest version (1.1.1n-0+deb11u5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo pip3 install -r requirements.txt
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Ignoring websockets: markers 'python_version == "3.6"' don't match your environment
Requirement already satisfied: cryptography<3.4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (3.3.2)
Requirement already satisfied: build in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 2)) (0.10.0)
Requirement already satisfied: growattServer>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 3)) (1.4.0)
Requirement already satisfied: jinja2>=2.11.2 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (2.11.3)
Requirement already satisfied: ocpp in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 5)) (0.19.0)
Requirement already satisfied: paho_mqtt>=1.5.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 6)) (1.6.1)
Requirement already satisfied: psycopg2 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 7)) (2.9.7)
Requirement already satisfied: pyModbusTCP>=0.1.8 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 8)) (0.2.0)
Requirement already satisfied: pymysql in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 9)) (1.1.0)
Requirement already satisfied: pyserial>=3.4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 10)) (3.5b0)
Requirement already satisfied: PyYAML in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 11)) (5.4.1)
Requirement already satisfied: requests>=2.23.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 12)) (2.31.0)
Requirement already satisfied: sentry_sdk>=0.11.2 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 13)) (1.29.2)
Requirement already satisfied: solaredge_modbus>=0.7.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 14)) (0.7.2)
Requirement already satisfied: sysv_ipc in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 15)) (1.1.0)
Requirement already satisfied: termcolor>=1.1.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 16)) (2.3.0)
Requirement already satisfied: websockets>=9.1 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 18)) (11.0.3)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.23.0->-r requirements.txt (line 12)) (2.10)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.23.0->-r requirements.txt (line 12)) (3.2.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.23.0->-r requirements.txt (line 12)) (2020.6.20)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.23.0->-r requirements.txt (line 12)) (2.0.4)
Requirement already satisfied: pymodbus>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from solaredge_modbus>=0.7.0->-r requirements.txt (line 14)) (3.4.1)
Requirement already satisfied: pyserial-asyncio>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from solaredge_modbus>=0.7.0->-r requirements.txt (line 14)) (0.6)
Requirement already satisfied: tomli>=1.1.0 in /usr/local/lib/python3.9/dist-packages (from build->-r requirements.txt (line 2)) (2.0.1)
Requirement already satisfied: packaging>=19.0 in /usr/local/lib/python3.9/dist-packages (from build->-r requirements.txt (line 2)) (23.1)
Requirement already satisfied: pyproject_hooks in /usr/local/lib/python3.9/dist-packages (from build->-r requirements.txt (line 2)) (1.0.0)
Requirement already satisfied: jsonschema<5.0.0,>=4.4.0 in /usr/local/lib/python3.9/dist-packages (from ocpp->-r requirements.txt (line 5)) (4.19.0)
Requirement already satisfied: rpds-py>=0.7.1 in /usr/local/lib/python3.9/dist-packages (from jsonschema<5.0.0,>=4.4.0->ocpp->-r requirements.txt (line 5)) (0.9.2)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /usr/local/lib/python3.9/dist-packages (from jsonschema<5.0.0,>=4.4.0->ocpp->-r requirements.txt (line 5)) (2023.7.1)
Requirement already satisfied: attrs>=22.2.0 in /usr/local/lib/python3.9/dist-packages (from jsonschema<5.0.0,>=4.4.0->ocpp->-r requirements.txt (line 5)) (23.1.0)
Requirement already satisfied: referencing>=0.28.4 in /usr/local/lib/python3.9/dist-packages (from jsonschema<5.0.0,>=4.4.0->ocpp->-r requirements.txt (line 5)) (0.30.2)
sudo pip3 install .
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /home/twcmanager/TWCManager
Requirement already satisfied: cryptography<3.4 in /usr/lib/python3/dist-packages (from TWCManager==1.3.0) (3.3.2)
Requirement already satisfied: growattServer>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (1.4.0)
Requirement already satisfied: jinja2>=2.11.2 in /usr/lib/python3/dist-packages (from TWCManager==1.3.0) (2.11.3)
Requirement already satisfied: ocpp in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (0.19.0)
Requirement already satisfied: paho_mqtt>=1.5.0 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (1.6.1)
Requirement already satisfied: psycopg2 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (2.9.7)
Requirement already satisfied: pyModbusTCP>=0.1.8 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (0.2.0)
Requirement already satisfied: pymysql in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (1.1.0)
Requirement already satisfied: pyserial>=3.4 in /usr/lib/python3/dist-packages (from TWCManager==1.3.0) (3.5b0)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (5.4.1)
Requirement already satisfied: requests>=2.23.0 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (2.31.0)
Requirement already satisfied: sentry_sdk>=0.11.2 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (1.29.2)
Requirement already satisfied: solaredge_modbus>=0.7.0 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (0.7.2)
Requirement already satisfied: sysv_ipc in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (1.1.0)
Requirement already satisfied: termcolor>=1.1.0 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (2.3.0)
Requirement already satisfied: websockets>=9.1 in /usr/local/lib/python3.9/dist-packages (from TWCManager==1.3.0) (11.0.3)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.23.0->TWCManager==1.3.0) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.23.0->TWCManager==1.3.0) (2020.6.20)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.23.0->TWCManager==1.3.0) (2.10)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.23.0->TWCManager==1.3.0) (3.2.0)
Requirement already satisfied: pyserial-asyncio>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from solaredge_modbus>=0.7.0->TWCManager==1.3.0) (0.6)
Requirement already satisfied: pymodbus>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from solaredge_modbus>=0.7.0->TWCManager==1.3.0) (3.4.1)
Requirement already satisfied: jsonschema<5.0.0,>=4.4.0 in /usr/local/lib/python3.9/dist-packages (from ocpp->TWCManager==1.3.0) (4.19.0)
Requirement already satisfied: rpds-py>=0.7.1 in /usr/local/lib/python3.9/dist-packages (from jsonschema<5.0.0,>=4.4.0->ocpp->TWCManager==1.3.0) (0.9.2)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /usr/local/lib/python3.9/dist-packages (from jsonschema<5.0.0,>=4.4.0->ocpp->TWCManager==1.3.0) (2023.7.1)
Requirement already satisfied: referencing>=0.28.4 in /usr/local/lib/python3.9/dist-packages (from jsonschema<5.0.0,>=4.4.0->ocpp->TWCManager==1.3.0) (0.30.2)
Requirement already satisfied: attrs>=22.2.0 in /usr/local/lib/python3.9/dist-packages (from jsonschema<5.0.0,>=4.4.0->ocpp->TWCManager==1.3.0) (23.1.0)
Building wheels for collected packages: TWCManager
Building wheel for TWCManager (setup.py) ... done
Created wheel for TWCManager: filename=TWCManager-1.3.0-py3-none-any.whl size=180586 sha256=60c7aee5d574641a31e2496dc181fb8bc7e8451e8255b3d8d7ce00af09cd897f
Stored in directory: /tmp/pip-ephem-wheel-cache-d2o673nj/wheels/95/1c/5b/fdf2642b5b5b31e288116a311c52b2bb41467f9c3dc0d8c37e
Successfully built TWCManager
Installing collected packages: TWCManager
Attempting uninstall: TWCManager
Found existing installation: TWCManager 1.3.0
Uninstalling TWCManager-1.3.0:
Successfully uninstalled TWCManager-1.3.0
Successfully installed TWCManager-1.3.0

Create twcmanager user and group

sudo useradd -U -M twcmanager 2>/dev/null; exit 0
sudo usermod -a -G dialout twcmanager

Create configuration directory

sudo mkdir -p /etc/twcmanager
sudo chown twcmanager:twcmanager /etc/twcmanager -R
sudo chmod 755 /etc/twcmanager -R`

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

1 participant