nigzak opened a new issue, #26629:
URL: https://github.com/apache/superset/issues/26629
A clear and concise description of what the bug is.
#### How to reproduce the bug
pull the official 3.0.2 container
install prophet
### Expected results
it works
### Actual results
it does not work
what actually happens.
```
superset db upgrade
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 568, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 777, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (holidays 0.41
(/usr/local/lib/python3.9/site-packages),
Requirement.parse('holidays<0.24,>=0.23'), {'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.9/importlib/metadata.py", line 86, in load
module = import_module(match.group('module'))
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, 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 38, in <module>
import pkg_resources
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 3243, in <module>
def _initialize_master_working_set():
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 3226, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 3255, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 570, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 583, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'holidays<0.24,>=0.23' distribution
was not found and is required by apache-superse
```
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [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
with prophet 1.1.5 also a much more newer version of holidays is required
... probably think about allowing more versions in superset than only one fixed
version? This will always kill the integration
Refer old ticket https://github.com/apache/superset/issues/24619 where it
was fixed for 2.1.1, seems it was not integrated in 3.x
At all same issue with prophet update now happens again (cannot install
1.1.5)
### workaround
install prophet and holiday with a fixed version (1.1.3 prophet)
### HINT
prophet 1.1.3 is two versions behind and probably should not being used
anymore
prophet 1.1.4 is not compatible with holidays 0.23
```
ERROR: Cannot install holidays==0.23 and prophet==1.1.4 because these
package versions have conflicting dependencies.
The conflict is caused by:
The user requested holidays==0.23
prophet 1.1.4 depends on holidays>=0.25
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency
conflict
```
might be good idea as asked to make not a fixed holiday package required in
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: [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]