Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Databricks bundle deploy triggers whl.Autodetect #673

Closed
PaulMaksud opened this issue Aug 16, 2023 · 3 comments · Fixed by #674
Closed

Databricks bundle deploy triggers whl.Autodetect #673

PaulMaksud opened this issue Aug 16, 2023 · 3 comments · Fixed by #674
Labels
Bug Something isn't working DABs DABs related issues

Comments

@PaulMaksud
Copy link

On version Databricks CLI v0.203.1 on windows intel 64 i face this error :
$ databricks bundle deploy -e dev artifacts.whl.AutoDetect: Detecting Python wheel project... artifacts.whl.AutoDetect: Found Python wheel project at C:\Users\Sesa653627\Desktop\ml integ\pilot-databricks artifacts.whl.Build(artifact1692195769): Building... Error: artifacts.whl.Build(artifact1692195769): Failed exit status 9009, output: Python est introuvable. Ex�cutez sans argument pour proc�der � l
even though i have no python wheel task declared in my bundle.yml, however i do have a setup.py file at root level and a pyproject.toml file

here is the content of my setup.py if that helps:


import os

from setuptools import setup

# To build with nuitka (compiled version), set your envar BUILD_WITH_NUITKA to True
BUILD_WITH_NUITKA = bool(os.environ.get("BUILD_WITH_NUITKA", False))

setup(
    # All other options are managed in the `pyproject.toml` file
    build_with_nuitka=BUILD_WITH_NUITKA,
    # Lib `ordered-set` is needed to speedup compilation with N uitka
    setup_requires=["nuitka>=0.6.17.2,<1", "ordered-set>=4.1.0,<5"] if BUILD_WITH_NUITKA else [],
    command_options={
        "nuitka": {
            "python-flag": "-OO",
            "no-pyi-file": True,
            "assume-yes-for-downloads": True,  # Nuitka can download and install a compiler by itself
        }
    },
)

@PaulMaksud
Copy link
Author

if i comment the content of setup.py i have this error : $ databricks bundle deploy --environment local --force artifacts.whl.AutoDetect: Detecting Python wheel project... artifacts.whl.AutoDetect: Found Python wheel project at C:\Users\Sesa653627\Desktop\ml integ\pilot-databricks artifacts.whl.Build(artifact1692197028): Building... Error: artifacts.whl.Build(artifact1692197028): Failed exit status 9009, output: Python est introuvable. Ex�cutez sans argument pour proc�der � l
if i delete the file it does work but still try to detect a wheel :
databricks bundle deploy --environment local --force artifacts.whl.AutoDetect: Detecting Python wheel project... artifacts.whl.AutoDetect: No Python wheel project found at bundle root folder Starting upload of bundle files Uploaded bundle files at /Users/adm653627@se.com/pldbk2/files!

@andrewnester
Copy link
Contributor

Hi @PaulMaksud ! Thanks for reporting the issue! We identified an issue and have a PR in place, so we expect the fix to land in the next version of CLI

github-merge-queue bot pushed a commit that referenced this issue Aug 17, 2023
#674)

## Changes
Fixes #673 

It also includes a change for `libraries` from #635 to get the list of
wheel tasks
@andrewnester
Copy link
Contributor

The fix has been just released in 0.203.3 version, feel free to try it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working DABs DABs related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants