From bca52379ed312eb5aa739449b8e04643b15873a3 Mon Sep 17 00:00:00 2001 From: Adam Brewer Date: Sun, 8 Aug 2021 21:30:14 -0400 Subject: [PATCH] Add local dev environment threading issue solution to README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 40b0bd4..8594982 100644 --- a/README.md +++ b/README.md @@ -80,3 +80,8 @@ Below are instructions for running gallery locally. It assumes that you have alr 5. `pip install -r requirements.txt` 6. `python3 wsgi.py` + + a. If you get an error like: `Fatal Python error: saving thread twice?`, you can fix it by modifying `wsgi.py`, + changing `app.run(host=app.config['IP'], port=app.config['PORT'])` + to `app.run(host=app.config['IP'], port=app.config['PORT'], threaded=False)` + A short discussion of this issue can be found [here](https://github.com/pallets/flask/issues/2744).