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

Setting up local dev env: KeyError: 'CORPUS' #32

Open
a-froghyar opened this issue Aug 12, 2020 · 4 comments
Open

Setting up local dev env: KeyError: 'CORPUS' #32

a-froghyar opened this issue Aug 12, 2020 · 4 comments

Comments

@a-froghyar
Copy link

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?

@krisgesling
Copy link
Collaborator

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
Copy link
Collaborator

krisgesling commented Aug 13, 2020

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

@a-froghyar
Copy link
Author

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 a-froghyar changed the title KeyError: 'CORPUS' Setting up local dev env: KeyError: 'CORPUS' Aug 13, 2020
@krisgesling
Copy link
Collaborator

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

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

2 participants