Hi,
Hi everyone,
I’m encountering a PermissionError
when deploying a Python app that uses the whitebox
package. This package attempts to automatically download a binary (WhiteboxTools_linux_amd64.zip
) upon execution, but it fails due to permission issues on the server. The error message is:
PermissionError: [Errno 13] Permission denied: ‘/home/adminuser/venv/lib/python3.11/site-packages/whitebox/WhiteboxTools_linux_amd64.zip’
The app runs fine locally, but the issue arises when deploying to a server environment where the user might not have the necessary permissions to write to the Python site-packages directory.
Does anyone have suggestions on how to handle this? Is there a way to pre-download the binary or configure the whitebox
package to avoid this automatic download process during runtime? Any advice on how to resolve or work around this issue would be greatly appreciated.
Thank you!