Open ndrewwm opened 1 month ago
According to the default-image/Dockerfile, our current flows are running Python 3.10, so one option would be to stick with that. However, I think the intent is that numpy should be < 2.0.0 just like pandas. I can proceed with applying that fix unless you think there could be an issue with that aproach.
That sounds good to me! Avoiding the necessity of particular Python installations keeps things a bit simpler.
Wait I just checked the requirements file and it already has numpy<2.0.0. Were you using pip install -r default-image/requirements.txt
?
This issue is relevant for local installations of ucb_prefect_tools
, not within the Prefect image. We'd need to update the setup.cfg
in this repository.
Oh I see. I will update that. But also, even for local installs, the method I recommended is best so you get all the requirements to run prefect flows in one go.
Also now that I'm working on doing this re-install myself, it looks like you need to be on Python 3.10 or 3.11 to install these requirements.
Ah, gotcha. I think we should update our Confluence docs with a description of these steps. Sounds like we should be recommending:
pip install -r default-image/requirements.txt
Okay thanks! I will add this as a to-do task for me to look at when I revamp the documentation.
This came up while trying to get Shealene's Python installation up and running. For new users running a recent version of Python (3.12.4), a
numpy
install at or above 2.0.0 will conflict withpandas
. Ourucb_prefect_tools
library pins the pandas version, but doesn't specify one for numpy. The result is an import error any time the user attempts to load the pandas library.Looks like this problem has already been flagged in the
numpy
repo: https://github.com/numpy/numpy/issues/26710 A solution is to downgrade numpy to a version below 2.0.0, or to have the user install an older version of Python. Our onboarding guide doesn't have guidance on how their Python installation should be set up. How do we want to handle this kind of issue?To reproduce the error:
ucb_prefect_tools
package