Skip to content

Python interpreter not respecting QUARTO_PYTHON #809

@Robinlovelace

Description

@Robinlovelace

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: geocompx/docker#107

Your environment

  • IDE: VSCode
  • OS: Ubunt-based container

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvscode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions