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

Get started - Python: Small error in code #6754

Open
dangu opened this issue Jul 6, 2023 · 2 comments
Open

Get started - Python: Small error in code #6754

dangu opened this issue Jul 6, 2023 · 2 comments
Labels
kind/bug Something isn't working team/ui

Comments

@dangu
Copy link

dangu commented Jul 6, 2023

About the bug

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. Use the latest docker image (2.7.1). This is the command i ran:
    $ docker run -p 8086:8086 -v myInfluxVolume: influxdb:latest
  2. At http://localhost:8086/, do the initial setup
  3. In the Get Started tab, click on Python
  4. Do the steps until "Write data"

Expected behavior:

The Python code listing is using "write_apt = client.[...]", which should work (the correct code should be "write_client", not "client")

Actual behavior:

Error messsage saying that "client" does not exist.

Visual Proof:

Traceback (most recent call last):
  File "/home/daniel/Lokalt/dbtest/skript.py", line 12, in <module>
    write_api = client.write_api(write_options=SYNCHRONOUS)
NameError: name 'client' is not defined

About your environment

Environment info:

Linux 5.19.0-46-generic x86_64
Influxdb 2.7.1

Config:

@dangu dangu added kind/bug Something isn't working team/ui labels Jul 6, 2023
Ekran added a commit to Ekran/influxdata_ui that referenced this issue Dec 1, 2023
fix  influxdata#6754: client --> write_client
@Ekran
Copy link

Ekran commented Dec 1, 2023

stumbled across the same error, fixed it with e762975

@Ekran
Copy link

Ekran commented Dec 18, 2023

It seems to be depended with Issue #24338 and pullrequest #6834. The solution there is to change in the step before the creation to client instead of write_client. So I suggest to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working team/ui
Projects
None yet
Development

No branches or pull requests

2 participants