rstudio / rstudio/pins-python

Pin reading error in Python (reading in a second time usually works)

Open
#333 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

be:rsc
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.