databrickslabs / cicd-templates

Manage your Databricks deployments and CI with code.
Other
201 stars 100 forks source link

No module named 'path' #73

Closed zxiex closed 3 years ago

zxiex commented 3 years ago

$ cookiecutter https://github.com/databrickslabs/cicd-templates.git

You've downloaded /home/zhen/.cookiecutters/cicd-templates before. Is it okay to delete and re-download it? [yes]: 
project_name [cicd-sample-project]: 
version [0.0.1]: 
description [Databricks Labs CICD Templates Sample Project]: 
author []: 
Select cloud:
1 - AWS
2 - Azure
3 - Google Cloud
Choose from 1, 2, 3 (1, 2, 3) [1]: 
Select cicd_tool:
1 - GitHub Actions
2 - Azure DevOps
3 - GitLab
Choose from 1, 2, 3 (1, 2, 3) [1]: 3
project_slug [cicd_sample_project]: 
workspace_dir [/Shared/dbx/cicd_sample_project]: 
artifact_location [dbfs:/Shared/dbx/projects/cicd_sample_project]: 
profile [DEFAULT]: 
Traceback (most recent call last):
  File "/tmp/tmp5scvfog5.py", line 5, in <module>
    from path import Path
ModuleNotFoundError: No module named 'path'
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
zxiex commented 3 years ago

Looks like there is a PR for this. https://github.com/databrickslabs/cicd-templates/pull/54

simon-k commented 3 years ago

I get the same error when I follow the guide.

Is there a workaround?

renardeinside commented 3 years ago

hi @simon-k , It's mentioned in the docs:

pip install cookiecutter path

Do you have the path library installed?

simon-k commented 3 years ago

Sorry, my bad. I thought I did, but apparently I must have done something wrong, because I just tried again and now it works.

Maybe in installed path outside of the conda env that I was using.

Thanks for the quick reply.