You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "wyc990122 (via GitHub)" <gi...@apache.org> on 2023/02/03 09:00:36 UTC
[GitHub] [superset] wyc990122 commented on issue #22977: ImportError: cannot import name 'appbuilder' from 'superset' (/app/superset/__init__.py) when running run.sh in the docker container
wyc990122 commented on issue #22977:
URL: https://github.com/apache/superset/issues/22977#issuecomment-1415401374
Besides,I also tried another superset version 1.3.0 integration tests,and i got the similar ImportError result:
```
2023-02-03 16:58:12 | Traceback (most recent call last):
| 2023-02-03 16:58:12 | File "/usr/local/bin/superset", line 33, in <module>
| 2023-02-03 16:58:12 | sys.exit(load_entry_point('apache-superset', 'console_scripts', 'superset')())
| 2023-02-03 16:58:12 | File "/usr/local/bin/superset", line 25, in importlib_load_entry_point
| 2023-02-03 16:58:12 | return next(matches).load()
| 2023-02-03 16:58:12 | File "/usr/local/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 105, in load
| 2023-02-03 16:58:12 | module = import_module(match.group('module'))
| 2023-02-03 16:58:12 | File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
| 2023-02-03 16:58:12 | return _bootstrap._gcd_import(name[level:], package, level)
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 983, in _find_and_load
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 983, in _find_and_load
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap_external>", line 728, in exec_module
| 2023-02-03 16:58:12 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
| 2023-02-03 16:58:12 | File "/app/superset/__init__.py", line 20, in <module>
| 2023-02-03 16:58:12 | from flask_appbuilder import AppBuilder, SQLA
| 2023-02-03 16:58:12 | File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/__init__.py", line 5, in <module>
| 2023-02-03 16:58:12 | from .api import ModelRestApi # noqa: F401
| 2023-02-03 16:58:12 | File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/api/__init__.py", line 6, in <module>
| 2023-02-03 16:58:12 | from typing import Callable, Dict, List, Optional, Set
| 2023-02-03 16:58:12 | File "/app/superset/typing.py", line 19, in <module>
| 2023-02-03 16:58:12 | from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
| 2023-02-03 16:58:12 | ImportError: cannot import name 'Any' from 'typing' (/app/superset/typing.py)
```
It shows the similar ImportError, so I don't know if I run the run.sh by the wrong way.
--
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