WindowsError: [Error 5] Access is denied (static files, images)

Evgeny Prilepin avatarEvgeny Prilepin created an issue

I'm using version control system, which establishing "read only" attributes for project files after submission. I'm getting an error "WindowsError: [Error 5] Access is denied" under html build.

Part of output log:

writing additional files... genindex py-modindex np-modindex search
copying static files... 
Exception occurred:
  File "C:\Programs\Python27_x86\lib\", line 247, in rmtree
WindowsError: [Error 5] Access is denied: 'H:\\MyProject\\docs\\_build\\html\\_static\\images\\my_image.png'

The image file "my_image.png" is in version control (H:\\MyProject\\docs\\_static\\images\\my_image.png) and has "read only" attribute.

Comments (5)

  1. Evgeny Prilepin

    The problem is that Sphinx first copies static "read-only" files from "docs" directory (in version control) to "_build" directory (no version control) and then can't rewrite it files (rebuild failed).

    Sphinx could remove attribute "read only" from copied static files in "_build" directory. It would fix a problem.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.