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

   #### How to reproduce the bug
   
   Following methods to install prophet on docker image of Superset 1.5.1 fails 
with ModuleNotFoundError: No module named 'lunarcalendar'
   # pip install apache-superset[prophet]
   # pip install --no-cache-dir apache-superset[prophet]
   # pip install prophet==1.0.1
   # pip install --no-cache-dir prophet==1.0.1
   
   Note that the missing dependency can be anything, depending of what it is 
already installed or not, I personally saw errors about missing lunarcalendar, 
pystan, tqdm. Same has been explained 
[here](https://github.com/facebook/prophet/issues/1598#issuecomment-667067023) 
   
   For me, this worked finally: `pip install lunarcalendar tqdm "pystan<3.0" && 
pip install "prophet>=1.0.1, <1.1"` but i think even this might break in future 
if version of any of the other common dependencies with superset are changed or 
dependency is removed altogether. 
   
   ### Expected results
   
   It should be easy to install prophet
   
   ### Actual results
   
   its really messy
   
   #### Screenshots
   
   Here are the logs: 
   
   
[prophet-latest-directly.txt](https://github.com/apache/superset/files/9209099/prophet-latest-directly.txt)
   
[prophet-via-setup-py.txt](https://github.com/apache/superset/files/9209097/prophet-via-setup-py.txt)
   
[prophet-1.0.1-directly.txt](https://github.com/apache/superset/files/9209098/prophet-1.0.1-directly.txt)
   
   ### Environment
   
   - browser type and version: NA
   - superset version: 1.5.1
   - python version: 3.8.13
   - node.js version: NA
   - any feature flags active: NA
   
   ### 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
   
   prophet dependency issues were solved 
[recently](https://github.com/facebook/prophet/pull/2010) in 1.1 release. 
   I can install latest 1.1 prophet package with `pip install prophet` without 
errors but holidays package gets upgraded and then `superset db upgrade` breaks 
and gives below error. 
   pkg_resources.ContextualVersionConflict: (holidays 0.14.2 
(/usr/local/lib/python3.8/site-packages), 
Requirement.parse('holidays==0.10.3'), {'apache-superset'})
   pkg_resources.DistributionNotFound: The 'holidays==0.10.3' distribution was 
not found and is required by apache-superset
   
   Can holidays package dependency be bumped to 0.14.2 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]

Reply via email to