我将aioinflux与Python用作我的influxdb客户端,并收到以下错误:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aioinflux/client.py", line 211, in __del__
if not self._loop.is_closed() and self._session:
AttributeError:“ InfluxDBClient”对象没有属性“ _loop”
执行以下命令时将引发此错误:
influxdb_client = InfluxDBClient(host=INFLUXDB_HOST, port=INFLUXDB_PORT, username=INFLUXDB_USER, password=INFLUXDB_PASSWORD, db=INFLUXDB_DATABASE)
当使用influxdb-python时,我没有收到相同的错误。任何帮助,将不胜感激。谢谢。