Skip to content

"pytest": executable file not found in $PATH #1194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thomasnelissen opened this issue Jan 21, 2025 · 0 comments
Open

"pytest": executable file not found in $PATH #1194

thomasnelissen opened this issue Jan 21, 2025 · 0 comments

Comments

@thomasnelissen
Copy link

I updated my Python function app from 3.10 to 3.12, I also updated the base image to mcr.microsoft.com/azure-functions/python:4-python3.12

When I run my integration tests I get the following error, which I didn't get when using tag 4-python3.10:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "pytest": executable file not found in $PATH: unknown.

The tests are being triggered from a bash script in AZ DevOps:

docker run \
-e "AZURE_CLIENT_ID=$servicePrincipalId" \
-e "AZURE_TENANT_ID=$tenantId" \
test:test pytest ${{test.path}} -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant