Skip to content
Snippets Groups Projects
Commit 39e91d7c authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Add a troubeshooting doc

parent 917d45cb
No related branches found
No related tags found
No related merge requests found
Pipeline #23626112 passed
# Diagnosing Development Environment Issues
If you're struggling to diagnose problems in your development environment, here are some tips which may help.
## Python Problems
1. Stear clear of any `asdf`/`mise` plugins which modify the `PYTHONPATH` environment variable.
Known offenders include `asdf-checkov`.
These plugins can be replaced with a `pip install`.
1. On most projects, `direnv` will automatically configure a Python virtual environment for the project,
using the `layout python3` command in `.envrc`.
If your project does not do this and you are managing your own virtual environment,
it's highly recommended that you reconsider and switch to using `direnv` for this.
1. If you're having troubles with `python`, consider running `rm -rf .direnv/python*` to clean up your virtual environment.
```console
$ # delete the virtual environment and start again:
$ rm -rf .direnv/python*
$ # reload direnv to recreate your virtual environment
$ direnv reload
$ # reinstall python dependencies
$ ./scripts/prepare-dev-env.sh
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment