Pin reading error in Python (reading in a second time usually works)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 59
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
When I connect to the board and read in a pin I know exists I get this error: "PinsError: Cannot check version, since pin does not exist."
If I run the exact same line of code a second time to read the pin it will. Right now in my workflow, I default to reading the same pin in twice to avoid this, but seems strange!
Contributor guide
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 board connection and the first and second reads of the same known pin, recording the exact error and conditions. Compare the initialization state between attempts and trace the pin lookup and version check until the cause is identified; done means the first read succeeds reliably without requiring a duplicate call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100