Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI not returning when called from Python #463

Open
Fr4nc3sc0NL opened this issue Dec 18, 2022 · 0 comments
Open

CLI not returning when called from Python #463

Fr4nc3sc0NL opened this issue Dec 18, 2022 · 0 comments

Comments

@Fr4nc3sc0NL
Copy link

Fr4nc3sc0NL commented Dec 18, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant