Python Forum
Flask_table module compatibility issue: cannot import name 'Markup' from 'flask'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flask_table module compatibility issue: cannot import name 'Markup' from 'flask'
#1
Hi Team,
We are using flask_table module in one of our python flask application , After upgrade to latest version of flask 3.0.2 then we are getting
below error and observed still flask_table=0.5.0 version.

Instead of downgrading flask modules, Could we expect upgraded version of flask_table soon ?.

Could you please suggest the solution.

Error:
[Thu Mar 07 04:35:52.553399 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] from flask_table import Table, Col, LinkCol, DateCol
[Thu Mar 07 04:35:52.553405 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] File "/autohome/www/cgi-bin/Common/flaskenv/lib/python3.8/site-packages/flask_table/__init__.py", line 1, in <module>
[Thu Mar 07 04:35:52.553408 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] from .table import Table, create_table
[Thu Mar 07 04:35:52.553411 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] File "/autohome/www/cgi-bin/Common/flaskenv/lib/python3.8/site-packages/flask_table/table.py", line 5, in <module>
[Thu Mar 07 04:35:52.553413 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] from flask import Markup
[Thu Mar 07 04:35:52.553425 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] ImportError: cannot import name 'Markup' from 'flask' (/autohome/www/cgi-bin/Common/flaskenv/lib/python3.8/site-packages/flask/__init__.py)
Reply
#2
(Mar-21-2024, 11:51 AM)venkateshbalagiri Wrote: Hi Team,
We are using flask_table module in one of our python flask application , After upgrade to latest version of flask 3.0.2 then we are getting
below error and observed still flask_table=0.5.0 version.

Instead of downgrading flask modules, Could we expect upgraded version of flask_table soon ?.

Could you please suggest the solution.

Error:
[Thu Mar 07 04:35:52.553399 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] from flask_table import Table, Col, LinkCol, DateCol
[Thu Mar 07 04:35:52.553405 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] File "/autohome/www/cgi-bin/Common/flaskenv/lib/python3.8/site-packages/flask_table/__init__.py", line 1, in <module>
[Thu Mar 07 04:35:52.553408 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] from .table import Table, create_table
[Thu Mar 07 04:35:52.553411 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] File "/autohome/www/cgi-bin/Common/flaskenv/lib/python3.8/site-packages/flask_table/table.py", line 5, in <module>
[Thu Mar 07 04:35:52.553413 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] from flask import Markup
[Thu Mar 07 04:35:52.553425 2024] [wsgi:error] [pid 3584842:tid 140662083135232] [client 10.21.18.136:56476] ImportError: cannot import name 'Markup' from 'flask' (/autohome/www/cgi-bin/Common/flaskenv/lib/python3.8/site-packages/flask/__init__.py)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  flask.cli.NoAppException: Could not import 'app' kazu755 4 4,833 Feb-19-2023, 01:50 PM
Last Post: Larz60+
  Extract json-ld schema markup data and store in MongoDB Nuwan16 0 2,476 Apr-05-2020, 04:06 PM
Last Post: Nuwan16
  How to crawl schema markup data type using scrapy? Nuwan16 1 3,091 Mar-31-2020, 03:42 PM
Last Post: stranac
  flask to uwsgi threading issue batchenr 1 4,076 Jun-17-2019, 02:12 PM
Last Post: batchenr
  Python Import Sybase Module returning non explicit error thebeefes 2 5,947 Mar-14-2019, 07:32 PM
Last Post: Carlos
  Scrapy python import issue basheerkharoti 1 4,526 Feb-12-2018, 09:55 AM
Last Post: Larz60+
  Import error even though module is installed datafix 8 19,816 Jun-29-2017, 03:51 PM
Last Post: datafix

Forum Jump:

User Panel Messages

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