Thanks for continuing with this for me. Re-reading my last post I did not make it clear, I blame the Grandchildren, continuously interrupting me, the joys of lockdown in a family home!
Taking point 2. first. My app_280.py is a modified version of one written by someone else which acts a web server to display data collected to a webpage with PIs IP address, he told me it needed sudo because of this, I just followed his advice. Being a novice I might have used it when I shouldn’t have in some subsequent steps with INfluxdb. Presumably I can check file ownerships and alter them, or would it be better just to do it again?
Point 1. It was the legacy version of influxdb_client I downloaded, running pip3 install… again I get:
pip3 install influx-client
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: influx-client in /usr/local/lib/python3.7/dist-packages (1.9.0)
Requirement already satisfied: simplejson in /usr/lib/python3/dist-packages (from influx-client) (3.16.0)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from influx-client) (2.21.0)
Requirement already satisfied: pytool in /usr/local/lib/python3.7/dist-packages (from influx-client) (3.15.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pytool->influx-client) (1.12.0)
which I have seen several times now.
The influxdb-client-python github source says to follow the pip3 install… command with
import influxdb_client
This errors with bash:
import command not found