Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from werkzeug.middleware.proxy_fix import ProxyFix needed? #45

Open
porteusconf opened this issue Aug 26, 2020 · 0 comments
Open

from werkzeug.middleware.proxy_fix import ProxyFix needed? #45

porteusconf opened this issue Aug 26, 2020 · 0 comments

Comments

@porteusconf
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant