Per https://werkzeug.palletsprojects.com/en/0.16.x/middleware/proxy_fix/#module-werkzeug.middleware.proxy_fix
To get rid of error below I had to edit line 23 to be:
from werkzeug.middleware.proxy_fix import ProxyFix
Seem to fix this error:
File "forna_server.py", line 23, in <module>
from werkzeug.contrib.fixers import ProxyFix
ImportError: No module named contrib.fixers
For the record, after changing line 23 I was able to run forma_server and I think all the steps I used are below...
$ conda create --name py2 python=2.7
$ conda activate py2
(py2) $ conda config --add channels defaults
(py2) $ conda config --add channels bioconda
(py2) $ conda config --add channels conda-forge
(py2) $ conda install forgi viennarna
(py2) $ python forna_server.py -s -d -p 54321
* Cleaning up database
* Starting static
* Serving Flask app "forna_server" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Cleaning up database
* Starting static
Site served in above example at http://localhost:54321
P.S. Now if I can just get the API working ;-) But I'll add a new issue for when I figure out how to fix this:
URS0000000001: ERROR (400) - Secondary structure parsing error: __init__() takes at least 3 arguments (1 given)
Per https://werkzeug.palletsprojects.com/en/0.16.x/middleware/proxy_fix/#module-werkzeug.middleware.proxy_fix
To get rid of error below I had to edit line 23 to be:
Seem to fix this error:
For the record, after changing line 23 I was able to run forma_server and I think all the steps I used are below...
Site served in above example at http://localhost:54321
P.S. Now if I can just get the API working ;-) But I'll add a new issue for when I figure out how to fix this: