Skip to content

[R][CI]: failing to activate python venv after installation #45716

@jonkeane

Description

@jonkeane

Describe the bug, including details regarding any error messages, version, and platform.

Starting ~2weeks ago, the test-r-offline-maximal job has started to fail when it attempts to activate the venv:

Successfully installed pyarrow-20.0.0.dev120
  'test-python.R:33:3' [success]
ERROR: The requested version of Python
('/home/runner/.virtualenvs/arrow-test/bin/python') cannot be used, as
another version of Python
('/home/runner/.cache/R/reticulate/uv/cache/archive-v0/CVdoePB5wstbsp_1TXeaj/bin/python3')
has already been initialized. Please restart the R session if you need
to attach reticulate to a different version of Python.
Error:   'test-python.R:35:3' [error]
End test: install_pyarrow

This coincides with a reticulate release, which is likely the cause of the behavior (IIRC, they started using uv under the hood by default there and given the message...). But the strange thing is: why isn't this failing elsewhere? Do we not have tests that run into this pyarrow issue?

Component(s)

Continuous Integration, R

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions