quarto-dev / quarto-dev/quarto

Python interpreter not respecting QUARTO_PYTHON

Open
#809 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug vscode
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:

Image
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.