pavlozt opened a new issue #19089:
URL: https://github.com/apache/superset/issues/19089
Something strange with versions and images in dockerhub.
#### How to reproduce the bug
```
git checkout 1.4.1
TAG=1.4.1 docker-compose -f docker-compose-non-dev.yml up -d
docker exec superset_app superset export_dashboards
```
### Actual results
```
Loaded your LOCAL configuration at
[/app/docker/pythonpath_dev/superset_config.py]
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: (requests 2.27.1
(/usr/local/lib/python3.8/site-packages),
Requirement.parse('requests==2.26.0'), {'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/lib/python3.8/site-packages/click/core.py", line 829, in
__call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 586, in
main
return super(FlaskGroup, self).main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in
main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1254, in
invoke
cmd_name, cmd, args = self.resolve_command(ctx, args)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1297, in
resolve_command
cmd = self.get_command(ctx, cmd_name)
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 527, in
get_command
self._load_plugin_commands()
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 517, in
_load_plugin_commands
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 'requests==2.26.0' distribution was
not found and is required by apache-superset
```
### Environment
- superset version: 1.4.1
### Checklist
- [X] I have checked the superset logs for python stacktraces and included
it here as text if there are any.
- [X] I have reproduced the issue with at least the latest released version
of superset.
- [X] I have checked the issue tracker for the same issue and I haven't
found one similar.
### Additional context
Problem is easy to get around by adding "requests==2.26.0" to to the file
docker/requirements-local.txt
What would break down could not be found.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]