Python Forum

Full Version: No module named flask_themes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Centos 7 ,python 2.7

# pip install flask-themes
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: flask-themes in /usr/lib/python2.7/site-packages/Flask_Themes-0.1.3-py2.7.egg (0.1.3)
Requirement already satisfied: Flask>=0.6 in /usr/lib/python2.7/site-packages (from flask-themes) (0.11.1)
Requirement already satisfied: itsdangerous>=0.21 in /usr/lib/python2.7/site-packages (from Flask>=0.6->flask-themes) (0.23)
Requirement already satisfied: click>=2.0 in /usr/lib64/python2.7/site-packages (from Flask>=0.6->flask-themes) (6.6)
Requirement already satisfied: Jinja2>=2.4 in /usr/lib/python2.7/site-packages (from Flask>=0.6->flask-themes) (2.7.2)
Requirement already satisfied: Werkzeug>=0.7 in /usr/lib/python2.7/site-packages (from Flask>=0.6->flask-themes) (0.9.1)
Requirement already satisfied: markupsafe in /usr/lib64/python2.7/site-packages (from Jinja2>=2.4->Flask>=0.6->flask-themes) (0.11)

error message :

File "/opt/qpanel/qpanel/app.py", line 8, in <module>
from flask_themes import setup_themes, render_theme_template
ImportError: No module named flask_themes
Tried it and is not working,so it a dead project started 9-years ago.
There was some update to work in Flask 0.12,but Flask is now at:
>>> import flask
>>> flask.__version__
'1.0.2'
Do not use it,if still want to try pip install Flask==0.12,in a virtual environment.
Also stop using Python 2 Dodgy
thank you for your answer , i have done your recommendation but :

this code still give error:

from flask_themes import setup_themes, render_theme_template
python /opt/qpanel/app.py
Traceback (most recent call last):
File "/opt/qpanel/app.py", line 1, in <module>
from qpanel import app
File "/opt/qpanel/qpanel/app.py", line 8, in <module>
from flask_themes import setup_themes, render_theme_template
ImportError: No module named flask_themes

when i check lib i cant found this directorie "flask themes" in /usr/lib/python2.7/site-packages only this file /usr/lib/python2.7/site-packages/Flask_Themes-0.1.3-py2.7.egg
I tried in with Flask==0.12 and dos not work there either.
So it's dead project,one issue on GitHub no answer.
Quote:when release update version to PYPI?
this is the project it's last update 6 months ago

https://github.com/roramirez/qpanel