Use this tag for questions about the InfluxDB-Python client library.
Questions tagged [influxdb-python]
215 questions
0
votes
0 answers
InfluxDB - Specific data missing from bucket every single time
I've been following a very basic tutorial for reading data from a sensor and writing it to a bucket in influxdb. The tutorial is out of date, so I've updated my code to use the new apis and query protocols. However, I'm noticing that everytime I…
0
votes
1 answer
How to add variable bucket name in query InfluxDB?
In Line 6 query = 'from(bucket: "my-bucket")\ how do we pass bucket as variable instead of hard-coding it ?
Code Source -> https://www.influxdata.com/blog/getting-started-with-python-and-influxdb-v2-0/
Script for writing and querying points to…

Sinchu
- 1
- 1
0
votes
0 answers
influxdb-client for python is not taking custom timestamps
I am new to InfluxDB and have been trying to store a datapoint with multiple fields having custom timestamp from a dictionary into the influxdb via the influxdb-client == 1.36.1
I followed the pypi documentation and tried to give custom timestamp…

Pranjall Kumar
- 1
- 2
0
votes
0 answers
TypeError: 'Future' object is not iterable with Multiprocessing concurrent
I am trying to execute influxdb multiprocessing example:
https://github.com/influxdata/influxdb-client-python/blob/master/examples/import_data_set_multiprocessing.py
with concurrent.futures.ProcessPoolExecutor(cpu_count, initializer=init_counter,
…

Anish
- 1,920
- 11
- 28
- 48
0
votes
0 answers
Spyder debugger hangs up on import influxdb_client
When I try to run a script in debug mode, the Spyder debugger hangs up on the first line, even though the first breakpoint isn't until line 162. It doesn't seem to be frozen, it's just not progressing to the next line in the…

gbrez
- 1
0
votes
1 answer
InfluxDB - Unauthorized Access Issue
I'm new to InfluxDB and encountering an "unauthorized access" issue when trying to connect to my InfluxDB instance using the Python influxdb library. I'm receiving the following error message:
Reason: Unauthorized
HTTP response headers:…

Shounak Basu
- 1
- 1
0
votes
0 answers
how do I get solver the failed to create remote connection "remote" in local InfluxDB: 404 Not Found: path not found in influxdb 2?
I am try to create a remote connection from my OSS to my cloud in order to replica a bucket from local to the cloud.
however I'm stock in the "influx remote create"
below the command and flags 'm parsing:
influx remote create --name remote --org-id…

Ranger
- 11
- 1
0
votes
1 answer
Transforming annotated csv (influxdb) to normal csv file using python script
I have a CSV file that was downloaded from InfluxDB UI. I want to extract useful data from the downloaded file. A snippet of the downloaded file is as follows:
#group FALSE FALSE TRUE TRUE FALSE FALSE TRUE TRUE TRUE TRUE …

santobedi
- 866
- 3
- 17
- 39
0
votes
1 answer
fields and field values are not pushed into influxdb 2.0 bucket
Here a dataframe for stock XYZ:
timestamp open high low close volume
timestamp
2021-02-04 04:21:00 2021-02-04 04:21:00 1.41 1.41 …

David
- 13
- 5
0
votes
0 answers
How can a query be executed on InfluxDB without affecting the timestamp of the record?
I am utilizing InfluxDB for my project to store the temperature readings of a room at 5-second intervals. However, I encounter difficulty when querying the data, as I only require a subset of the readings. To address this, I utilize the InfluxQL…

parsariyahi
- 61
- 1
- 6
0
votes
1 answer
Python InfluxDB Script
I wanted to have the following script to document my speedtest data, however I get the following error message:
Traceback (most recent call last):
File "/home/pi/speedtest.py", line 35, in
client.write_points(speed_data,)
AttributeError:…
0
votes
0 answers
Coverting InvluxQL v1 query to FLUX query in python -- getting last reading for every key-value tag
So I am new to InfluxDB (v1) and even newer to InfluxDB v2 and Flux . Please don't be an arse as I am really trying hard to get my python code working again.
Recently, I upgraded my flux database from v1.8 to 2.6. This has been an absolute…

Jose Otero
- 11
- 2
0
votes
0 answers
How to change "engine-path" in 'InfluxDB' version 2.X and higher?
I want to know how to change "engine-path" in 'InfluxDB' version 2.X or later.
How to change "engine-path" in 'InfluxDB' version 2.X and higher?
The OS is Windows.
I read the document of "InfluxDB".
"engine-path" modification method "influxd…

박종범
- 1
- 1
0
votes
0 answers
How do I register 'InfluxDB' version 2 or later with Windows services?
**hello.
I don't want to run "InfluxDB" with "PowerShell".
I'd like to register "InfluxDB" with "Windows Services" and use it.
"InfluxDB" version 2 and later does not have "config File".
Therefore, the path "Config" cannot be entered in the "NSSM"…

박종범
- 1
- 1
0
votes
0 answers
Influxdb deployment on raspberry pi: AttributeError: 'InfluxDBClient' object has no attribute 'api_client'
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…