Skip to content

Get started - Python: Small error in code #6754

Description

@dangu

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions