-
Notifications
You must be signed in to change notification settings - Fork 8
Bug Manual
Place to put common bugs + how to fix them (as a developer). PLEASE KEEP THIS PAGE UPDATED
- Never modify files while running them
- Git CMD, Anaconda Prompt, CMD Prompt (Windows), GitKraken are helpful
- Any time you cannot spin up the frontend, a quick fix to try is delete the
node_modules/
directory in~/Deep-Learning-Playground/frontend/playground-frontend
and thennpm install
followed bynpm start
*If you are unable to start the frontend or it fails immediately, you might have a 32 bit version of node. Install a 64 bit version to fix.
-
Issue: Can’t delete /node_modules directory (Windows)
Fix: Make sure that the
Deep-Learning-Playground
folder is outside of OneDrive. OneDrive has tendency to sync and that takes a while since/node_modules
directory is HUGE! -
Issue: Dev Server has been initialized using an options object that does not match the API Schema. -options.allowedHosts[0] should be a non-empty string
Fix: In order, try: - Connecting to a non-GT WiFi like your home wifi or hotspot - If failed, revert what you did. Go into
package.json
infrontend/playground-frontend
directory in the project, changereact-scripts
version from5.*
to4.0.3
. - If failed, revert what you did. cd intofrontend/playground-frontend
and runset DANGEROUSLY_DISABLE_HOST_CHECK=true && npm start
to start the frontend If that doesn't work, revert thereact-scripts
version back to its original version. Then, remove the"proxy": "http://localhost:8000"
line from package.json.Then, delete
node_modules
&package.lock
files from thefrontend/playground-frontend
directory, runnpm install
followed bynpm start
and ensure that localhost:3000 pops up! See this link -
Issue: Backend won’t start up because
torchvision
module doesn’t existFix: Run
pip install torchvision
in Anaconda Prompt while in thedlplayground
conda environment. That should fix the issue! -
Issue: Feedback form page doesn’t show up
Fix: Install AWS CLI, configure the AWS credentials, cd into
.aws
, and runpython build_env.py
. Ask Faris if instructions are unclear -
Issue: Pytest work properly on local environment, but github actions raise File Not Found Error
Fix: Github actions run all pytests without entering the tests directory. Update file paths of tests folder or files in tests folder in a format similar to this -
test_dir = '' if (os.getcwd()).split('\\')[-1].split('/')[-1] == 'tests' else 'tests'
-
Issue:
version
GLIBCXX_3.4.30' not found (required by /usr/share/miniconda/envs/dlplayground/lib/python3.9/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-39-x86_64-linux-gnu.so)`Fix: Make sure in the
environment.yml
file,scipy == 1.7.3
is set. Apparently, when fastai imports a submodule from sklearn, scipy version 1.9 gets imported, which doesn't seem to compatible with the gcc running on Github Actions.
Place to put common bugs + how to fix them (as a developer). PLEASE KEEP THIS PAGE UPDATED
- Never modify files while running them
- Git CMD, Anaconda Prompt, CMD Prompt (Windows), GitKraken are helpful
- Any time you cannot spin up the frontend, a quick fix to try is delete the
node_modules/
directory in~/Deep-Learning-Playground/frontend/playground-frontend
and thennpm install
followed bynpm start
*If you are unable to start the frontend or it fails immediately, you might have a 32 bit version of node. Install a 64 bit version to fix.
-
Issue: Can’t delete /node_modules directory (Windows)
Fix: Make sure that the
Deep-Learning-Playground
folder is outside of OneDrive. OneDrive has tendency to sync and that takes a while since/node_modules
directory is HUGE! -
Issue: Dev Server has been initialized using an options object that does not match the API Schema. -options.allowedHosts[0] should be a non-empty string
Fix: In order, try: - Connecting to a non-GT WiFi like your home wifi or hotspot - If failed, revert what you did. Go into
package.json
infrontend/playground-frontend
directory in the project, changereact-scripts
version from5.*
to4.0.3
. - If failed, revert what you did. cd intofrontend/playground-frontend
and runset DANGEROUSLY_DISABLE_HOST_CHECK=true && npm start
to start the frontend - If failed, revert what you did. Then, remove the"proxy": "http://localhost:8000"
line from package.json. Then, deletenode_modules
&package.lock
files from thefrontend/playground-frontend
directory, runnpm install
followed bynpm start
and ensure that localhost:3000 pops up! See this link -
Issue: Backend won’t start up because
torchvision
module doesn’t existFix: Run
pip install torchvision
in Anaconda Prompt while in thedlplayground
conda environment. That should fix the issue! -
Issue: Feedback form page doesn’t show up
Fix: Install AWS CLI, configure the AWS credentials, cd into
.aws
, and runpython build_env.py
. Ask Faris if instructions are unclear -
Issue: Pytest work properly on local environment, but github actions raise File Not Found Error
Fix: Github actions run all pytests without entering the tests directory. Update file paths of tests folder or files in tests folder in a format similar to this -
test_dir = '' if (os.getcwd()).split('\\')[-1].split('/')[-1] == 'tests' else 'tests'
-
Issue:
version
GLIBCXX_3.4.30' not found (required by /usr/share/miniconda/envs/dlplayground/lib/python3.9/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-39-x86_64-linux-gnu.so)`Fix: Make sure in the
environment.yml
file,scipy == 1.7.3
is set. Apparently, when fastai imports a submodule from sklearn, scipy version 1.9 gets imported, which doesn't seem to compatible with the gcc running on Github Actions. -
Issue: Boto3 Error: botocore.exceptions.NoCredentialsError: Unable to locate credentials
Fix: Once you have AWS CLI installed (installation link in README; you can verify it has been installed by typing
aws --version
in the Terminal), type inaws configure
and enter the following secrets as prompted.Not everything is required. Anything not mentioned in the secrets table should be left as their default, i.e., clicking Enter without entering any details
Please ask Faris for access to the Secrets document
- Home
- Terraform
- Bearer-Token-Gen-Script
- Frontend-Backend Communication Documentation
- Backend Documentation (backend)
-
driver.py
- AWS Helper Files (backend.aws_helpers)
- Dynamo DB Utility Files (aws_helpers.dynamo_db_utils)
- AWS Secrets Utility Files (aws_secrets_utils)
- AWS Batch Utility Files (aws_batch_utils)
- Firebase Helper Files (backend.firebase_helpers)
- Common Files (backend.common)
-
constants.py
-
dataset.py
-
default_datasets.py
-
email_notifier.py
-
loss_functions.py
-
optimizer.py
-
utils.py
- Deep Learning Files (backend.dl)
- Machine Learning Files (backend.ml)
- Frontend Documentation
- Bug Manual
- Developer Runbook
- Examples to locally test DLP
- Knowledge Share