From 69a70d3119bad27c70f1f3ed92f308b63bcb2f06 Mon Sep 17 00:00:00 2001 From: didier Date: Sat, 24 Apr 2021 00:30:49 +0100 Subject: [PATCH 1/2] improve installation guideliens based on feedback --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a5f65181b3b..372469cbb8a 100644 --- a/README.md +++ b/README.md @@ -111,19 +111,24 @@ conda activate gst ``` Note: At the end, you can deactivate it with: `conda deactivate` -4. Fork the Project +4. Install git +``` +conda install -c anaconda git +```` + +5. Fork 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/` -5. Install poetry +6. Install poetry ``` conda install poetry ``` -5.5. If installing python 3.8 +6.5. If installing python 3.8 ``` conda deactivate conda activate gst @@ -131,13 +136,13 @@ conda activate gst *The `conda deactivate` -> `conda activate` in the middle is on purpose, this is sometimes required to avoid issues with poetry* -6. Install poetry dependencies +7. Install poetry dependencies ``` poetry install ``` This is a library for package management, and ensures a smoother experience than: ``pip install -r requirements.txt`` -7. You're ready to Gamestonk it! +8. You're ready to Gamestonk it! ``` python terminal.py From bd68135560cbf9dfe7fe96b6f5e0172a12bf5ab9 Mon Sep 17 00:00:00 2001 From: didier Date: Sat, 24 Apr 2021 00:32:50 +0100 Subject: [PATCH 2/2] try catch to avoid common error experienced by users --- terminal.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/terminal.py b/terminal.py index 368f078bcc3..57842d53449 100644 --- a/terminal.py +++ b/terminal.py @@ -92,9 +92,12 @@ def main(): menu_parser.add_argument("opt", choices=choices) completer = NestedCompleter.from_nested_dict({c: None for c in choices}) - if os.name == "nt": - sys.stdin.reconfigure(encoding="utf-8") - sys.stdout.reconfigure(encoding="utf-8") + try: + if os.name == "nt": + sys.stdin.reconfigure(encoding="utf-8") + sys.stdout.reconfigure(encoding="utf-8") + except Exception as e: + print(e, "\n") # Print first welcome message and help print("\nWelcome to Gamestonk Terminal 🚀\n")