You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "AlphaJack (via GitHub)" <gi...@apache.org> on 2024/02/09 12:58:48 UTC

[I] TypeError: SQLAlchemySchemaMeta.get_declared_fields() missing 1 required positional argument: 'dict_cls' [superset]

AlphaJack opened a new issue, #27065:
URL: https://github.com/apache/superset/issues/27065

   ### Bug description
   
   I am getting a TypeError when launching Superset (`superset --help`): 
   
   ```
   TypeError: SQLAlchemySchemaMeta.get_declared_fields() missing 1 required positional argument: 'dict_cls'
   ```
   I installed Superset following the ["From Scratch"](https://superset.apache.org/docs/installation/installing-superset-from-scratch/) method.
   
   ### How to reproduce the bug
   
   1. Install Superset from scratch
   2. Run `superset --help`
   
   ### Screenshots/recordings
   
   ```
   Traceback (most recent call last):
     File "/usr/bin/superset", line 5, in <module>
       from superset.cli.main import superset
     File "/usr/lib/python3.11/site-packages/superset/__init__.py", line 21, in <module>
       from superset.app import create_app
     File "/usr/lib/python3.11/site-packages/superset/app.py", line 24, in <module>
       from superset.initialization import SupersetAppInitializer
     File "/usr/lib/python3.11/site-packages/superset/initialization/__init__.py", line 28, in <module>
       from flask_appbuilder import expose, IndexView
     File "/usr/lib/python3.11/site-packages/flask_appbuilder/__init__.py", line 5, in <module>
       from .api import ModelRestApi  # noqa: F401
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.11/site-packages/flask_appbuilder/api/__init__.py", line 29, in <module>
       from marshmallow_sqlalchemy.fields import Related, RelatedList
     File "/usr/lib/python3.11/site-packages/marshmallow_sqlalchemy/__init__.py", line 9, in <module>
       from .schema import (
     File "/usr/lib/python3.11/site-packages/marshmallow_sqlalchemy/schema.py", line 143, in <module>
       class SQLAlchemySchema(
     File "/usr/lib/python3.11/site-packages/marshmallow/schema.py", line 116, in __new__
       klass._declared_fields = mcs.get_declared_fields(
                                ^^^^^^^^^^^^^^^^^^^^^^^^
   TypeError: SQLAlchemySchemaMeta.get_declared_fields() missing 1 required positional argument: 'dict_cls'
   ```
   
   ### Superset version
   
   3.1.0
   
   ### Python version
   
   3.11
   
   ### Node version
   
   Not applicable
   
   ### Browser
   
   Not applicable
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
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.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


Re: [I] TypeError: SQLAlchemySchemaMeta.get_declared_fields() missing 1 required positional argument: 'dict_cls' [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #27065:
URL: https://github.com/apache/superset/issues/27065#issuecomment-2145847911

   Closing this as stale... but if you're still facing this, let us know if there's any updated context, and we can certainly reopen it!


-- 
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


Re: [I] TypeError: SQLAlchemySchemaMeta.get_declared_fields() missing 1 required positional argument: 'dict_cls' [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #27065: TypeError: SQLAlchemySchemaMeta.get_declared_fields() missing 1 required positional argument: 'dict_cls'
URL: https://github.com/apache/superset/issues/27065


-- 
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