influxdata / influxdata/influx-cli
CLI not returning when called from Python
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 75
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to invoke the CLI from Python to upload some csvs, however the process never returns. I tried the following and variations on it:
p = subprocess.run(["influx write --bucket Tutorial -f data_hist.csv"] , shell=True)
q = subprocess.run(["influx write --bucket Tutorial -f data_forecast.csv"], shell=True)
This shell script works fine and returns:
influx write --bucket Tutorial -f data_hist.csv
influx write --bucket Tutorial -f data_forecast.csv
Do you have any hunch what might be going on?
(Mirror https://stackoverflow.com/questions/74843134/influxdb-cli-does-not-return-when-called-from-python)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two Python subprocess.run examples with the influx CLI, then compare their behavior with the equivalent shell script. Trace why the process does not return and verify the cause using both CSV upload commands; done means the commands return as expected or the required invocation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100