developmentseed / timvt

PostGIS based Vector Tile server.
https://developmentseed.org/timvt/
MIT License
187 stars 27 forks source link

Error pip installing #94

Closed pabloaguilarmartinez closed 2 years ago

pabloaguilarmartinez commented 2 years ago

Hi, When I am installing timvt dependencies and Uvicorn (a lightning-fast ASGI server), it appears this error: Cargo, the Rust package manager, is not installed or is not on PATH. This package requires Rust and Cargo to compile extensions. Install it through the system's package manager or via https://rustup.rs/

I tried everything since check my 64-bit python version, install from https://rustup.rs/ and add the path.

Has this happened to anyone?

pabloaguilarmartinez commented 2 years ago

The problem was that I was using python 3.10. If you use 3.9 it works. I close the issue.

vincentsarago commented 2 years ago

@aguilarpablo thanks for the report and the update.

I'm still not sure where this comes from. Rust is (I think) need for one of the dependency: https://github.com/milesgranger/pyrus-cramjam but this it's python 3.10 compatible

vincentsarago commented 2 years ago

https://github.com/developmentseed/timvt/runs/8250339868?check_suite_focus=true

docker build is failing for the same reason. Interestingly it work fine in GitHub CI.

vincentsarago commented 2 years ago

ok, the issue is that wheels for python 3.10 for pyrus-cramjam is only created for version >2.5.0 but starlette-cramjam requires pyrus-cramjam<2.5.0. .... so we fall back on source install but we don't have Rust in the docker image!!!

Solutions:

vincentsarago commented 2 years ago

this was fixed in starlette-cramjam