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

no dbt project found #718

Open
fabio-gz opened this issue Jun 2, 2023 · 7 comments
Open

no dbt project found #718

fabio-gz opened this issue Jun 2, 2023 · 7 comments

Comments

@fabio-gz
Copy link

fabio-gz commented Jun 2, 2023

Describe the bug
I updated to piperider 0.26.0 and when I try the command 'piperider run' it says that no dbt project was found. I used piperider on this project in the early versions and had no problem

To Reproduce
Steps to reproduce the behavior:

  1. piperider run (in the dbt project folder)
  2. output: Error: No dbt project was found
@DaveFlynn
Copy link
Contributor

Hi @fabio-gz,

Can you please verify that:

  • You are in the root of your dbt project
  • There is a dbt_project.yml present in the directory

Thanks,

Dave

@fabio-gz
Copy link
Author

fabio-gz commented Jun 2, 2023

Hi Dave,
Yes I am at the root of the dbt project and the dbt_project.yml is in that directory
Thank you

@DaveFlynn
Copy link
Contributor

I wonder if there is something in your PipeRider config.yml is causing the issue.

Could you please try temporarily backing up your .piperider folder and then running piperider again?

There's no need to init anymore, so you can just use the following commands:

mv .piperider .piperider-bak
piperider run

Thanks,

Dave

@fabio-gz
Copy link
Author

fabio-gz commented Jun 2, 2023

It creates the .piperider folder but only with a .unsend_events.json file, I tried to manually create the config.yml file and when I use the command 'piperider run' (I added the piperider tag to some models) it looks like is trying to profile sources and it fails but when I use 'piperider run --table

' it runs ok. This project is on dbt version 1.2.2, I have a personal project on version 1.4.1 that runs without problems, could this be the issue?
Thank you

@DaveFlynn
Copy link
Contributor

Hi @fabio-gz ,

Initial testing indicates that the dbt-core version is not the issue.
We're currently still trying to recreate the issue, I'll let you know when we have some more information.

Thanks,

Dave

@popcornylu
Copy link
Contributor

popcornylu commented Jun 13, 2023

Hi @fabio-gz

Sorry for late reply. We still cannot reproduce this issue.

Could you try to simplify to the following steps.

  1. Prepare the testing environemt:

    mkdir /tmp/piperider
    cd /tmp/piperider
    python -m venv ./venv
    source ./venv/bin/activate  
    pip install piperider==0.26.0     
    
  2. Run piperider in the empty project:

    $ piperider run
    Hint:
       Please follow the Quick Start guide on https://docs.piperider.io/get-started/quick-start to set up your first PipeRider 
     project.
    Error: No DBT project found in current path
    
  3. Run piperider with dbt_project.yml

    $ touch dbt_project.yml   
    $ piperider run
    Hint:
      Please use 'dbt debug' to verify the dbt configuration.
    Error: Failed to load dbt project '/private/tmp/piperider/dbt_project.yml'.
    Reason: 'NoneType' object has no attribute 'items
    

If your case, the error Error: No DBT project found in current path is raised because PipeRider cannot find the dbt_project.yml file. There could be some reason that make your project search in another dbt project path.

The precedence to find the dbt project is

  1. project dir from command line option: piperider run --dbt-project-dir
  2. project dir from config .piperider/config.yml: The config path is .dataSources[].dbt.projectDir
  3. the current directory

@DaveFlynn
Copy link
Contributor

Hi @fabio-gz

I'm interested to know if this issue was resolved for you?

Please let me know if you need further help.

There have been many updates to PipeRider in recent weeks, I would advise updating the latest version before you try again with:

pip install -U piperider

Thanks,
Dave

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