Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ reset-db:
docker compose down
docker volume rm cohere_toolkit_db
setup:
poetry install --with setup,community --verbose
poetry install --with setup --verbose
poetry run python3 src/backend/cli/main.py
win-setup:
setup-use-community:
poetry install --with setup,community --verbose
poetry run python3 src/backend/cli/main.py --use-community
win-setup:
poetry install --with setup --verbose
poetry run python src/backend/cli/main.py
lint:
poetry run black .
Expand Down
18 changes: 18 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ Make sure you run the following command before running make dev:
make migrate
```

## Error using with Codespaces

When using with codespaces you need to change the location of the backend:
- Next to the "terminal" tab, go to the "port" tab ([info on ports](https://docs.github.com/en/codespaces/developing-in-a-codespace/forwarding-ports-in-your-codespace))
- Go to the port 8000 for the backend
- Right-click and make the port visibility public.
- Then set in the .env file the NEXT_PUBLIC_API_HOSTNAME value to the forwarded address for port 8000

## Error installing psycopg2

If you see the following error

```bash
This error originates from the build backend, and is likely not a problem with poetry but with psycopg2 (2.9.9) not supporting PEP 517 builds. You can verify this by running ‘pip wheel --no-cache-dir --use-pep517 “psycopg2 (==2.9.9)“’.
```

Try changing psycopg2 with psycopg2-binary in pyproject.toml

## Error: pg_config executable not found.

Make sure that all requirements including postgres are properly installed.
Expand Down
Loading