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 2022/10/07 12:31:35 UTC
[GitHub] [superset] vladaman opened a new issue, #21735: Error running superset in docker with typing-extensions
vladaman opened a new issue, #21735:
URL: https://github.com/apache/superset/issues/21735
We are unable to run superset with docker.
## Steps to reproduce
Dockerfile:
```Dockerfile
FROM apache/superset
USER root
RUN pip install mysqlclient
RUN pip install elasticsearch-dbapi
RUN pip install psycopg2-binary
RUN pip install snowflake-sqlalchemy
RUN pip install "PyAthena>1.2.0"
RUN pip install pydruid
RUN pip install sqlalchemy-redshift
USER superset
```
## Followed by commands
```bash
docker build -t org/superset2 .
docker run -d -p 8080:8088 --name superset org/superset2
docker exec -it superset superset fab create-admin \
--username admin \
--firstname Superset \
--lastname Admin \
--email admin@superset.com \
--password admin
```
## Produces error
```
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 568, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (typing-extensions 4.4.0 (/usr/local/lib/python3.8/site-packages), Requirement.parse('typing-extensions<4,>=3.10'), {'apache-superset'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/superset", line 33, in <module>
sys.exit(load_entry_point('apache-superset', 'console_scripts', 'superset')())
File "/usr/local/bin/superset", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/superset/cli/main.py", line 28, in <module>
from superset.cli.lib import normalize_token
File "/app/superset/cli/lib.py", line 20, in <module>
from superset import config
File "/app/superset/config.py", line 46, in <module>
import pkg_resources
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3243, in <module>
def _initialize_master_working_set():
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 570, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'typing-extensions<4,>=3.10' distribution was not found and is required by apache-superset
```
--
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
[GitHub] [superset] ShaliniIruvuru commented on issue #21735: Error running superset in docker with typing-extensions
Posted by "ShaliniIruvuru (via GitHub)" <gi...@apache.org>.
ShaliniIruvuru commented on issue #21735:
URL: https://github.com/apache/superset/issues/21735#issuecomment-1603713472
Hi @sfirke ,
I didn't add any packages specifically,I just followed whatever @vladaman provided the steps to reproduce the bug.
After followed the steps I didn't get any error.FYI I added screenshots in above comment.Please go through...
--
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] rusackas closed issue #21735: Error running superset in docker with typing-extensions
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #21735: Error running superset in docker with typing-extensions
URL: https://github.com/apache/superset/issues/21735
--
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] rusackas commented on issue #21735: Error running superset in docker with typing-extensions
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #21735:
URL: https://github.com/apache/superset/issues/21735#issuecomment-1624624868
Doesn't look like we're seeing a response from the original author, and the issue is neither clear nor reproducible. Closing, but open to further discussion.
--
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] ShaliniIruvuru commented on issue #21735: Error running superset in docker with typing-extensions
Posted by "ShaliniIruvuru (via GitHub)" <gi...@apache.org>.
ShaliniIruvuru commented on issue #21735:
URL: https://github.com/apache/superset/issues/21735#issuecomment-1476410905
It is not a bug.We were able to run Superset with Docker.
Screenshots:-
![image](https://user-images.githubusercontent.com/115684419/226383104-705cd8ca-465d-4984-86fc-0cb8cfb523be.png)
![image](https://user-images.githubusercontent.com/115684419/226383169-06975576-87c9-409a-a550-d40122a58760.png)
--
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] sfirke commented on issue #21735: Error running superset in docker with typing-extensions
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #21735:
URL: https://github.com/apache/superset/issues/21735#issuecomment-1602829571
Superset deploys with Docker generally. I agree that your link to that other comment looks relevant, that is, that this is resulting from one of the packages you have added to your Dockerfile.
Did you resolve this problem?
--
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] sfirke commented on issue #21735: Error running superset in docker with typing-extensions
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #21735:
URL: https://github.com/apache/superset/issues/21735#issuecomment-1604239231
I was addressing @vladaman who filed this issue, it looks like he is adding packages. @ShaliniIruvuru are you saying this is not a bug because you can run Superset with docker? I am confused. Just trying to figure out if the original issue that @vladaman has still persists.
--
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