rstudio / rstudio/pins-python

Error in accessing Pins in Python

Open
#331 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-info
Dominant language
Python
Stars
59
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I have my GCP account, service account and cloud storage enabled. I have service account .json also dowloaded. using this i am able to create a pin in R using board_gcs. i read again to check and it works fine. But i am not able to connect the same pin in python. even after doing everything to the best of my knowledge i am getting these errors

os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = str(path)
board_cloud = board_gcs(bucket_name)
board_cloud.pin_write(x=df, name="test_data", type="csv")
HttpError: Anonymous caller does not have storage.buckets.get access to the Google Cloud Storage bucket. Permission 'storage.buckets.get' denied on resource (or it may not exist)., 401
Cell In[28], line 1
----> 1 board_cloud.pin_write(x=df, name="test_data", type="csv")

Please help me to resolve

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 reported Python sequence with GOOGLE_APPLICATION_CREDENTIALS, board_gcs(bucket_name), and pin_write(..., type="csv"), then compare it with the working R board_gcs flow. Confirm that the Python connection can access the named Google Cloud Storage bucket and that pin_write completes without the storage.buckets.get 401 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
gcp, python
Domain
cloud
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.