mimic-recording-studio icon indicating copy to clipboard operation
mimic-recording-studio copied to clipboard

Setting up local dev env: KeyError: 'CORPUS'

Open a-froghyar opened this issue 3 years ago • 4 comments

I'm trying to build and run the application locally. I'm following the instructions from the README but upon running the backend run.py script, I get this error. I understand it has something to do with the Docker Variable not available in the project, could someone help with how to start the local dev environment properly?

a-froghyar avatar Aug 12 '20 10:08 a-froghyar

hey there, I think you just need to set the CORPUS environment variable, so this can be:

export CORPUS="english_corpus.csv"
python run.py

krisgesling avatar Aug 13 '20 02:08 krisgesling

for reference, the csv is in the backend/prompts/ directory

krisgesling avatar Aug 13 '20 02:08 krisgesling

Hey @krisgesling, thanks for your reply. I'm trying to get the app up and running locally and start debugging (thinkin about adding a feature), however I have a hard time setting up the debugging environment with Docker.

I'm using VS Code and have a conda env up and running with all the requirements. I'm trying to add Docker files to the workspace, but every time I create a new run config (launch.json), it overrides the existing Docker file and the debugger just exits. Could you please tell me how you set up your local environment for development?

Appreciate the help, thanks!

a-froghyar avatar Aug 13 '20 09:08 a-froghyar

Hey, I haven't done any work on this repo, also not a VS code user so not much help there either sorry :(

krisgesling avatar Sep 07 '20 04:09 krisgesling