~sircmpwn/man.sr.ht#34: 
ImportError: cannot import name 'csrf_bypass' from 'srht.flask' (/usr/lib/python3.7/site-packages/srht/flask/__init__.py)

>>> from dispatchsrht.app import db
/usr/lib/python3.7/site-packages/sqlalchemy/sql/functions.py:67: SAWarning: The GenericFunction 'array_agg' is already registered and is going to be overriden.
"is going to be overriden.".format(identifier)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/dispatchsrht/app.py", line 1, in <module>
from srht.flask import SrhtFlask
File "/usr/lib/python3.7/site-packages/srht/flask/__init__.py", line 8, in <module>
from .flask import DATE_FORMAT
File "/usr/lib/python3.7/site-packages/srht/flask/flask.py", line 10, in <module>
from srht.oauth.scope import set_client_id
File "/usr/lib/python3.7/site-packages/srht/oauth/__init__.py", line 28, in <module>
from srht.oauth.blueprint import oauth_blueprint
File "/usr/lib/python3.7/site-packages/srht/oauth/blueprint.py", line 8, in <module>
from srht.flask import csrf_bypass
ImportError: cannot import name 'csrf_bypass' from 'srht.flask' (/usr/lib/python3.7/site-packages/srht/flask/__init__.py)

Archlinux, latest packages from all dbs.

Status
RESOLVED DUPLICATE
Submitter
~lilmike
Assigned to
No-one
Submitted
5 years ago
Updated
5 years ago
Labels
No labels applied.

~sircmpwn REPORTED DUPLICATE 5 years ago

Please don't report this for every project. I'm working on the fix based on your first bug report.

Register here or Log in to comment, or comment via email.