arup-group / genet

Manipulate MATSim networks via a Python API.
MIT License
44 stars 9 forks source link

Mamba and osmium #239

Closed gac55 closed 5 months ago

gac55 commented 6 months ago

osmium <3.7 does not exist (perhaps a typo or a missing channel).

➜  genet git:(main) mamba create -n genet -c conda-forge --file requirements/base.txt

Looking for: ["anytree[version='<2.9']", "boto3[version='<1.30']", "click[version='<9']", "dictdiffer[version='<1']", "geopandas[version='>=0.13,<0.15']", "importlib_resources[version='<7']", "ipykernel[version='<7']", "keplergl[version='<0.4']", "lxml[version='<5']", "matplotlib[version='<4']", "networkx[version='<4']", "numpy[version='>=1,<2']", "osmium[version='<3.7']", "osmnx[version='<2']", "pandas[version='>=1.5,<2.2']", "polyline[version='>=2,<3']", "pre-commit[version='<4']", "pyomo[version='>=6,<7']", "pyproj[version='>=3,<4']", "pyyaml[version='>=6,<7']", "requests-futures[version='>=1,<2']", "rich[version='<14']", "rioxarray[version='<0.16']", "s2sphere[version='<0.3']", "scikit-learn[version='>=1.2,<2']", "shapely[version='>=1,<3']", "tqdm[version='>=4,<5']", "xarray[version='<=2024.2']", "xmltodict[version='<0.14']"]

conda-forge/osx-arm64                                9.6MB @  26.4MB/s  0.4s
conda-forge/noarch                                  14.6MB @  18.8MB/s  0.8s
Could not solve for environment specs
The following package could not be installed
└─ osmium <3.7  does not exist (perhaps a typo or a missing channel).
gac55 commented 6 months ago
mamba create -n genet -c conda-forge -c city-modelling-lab --file requirements/base.txt

Thanks to @KasiaKoz , above works. Although I don't understand why!

brynpickering commented 5 months ago

We have built and uploaded osmium to conda ourselves, so it's only available on the city-modelling-lab conda channel (here: https://anaconda.org/city-modelling-lab/osmium). I'll update the docs as it was missing that channel reference