arup-group / elara

Command line utility for processing MATSim events output files.
MIT License
14 stars 4 forks source link

Pandas dependency #63

Closed sarah-e-hayes closed 3 years ago

sarah-e-hayes commented 3 years ago

I installed all the packages in the venv as per requirements.txt which includes pandas 1.0.4.

However when I tried to run an elara process using the test_fixtures data, it returned an error pkg_resources.ContextualVersionConflict: (pandas 1.0.4 (/home/arup/repo/elara/venv/lib/python3.8/site-packages), Requirement.parse('pandas>=1.1.0'), {'mizani'})

I tried manually upgrading pandas to 1.1.0 as the error message suggested, but then Elara didn't seem able to handle the newer verion and I got this error: pkg_resources.DistributionNotFound: The 'pandas==1.0.4' distribution was not found and is required by elara

sarah-e-hayes commented 3 years ago

I think Elara needs mizani==0.7.2 which needs pandas>=1.1.0 BUT Elara also needs pandas==1.0.4 directly. It's like a love triangle between libraries!!

fredshone commented 3 years ago

can you check you are in master and have latest, then detail what you are running.

I just tried elara run example_config.toml from root and it seems happy but maybe missed the problem.

fredshone commented 3 years ago

ok I have reproduced.

Let's blame the plotnine dependancy I think which seems to have a lot of un-pinned requirements (second strike for them...).

ok I've shifted the pandas requirement to pandas==1.1.0. Will push in a mo