Skip to content

Commit

Permalink
Add appendix, fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
s2t2 committed Sep 25, 2024
1 parent fea7d0f commit 71b3cb3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
3 changes: 2 additions & 1 deletion docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ project:
# https://github.com/quarto-dev/quarto-cli/discussions/7312#discussioncomment-7345228
- prereqs/local-dev-setup/terminal-config.qmd
- prereqs/local-dev-setup/vs-code-config.qmd
- exercises/run-the-app/troubleshooting.qmd
- notes/clis/brew.qmd


Expand Down Expand Up @@ -107,6 +106,8 @@ book:
- prereqs/local-dev-setup/terminal-config.qmd
- href: prereqs/local-dev-setup/vs-code-config.qmd
text: "VS Code Configuration"
- href: notes/clis/brew.qmd
text: "Homebrew Package Manager (Mac OS)"

# shows up at bottom of page
#body-footer: "© Copyright 2024, Your Name Here"
Expand Down
21 changes: 20 additions & 1 deletion docs/exercises/run-the-app/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,23 @@ Optionally simulate many games between computer players, and see the CSV file of

Practice passing environment variables to customize the game count and player types.

## [Troubleshooting & Help](./troubleshooting.qmd)
## Troubleshooting & Help


Here are some common errors you may run into while trying to run Python apps locally.

## Bad Anaconda Installation

If you try to run a `conda` command, and you see an error like **"conda: command not found"**, it means there's something wrong with your installation.

It's OK. Feel free to reach out to an instructor and ask for help. See also these [known troubleshooting remedies](https://github.com/prof-rossetti/intro-to-python/issues/13).

We will probably have to ask `where anaconda` in the Anaconda Prompt program to learn where your Anaconda installation resides, then issue a corresponding command like `~/anaconda3/Scripts/conda init bash` in Git Bash to fix the issue. Then close and re-open Git Bash for the changes to take effect.

## Can't Install Packages / Forgot to Navigate to the Local Repo

If the `pip install -r requirements.txt` command throws an error like **"Could not open requirements file: [Errno 2] No such file or directory"**, make sure you are running it from the repository's root directory, where the "requirements.txt" file exists (see the initial `cd` step to navigate into the repository's root directory).

## Forgot to Install Packages

If you see an error like **"ModuleNotFoundError: No module named '...'"**, it's because the given package isn't installed, so run the `pip install -r requirements.txt` command from the repository's root directory to ensure that package has been installed into the virtual environment, before trying to run the app again.
20 changes: 0 additions & 20 deletions docs/exercises/run-the-app/troubleshooting.qmd

This file was deleted.

0 comments on commit 71b3cb3

Please sign in to comment.