Urban-Analytics-Technology-Platform / acbm

activity-based modelling pipeline (for transport demand models)
https://hackmd.io/w-m_OKaDT3GGBfSqFPpBjA
Apache License 2.0
4 stars 1 forks source link

solving SPC python version dependency #10

Closed Hussein-Mahfouz closed 6 months ago

Hussein-Mahfouz commented 6 months ago

I tried to install geopandas using poetry add geopandas but got the following error:

[BUG] uatk-spc (0.1.0) @ git+https://github.com/alan-turing-institute/uatk-spc.git@55-output-formats-python#subdirectory=python is not satisfied.

I ran some other commands such as poetry update and also got an error:

The current project's Python requirement (>=3.10) is not compatible with some of the required packages Python requirement:

  • uatk-spc requires Python ^3.10, so it will not be satisfied for Python >=4.0

Because acbm depends on uatk-spc (0.1.0) @ git+https://github.com/alan-turing-institute/uatk-spc.git@55-output-formats-python#subdirectory=python which requires Python ^3.10, version solving failed.

• Check your dependencies Python requirement: The Python requirement can be specified via the python or markers properties

For uatk-spc, a possible solution would be to set the python property to ">=3.10,<4.0"

@sgreenbury should the spc python dependency be changed from "^3.10" to ">=3.10,<4.0", or is this problem related to something else in my setup? Not sure if I should have posted this in https://github.com/alan-turing-institute/uatk-spc/

sgreenbury commented 6 months ago

Thanks for raising this and apologies uatk-spc caused a problem with the update. Having an upper limit on the python version in uatk-spc is unnecessary I think, so I have removed this, which should fix the issue.

Hussein-Mahfouz commented 6 months ago

Great thanks Sam. I managed to update uatk-spc but I'm still unable to install geopandas. I get the following error when running poetry install geopandas. The error message below suggests this has to do with an upper limit on python:

image

It could also be that I am installing geopandas incorrectly. The documentation suggests using conda and warns that the C library dependencies can be challenging to install.

Just documenting for now, but will revisit next week and ping you then if I'm still struggling with it

Hussein-Mahfouz commented 6 months ago

changing the python version in this repo's pyproject.tomlseems to have worked