Error in accessing Pins in Python
Nobody has claimed this yet.
- 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
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 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