You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/11/07 21:55:01 UTC

[GitHub] [superset] MordicusEtCubitus opened a new issue #17364: superset db upgrade: No module named 'wtforms.compat'

MordicusEtCubitus opened a new issue #17364:
URL: https://github.com/apache/superset/issues/17364


   Dears,
   
   First thanks for this great software.
   I've just installed Superset 1.3.2 in a fresh conda environment, and I've got `No module named 'wtforms.compat'` error when running `superset db upgrade` after installation.
   
   ```bash
   conda create --name superset python=3.8  # this install 3.8.12
   conda activate superset
   pip install apache-superset
   superset db upgrade
   ```
   This produce:
   ```
   
   Traceback (most recent call last):
     File "/home/user/anaconda3/envs/Superset/bin/superset", line 5, in <module>
       from superset.cli import superset
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/superset/__init__.py", line 21, in <module>
       from superset.app import create_app
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/superset/app.py", line 23, in <module>
       from superset.initialization import SupersetAppInitializer
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/superset/initialization/__init__.py", line 26, in <module>
       from flask_appbuilder import expose, IndexView
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/flask_appbuilder/__init__.py", line 6, in <module>
       from .base import AppBuilder  # noqa: F401
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/flask_appbuilder/base.py", line 8, in <module>
       from .api.manager import OpenApiManager
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/flask_appbuilder/api/manager.py", line 8, in <module>
       from flask_appbuilder.baseviews import BaseView
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 21, in <module>
       from .forms import GeneralModelConverter
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/flask_appbuilder/forms.py", line 16, in <module>
       from .fields import EnumField, QuerySelectField, QuerySelectMultipleField
     File "/home/user/anaconda3/envs/Superset/lib/python3.8/site-packages/flask_appbuilder/fields.py", line 6, in <module>
       from wtforms.compat import string_types, text_type
   ModuleNotFoundError: No module named 'wtforms.compat
   ```
   
   I've found a similar issue with wtforms_sqlachemy here, https://github.com/wtforms/wtforms-sqlalchemy/issues/29, but it is not involved in the import traceback
   
   Could you help ?
   
   With kind regards,
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] junlincc closed issue #17364: superset db upgrade: No module named 'wtforms.compat'

Posted by GitBox <gi...@apache.org>.
junlincc closed issue #17364:
URL: https://github.com/apache/superset/issues/17364


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] MordicusEtCubitus commented on issue #17364: superset db upgrade: No module named 'wtforms.compat'

Posted by GitBox <gi...@apache.org>.
MordicusEtCubitus commented on issue #17364:
URL: https://github.com/apache/superset/issues/17364#issuecomment-962688926


   I've just identified that wtforms.compat has been removed in wtforms 3.0
   Maybe dependencies should be updated to require wtforms < 3.0 or the code updated...
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] MordicusEtCubitus edited a comment on issue #17364: superset db upgrade: No module named 'wtforms.compat'

Posted by GitBox <gi...@apache.org>.
MordicusEtCubitus edited a comment on issue #17364:
URL: https://github.com/apache/superset/issues/17364#issuecomment-962688926


   I've just identified that wtforms.compat has been removed in wtforms 3.0
   Maybe dependencies should be updated to require wtforms < 3.0 or the code updated...
   
   And wtforms 2.3 has removed HTMLString from wtforms.widgets' :
   `ImportError: cannot import name 'HTMLString' from 'wtforms.widgets'`
   
   https://stackoverflow.com/questions/61363793/wtforms-2-3-0-breaking-change-importerror-cannot-import-name-htmlstring-fro
   
   So requirement should be wtforms <= 2.2
   Thus it works
   `pip install wtforms==2.2`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] shawnzhu commented on issue #17364: superset db upgrade: No module named 'wtforms.compat'

Posted by GitBox <gi...@apache.org>.
shawnzhu commented on issue #17364:
URL: https://github.com/apache/superset/issues/17364#issuecomment-965530766


   I've tested the fix of #1732 in my superset (v1.3.2) with FAB v3.4.0 and :point_up: problem is resolved, plus a new OAuth signin/logout flow.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] ian-r-johnson commented on issue #17364: superset db upgrade: No module named 'wtforms.compat'

Posted by GitBox <gi...@apache.org>.
ian-r-johnson commented on issue #17364:
URL: https://github.com/apache/superset/issues/17364#issuecomment-963685622


   Looks like there's a fix coming from Flask App builder.
   
   https://github.com/dpgaspar/Flask-AppBuilder/issues/1732


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org