Skip to content

requirements.txt not installed on container startup: permission denied #2642

@sandermarechal

Description

@sandermarechal

What happened?

The documentation says that I should be able to add a requirements.txt to add extra python packages. But when I attempt to do so, I get "Permission denied" errors.

Do I need to add other volumes to the container?

Version

4.5.13

Installation type

Docker container

Relevant log output

[notice] A new release of pip is available: 25.0.1 -> 26.1.2
[notice] To update, run: pip install --upgrade pip
...
WARNING: The directory '/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
...
Installing collected packages: requests, pycparser, pyasn1, protobuf, grpcio, pyasn1-modules, proto-plus, googleapis-common-protos, cffi, grpcio-status, cryptography, google-auth, google-api-core, google-geo-type, google-maps-routing
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/.local'
Check the permissions.

Relevant code in the app or config file that caused the issue

# requirements.txt
google-maps-routing

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issueSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions