quarto-dev / quarto-dev/quarto
Python interpreter not respecting QUARTO_PYTHON
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
Bug description
I've set QUARTO_PYTHON as follows in a Docker container:
ENV QUARTO_PYTHON=/opt/venv/bin/python
Source: https://github.com/geocompx/docker/blob/master/rocker-rpy/Dockerfile
And this is visible in the image but when I try to run Python code interactively in the resulting Devcontainer, a different Python version is used.
Steps to reproduce
Click here to open a devcontainer based on the setup described (requires GitHub account). Try to run some Python code, you will see something like this:
Actual behavior
Error shown above.
Expected behavior
It should use the /opt/venv/bin/python version
Context: https://github.com/geocompx/docker/issues/107
Your environment
- IDE: VSCode
- OS: Ubunt-based container
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Codespaces devcontainer reproduction and the Dockerfile referenced from geocompx/docker. Check how interactive Python execution selects an interpreter when QUARTO_PYTHON is set to /opt/venv/bin/python, then verify the reproduction uses that path and version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100