From 970b31dea67adc1b1068ee4e46cd1800df5e92b1 Mon Sep 17 00:00:00 2001 From: didier Date: Sun, 25 Apr 2021 10:30:44 +0100 Subject: [PATCH] start adding troubleshoot file --- README.md | 74 +++++++-------------------------------- TROUBLESHOOT.md | 93 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 61 deletions(-) create mode 100644 TROUBLESHOOT.md diff --git a/README.md b/README.md index 42aba5d5482..9e90029e418 100644 --- a/README.md +++ b/README.md @@ -110,26 +110,30 @@ conda create -n gst python=3.6.8 ``` conda activate gst ``` -Note: At the end, you can deactivate it with: `conda deactivate` +Note: At the end, you can deactivate it with: `conda deactivate`. 4. Install git ``` conda install -c anaconda git ```` -5. Fork the Project +5. Clone the Project - Via HTTPS: `git clone https://github.com/DidierRLopes/GamestonkTerminal.git` - via SSH: `git clone git@github.com:DidierRLopes/GamestonkTerminal.git` -Navigate into the folder with: `cd GamestonkTerminal/` +6. Navigate into the project's folder -6. Install poetry +``` +cd GamestonkTerminal/ +``` + +7. Install poetry ``` conda install poetry ``` -6.5. If installing python 3.8 +7.5. If installing python 3.8 ``` conda deactivate conda activate gst @@ -137,18 +141,20 @@ conda activate gst *The `conda deactivate` -> `conda activate` in the middle is on purpose, this is sometimes required to avoid issues with poetry* -7. Install poetry dependencies +8. Install poetry dependencies ``` poetry install ``` This is a library for package management, and ensures a smoother experience than: ``pip install -r requirements.txt`` -8. You're ready to Gamestonk it! +9. You're ready to Gamestonk it! ``` python terminal.py ``` +**NOTE:** When you close the terminal and re-open it, the only command you need to re-call is `conda activate gst` before you call `python terminal.py` again. + ### Advanced User Install - Machine Learning If you are an advanced user and use other Python distributions, we have several requirements.txt documents that you can pick from to download project dependencies. @@ -166,13 +172,6 @@ ENABLE_PREDICT = os.getenv("GTFF_ENABLE_PREDICT") or True ``` poetry install -E prediction ``` -*If you run into issues installing or `Cannot convert a symbolic Tensor...` at runtime, try this:* - -``` -conda install -c conda-forge fbprophet numpy=1.19.5 hdf5=1.10.5 -poetry install -poetry install -E prediction -``` *If you would like to set up a docker image:* @@ -181,53 +180,6 @@ poetry install -E prediction Note: The problem with docker is that it won't output matplotlib figures. -*Commands that may help you in case of an error: - -* `python -m pip install --upgrade pip` -* `pip install pystan --upgrade` -* `poetry update --lock` - -### Other Issues - -If you run into trouble with poetry and the advice above did not help, your best bet is to try - -1. `poetry update --lock` - -2. `conda deactivate` -> `conda activate gst`, then try again - -3. Delete the poetry cache, then try again - - | Platform | Location | - | -------- | ------------------------------- | - | Linux | "~/.cache/pypoetry" | - | Mac | "~/Library/Caches/pypoetry" | - | Windows | "%localappdata%/pypoetry/cache" | - -4. Track down the offensive package and purge it from your anaconda `` folder, then try again (removing through conda can sometimes leave locks behind) - - | Platform | Location | - | --------- | -------------------------------------------- | - | Linux/Mac | "~/anaconda3/envs" or "~/opt/anaconda3/envs" | - | Windows | "%userprofile%/anaconda3/envs" | - -5. Completely nuke your conda environment folder and make a new environment from scratch - -6. Reboot your computer and try again - -7. Submit a ticket on github - -### ModuleNotFoundError - -In the case when you run into an error of the form `ModuleNotFoundError: No module named '_______'`. The solution is to -install the missing package via pip. - -If you get the error that `statsmodels` is not found, you would run -* `pip install statsmodels` - -Then please submit an issue so that we can address why that was not imported. - -Please note that the package `pmdarima` needs to installed through `pip install` and not through `conda install`. - ### Update Terminal The terminal is constantly being updated with new features and bug fixes, hence, for your terminal to be update, you can run: diff --git a/TROUBLESHOOT.md b/TROUBLESHOOT.md new file mode 100644 index 00000000000..38f6df4cccc --- /dev/null +++ b/TROUBLESHOOT.md @@ -0,0 +1,93 @@ + +# TROUBLESHOOT + +If you are visiting this page it means that you're having issues installing. We apologize for that. + +Since the start of the project we've come across different types of issues experienced by the users. This page tries to combine issues, and their solutions. This will allow to give the best install experience to everyone regardless of any programming skills. + +
    +
  1. + Standard Install Troubles: + +
  2. +
  3. + ModuleNotFound Trouble: + +
  4. +
  5. + Machine Learning Troubles: + +
  6. +
  7. + Other Troubles: + +
  8. +
+ + +## Standard Install + +### Other Issues + +If you run into trouble with poetry and the advice above did not help, your best bet is to try + +1. `poetry update --lock` + +2. `conda deactivate` -> `conda activate gst`, then try again + +3. Delete the poetry cache, then try again + + | Platform | Location | + | -------- | ------------------------------- | + | Linux | "~/.cache/pypoetry" | + | Mac | "~/Library/Caches/pypoetry" | + | Windows | "%localappdata%/pypoetry/cache" | + +4. Track down the offensive package and purge it from your anaconda `` folder, then try again (removing through conda can sometimes leave locks behind) + + | Platform | Location | + | --------- | -------------------------------------------- | + | Linux/Mac | "~/anaconda3/envs" or "~/opt/anaconda3/envs" | + | Windows | "%userprofile%/anaconda3/envs" | + +5. Completely nuke your conda environment folder and make a new environment from scratch + +6. Reboot your computer and try again + +7. Submit a ticket on github + +### ModuleNotFoundError + +In the case when you run into an error of the form `ModuleNotFoundError: No module named '_______'`. The solution is to +install the missing package via pip. + +If you get the error that `statsmodels` is not found, you would run +* `pip install statsmodels` + +Then please submit an issue so that we can address why that was not imported. + +Please note that the package `pmdarima` needs to installed through `pip install` and not through `conda install`. + +### Generic + +If you run into issues installing or `Cannot convert a symbolic Tensor...` at runtime, try this: + +``` +conda install -c conda-forge fbprophet numpy=1.19.5 hdf5=1.10.5 +poetry install +poetry install -E prediction +``` + +*Commands that may help you in case of an error:* + +* `python -m pip install --upgrade pip` +* `pip install pystan --upgrade` +* `poetry update --lock`