-
Notifications
You must be signed in to change notification settings - Fork 915
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
Flask-Babel or Flask-BabelEx is installed but not initialized #434
Comments
uninstall Flask-Babel and Flask-BabelEx |
Trying |
@fsxchen they are python packages. |
I've uninstalled these packages. pip list doesn't give them. I've got this error log : |
@fsxchen can you attach your |
alabaster==0.7.12 |
I've reinstalled Faraday with the last release on a Kali linux and I got the same errors : I desinstalled Babel python package with the command below : After restarting the server, I got the same error. Very wierd ! |
@fsxchen did you notice that faraday is not in that list?? |
You're right ! alabaster==0.7.12 |
@fsxchen Ok now this makes more sense. I suggest you to install it from the github repo, not the kali version |
Just comment this check in /usr/local/lib/python3.9/dist-packages/flask_security/core.py: if have_babel() and "babel" not in app.extensions and 0: And all should be fine. |
Now I followed this thread and uninstalled flask and babel and now i'm getting this error when running the server: File "/usr/lib/python3/dist-packages/flask_login/login_manager.py", line 12, in And I keep getting this error when running the client: |
@thedigitalempress you should do: if have_babel() and "babel" not in app.extensions and 0: this is not estrictly inherited from our code but from flask_security itself in the kali version. Thanks. |
Issue Type
Faraday version
Paste the output of the ./faraday.py --version command
Faraday v3.15.0
Component Name
Steps to reproduce
sudo faraday-server --debug
then I use browser,I get
ValueError: Flask-Babel or Flask-BabelEx is installed but not initialized
2021-06-28T04:41:15-0400 - faraday.server.app - ERROR {PoolThread-twisted.internet.reactor-1} [pid:10537] [app.py:1891 - log_exception()] Exception on /session [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1945, in full_dispatch_request
self.try_trigger_before_first_request_functions()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1993, in try_trigger_before_first_request_functions
func()
File "/usr/local/lib/python3.9/dist-packages/Flask_Security_Too-4.0.1-py3.9.egg/flask_security/core.py", line 1164, in check_babel
raise ValueError(
ValueError: Flask-Babel or Flask-BabelEx is installed but not initialized
Expected results
What did you expect to happen when following the steps above?
Debugging tracebacks (current results)
Try to reproduce the bug with the server and/or gtk client in debug mode and check the logs for the ERROR string.
Add here any errors you find while running in debug mode or, if possible, Faraday’s log files (located at $HOME/.faraday/logs/).
If you need help on how to execute in debug mode click here for more information.
Please attach the result of:
pip freeze > requirements_freeze.txt
Screenshots
If you don't find anything on the logs, please provide screenshots of the error.
Environment information
Configuration files
Mention any settings you have changed/added/removed.
Reports/Extra data
If you are having issues with plugins, please attach relevant files if possible.
(strip your reports of all sensitive information beforehand).
OS
Linux kali 5.9.0-kali1-amd64 #1 SMP Debian 5.9.1-1kali2 (2020-10-29) x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: