Error deploying a DAB

raghu2
Databricks Partner

I followed steps listed in this article.

After creating and validation of bundle with default template, during deployment using this command:

databricks bundle deploy -t dev --profile zz

I get this message:

Building mySecPrj...
Error: build failed mySecPrj, error: exit status 1, output: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'bdist_wheel'

How do I resolve this? Appreciate any guidance.

Thanks

daniel_sahal
Databricks MVP

@raghu2 

Try running

pip3 install --upgrade wheel setuptools

View solution in original post

raghu2
Databricks Partner

Thanks @daniel_sahal. That worked!!

ADB0513
Databricks Partner

@daniel_sahal I am receiving the same error and tried your solution and am still getting the invalid command bdist_wheel.  Any other suggestions?  Thanks

szymon_dybczak
Esteemed Contributor III

You can try to upgrade pip:

py -m pip install --upgrade pip

And then once again

py -3 -m pip install wheel

Thanks @szymon_dybczak , but I've tried that and still get the error.