googleapis / synthtool

Apache License 2.0
87 stars 84 forks source link

chore(python): fix docs build #1996

Closed parthea closed 1 month ago

parthea commented 1 month ago

This PR fixes b/356444150, specifically the error below which started as of https://github.com/googleapis/synthtool/pull/1989:

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/venv/lib/python3.10/site-packages/pyperclip'

I tested this by running through these steps:

  1. I ran docker build -f docker/owlbot/python/Dockerfile -t docs . in branch fix-docs-build-python in the synthtool repository
  2. I ran docker run --user $(id -u):$(id -g) --rm -v $(pwd):/repo -w /repo docs in branch v3.11.0 in the python-logging repository
  3. I triggered docs build manually with the changes from 2