mckinsey / vizro

Vizro is a toolkit for creating modular data visualization applications.
https://vizro.readthedocs.io/en/stable/
Apache License 2.0
2.61k stars 116 forks source link

Temp fix dependency issues of kedro and pandas #274

Closed Anna-Xiong closed 7 months ago

Anna-Xiong commented 7 months ago

Description

Screenshot

Notice

Anna-Xiong commented 7 months ago

@huong-li-nguyen @antonymilne Hi Li and Antony, here after we add the pyarrow dependency, there is still remaining issue of vizro-core, looks like there is something off from kedro.io.core.DatasetError.

huong-li-nguyen commented 7 months ago

Details

I'm not sure if it's related to Kedro directly. I think it has something to do with the latest pandas release. If you temporarily add "pandas<2.2" to the pyproject.toml of vizro-core - does it fix it? (It seems to do so locally on my machine)

Unless you manage to fix it for the latest pandas version quickly, I would suggest to add the upper bound for now and add a comment and ticket to investigate it. We should remove it as soon as possible, but if it's blocking urgent changes, then let's leave it for later

Anna-Xiong commented 7 months ago

Details

I'm not sure if it's related to Kedro directly. I think it has something to do with the latest pandas release. If you temporarily add "pandas<2.2" to the pyproject.toml of vizro-core - does it fix it? (It seems to do so locally on my machine)

Unless you manage to fix it for the latest pandas version quickly, I would suggest to add the upper bound for now and add a comment and ticket to investigate it. We should remove it as soon as possible, but if it's blocking urgent changes, then let's leave it for later

after setting the upper bound of pandas, python 3.11 and python 3.12 works. but the remaining versions still fail

huong-li-nguyen commented 7 months ago

Details

I'm not sure if it's related to Kedro directly. I think it has something to do with the latest pandas release. If you temporarily add "pandas<2.2" to the pyproject.toml of vizro-core - does it fix it? (It seems to do so locally on my machine) Unless you manage to fix it for the latest pandas version quickly, I would suggest to add the upper bound for now and add a comment and ticket to investigate it. We should remove it as soon as possible, but if it's blocking urgent changes, then let's leave it for later

after setting the upper bound of pandas, python 3.11 and python 3.12 works. but the remaining versions still fail

Ah yeah, that's already better 😄 I just saw that Kedro has just released a new version as well. I suspect we probably need to update something here as well? I initially thought it's the ConfigLoader, but not sure? If you add an upper bound on the Kedro version as well, does it help?

Anna-Xiong commented 7 months ago

Details

@huong-li-nguyen after trying a bit combination of versions, only setting upper bound of both pandas and kedro for vizro-core works to pass all tests with recent release from pandas and kedro. Agree that we can temporarily fix them and add ticket for further investigation