PermissionError: [Errno 13] Permission denied: 'models'

Please describe your issue or request: :

I been trying to download the HF Transformer models ( 4 in total ) in the models/ directory by adding those scripts in the postbuild.sh. These models contribute up to 5GBs alone hence i don’t want to clutter the GitHub repo. Hence I want the user to have the models downloaded while the build process.

But I get this PermissionError: [Errno 13] with basically any directory I try to store the models in. Any help would be appreciated.

Please tick the appropriate box to help us categorize your post
Bug or Error
Feature Request
Documentation Issue
Other

Yes. Those folders are host mounts, and things aren’t actually mounted until the container is run, so there’s no way to put it there during the build.

But you should be able to download it to somewhere in the container file system that isn’t mounted to the host.

For example, what happens if you download it to /tmp?

See the screenshot for what I mean about the file system.

Only the project folder is mounted to the host, so it’s the only one that’s off limits for downloads during the build.

1 Like

Thanks! It works!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.