Tarek Kaddoura
10/18/2023, 8:10 PMWill McFarland
10/18/2023, 8:42 PM--project-dir listed in the error log is not the correct dbt directory, and specifying the correct one in the project dir flag in the edr report command still produces the same result.Will McFarland
10/18/2023, 9:13 PMedr report worked right away.Will Seaton
10/18/2023, 9:29 PMWill McFarland
10/18/2023, 9:31 PMpython -m venv .dbt-venv.
It doesn’t feel like a usable solution in production, but it got a demo working which is as far as I’ve gotten with Elementary so far.Or Avidov
10/19/2023, 1:05 PMedr.log with me?
edr has an internal dbt project and as a first step it runs dbt deps which seems to fail here for some reason. In order for us to understand a bit more why it's failing we should look at the edr.log.Tarek Kaddoura
10/19/2023, 2:56 PMWill McFarland
10/19/2023, 3:40 PMedr_target folder in my dbt project.
@Or Avidov thanks for the response! I actually just looked at my edr log and realized there was a bunch of permission denied errors. I tried running edr report with sudo and it worked using my venv from another project location. Do note I am on Mac.
I recreated my old edr.log with the permission error here:Tarek Kaddoura
10/19/2023, 4:57 PMTarek Kaddoura
10/20/2023, 1:09 PMKrzysztof D
10/20/2023, 2:56 PMKrzysztof D
10/20/2023, 2:56 PMMaayan Salom
10/30/2023, 9:05 PMedr is failing to initiate, so the installation must be faulty.
I suggest you both try:
1. Installing from scratch in a virtual env
2. Running using sudo / as administrator
To install Elementary's edr within a Python virtual environment (venv), you need to first create the environment and then use the pip installer.
Please follow the steps below:
1. Create a new Python virtual environment:
python3 -m venv /path/to/new/virtual/environment
2. Activate the virtual environment:
• On Windows:
\path\to\new\virtual\environment\Scripts\activate
• On Unix or MacOS:
source /path/to/new/virtual/environment/bin/activate
You should now be in the virtual environment. You'll know you're in the virtual environment because the name of it will prefix your terminal command line.
3. Install `edr`:
pip install elementary-data
pip install elementary-data[<adapter>]
Check whether the installation has been successful:
edr --help
You should see a list of available edr commands if the installation was successful.