Skip to content

[BUG]: Transpilers fail to install with python 3.10.0 #2234

@asnare

Description

@asnare

Category of Bug / Issue

Application crashed

Current Behavior

Installing the transpilers using python 3.10.0 will fail because the installer relies on a python attribute that was introduced in python 3.10.1.

Expected Behavior

Our documentation (and databricks labs metadata) lists Python 3.10 as supported, so this should work.

The easiest fix is to update our documentation and

Steps To Reproduce

Analysis was based on python sources. This hasn't been tested, but to reproduce the bug (and verify the solution works) this should work:

  1. Install Python 3.10.0.
  2. Modify PATH to ensure that no higher version of Python is available.
  3. Run databricks labs install lakebridge --debug and verify in the logs that it chose to create the venv with Python 3.10.0.
  4. Run databricks labs lakebridge install-transpile --debug

Relevant log output or Exception details

File "C:\Users\xxx\.databricks\labs\lakebridge\lib\src\databricks\labs\lakebridge\transpiler\installers.py", line 238, in _ensure_pip
    install_pip_cmd = [venv_context.env_exec_cmd, "-m", "ensurepip", "--upgrade"]
AttributeError: 'types.SimpleNamespace' object has no attribute 'env_exec_cmd'

Operating System

Windows

Version

latest via Databricks CLI

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfeat/cliactions that are visible to the user

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions