Get started - Python: Small error in code
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 51
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 4
Description
## 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
4. In the Get Started tab, click on Python
5. 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
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:**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the Get Started tab's Python flow and locate the code listing for the "Write data" step. Compare the displayed client variable with the reported traceback; done means the listing uses the correct write_client reference and the Python example no longer raises the shown NameError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100