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

Unable to run clouddq - FileNotFoundError #34

Closed
wojtek-szymanski opened this issue May 25, 2021 · 5 comments
Closed

Unable to run clouddq - FileNotFoundError #34

wojtek-szymanski opened this issue May 25, 2021 · 5 comments

Comments

@wojtek-szymanski
Copy link

I was able to set up my local env based on instruction below:
https://github.com/GoogleCloudPlatform/cloud-data-quality/blob/main/docs/getting-started-with-default-configs.md

However, running clouddq command failed:
python3 clouddq \ T2_DQ_1_EMAIL \ configs \ --metadata='{"test":"test"}' \ --dbt_profiles_dir=. \ --dbt_path=. \ --environment_target=dev

FileNotFoundError: [Errno 2] No such file or directory: '~/dev/mms/cloud-data-quality/env/lib/python3.8/site-packages/dbt_project.yml'

uname -a
Darwin mac.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
python3 --version
Python 3.8.6
pip --version
pip 21.1.2 from ~/dev/mms/cloud-data-quality/env/lib/python3.8/site-packages/pip (python 3.8)

@thinhha
Copy link
Contributor

thinhha commented May 25, 2021

Thanks for raising the issue Wojtek. I think I know what's happening and I'm working on a fix.

For now, could you try building the package using make build and run CloudDQ using python3 bazel-bin/clouddq/clouddq_patched.zip --help instead? We're only running tests on this path right now but we'll add tests on the pip install path as well once the fix is applied.

@wojtek-szymanski
Copy link
Author

Hi Thinh, thanks for your feedback. Running clouddq with bazel distribution is working fine.
I'll keep this ticket open until your PR gets merged.

@thinhha
Copy link
Contributor

thinhha commented Jun 8, 2021

Hey Wojtek, we've fixed this in v0.2.0. Could you check it out to confirm if it all works?
https://github.com/GoogleCloudPlatform/cloud-data-quality/tree/v0.2.0

Thanks!

@wojtek-mms
Copy link

Thanks Thinh, it is working fine now. Please also update MD files:

  • README.md: cp profiles.yml.template profiles.yml -> cp dbt/profiles.yml.template dbt/profiles.yml
  • README.md: --dbt_profiles_dir=. -> --dbt_profiles_dir=dbt
  • getting-started-with-default-configs.md: cp profiles.yml.template profiles.yml -> cp dbt/profiles.yml.template dbt/profiles.yml
  • getting-started-with-default-configs.md: sed -i s/\<your_gcp_project_id\>/${GCP_PROJECT_ID}/g profiles.yml -> sed -i s/\<your_gcp_project_id\>/${GCP_PROJECT_ID}/g dbt/profiles.yml
  • getting-started-with-default-configs.md:--dbt_profiles_dir=. -> --dbt_profiles_dir=dbt

@thinhha
Copy link
Contributor

thinhha commented Jun 9, 2021

thanks for checking and for the detailed feedback!

Fixed the docs in #39.

I'll close this ticket now.

@thinhha thinhha closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants