Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No module named flask_themes
#1
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
Reply
#2
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
Reply
#3
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
Reply
#4
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?
Reply
#5
this is the project it's last update 6 months ago

https://github.com/roramirez/qpanel
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  No module named theapp Clives 10 5,679 Jun-10-2021, 11:16 AM
Last Post: Larz60+
  ModuleNotFoundError: No module named "requests" BushFacts 1 5,103 Jan-13-2020, 06:49 AM
Last Post: perfringo
  Django getting ModuleNotFoundError: No module named '=' Malt 0 2,929 Aug-30-2019, 08:34 AM
Last Post: Malt
  About .profile and ImportError: No module named RicardoAbdala 1 3,098 Aug-28-2018, 05:32 AM
Last Post: buran
  ImportError: No module named django.core.exceptions in google app engine timtinan37 4 4,911 Jun-18-2018, 01:34 PM
Last Post: Larz60+
  ImportError: No module named '_sqlite3' armanmax11 5 21,395 Dec-16-2017, 02:13 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020