0

I am experiencing issues to instantiate an Influxdb client for python in a Raspberry Pi 4b (OS: Linux).

influxdb_client version: 1.35

I have tested to pass the arguments by means of a yaml file as well as directly to the InfluxDBClient class:

Option 1:

 self.url        = config["INFLUXDB_URL"] 
 self.org        = config["INFLUXDB_ORG"] 
 self.token      = config["INFLUXDB_TOKEN"]
 self.influxClient = InfluxDBClient(url=self.url, token=self.token, org=self.org, debug=True)

Option 2:

 self.influxClient = InfluxDBClient(url="https://TEST.data.test.ca/", token="TOKENVALUE", org="JPerez")

And voila the result:

Exception ignored in: <function ApiClient.__del__ at 0x7f641ecee0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py", line 84, in __del__
      self._signout()
  File "/usr/local/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py", line 661, in _signout
      if _requires_expire_user_session(self.configuration, self.cookie): 
AttributeError: 'ApiClient' object has no attribute 'configuration'
Exception ignored in: <function InfluxDBClient.__del__ at 0x7f648d6c10> 
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/influxdb_client/client/influxdb_client.py", line 283, in __del__
    if self.api_client: 
AttributeError: 'InfluxDBClient' object has no attribute 'api_client'
STerliakov
  • 4,983
  • 3
  • 15
  • 37

0 Answers0