hove-io / transit_model

Managing transit data with Rust
GNU Affero General Public License v3.0
53 stars 28 forks source link

Problem with cargo install --path gtfs2netexfr #859

Closed GeorgeXen closed 1 year ago

GeorgeXen commented 1 year ago

I did clone the URL of the repository to an anaconda shell and then run cargo install --path gtfs2netexfr. Everything looks okay until it reaches 244/249 and it shows Proj-sys(build). I tried it many times and tried to find what is missing but again it doesn't work. Does anyone have the same issue?

1

pbougue commented 1 year ago

Hi, Did you have a look at the doc part on PROJ dependency : https://github.com/hove-io/transit_model#proj-dependency ? This should help (get inspiration/tweak from makefile if it doesn't work right away).

pbougue commented 1 year ago

Also, if you don't have PROJ on your system it can be quite long to build, as proj crate downloads and compiles it, then uses it (compiles itself).

GeorgeXen commented 1 year ago

Thank you man for your help! I tried on anaconda to install the proj deps and proj but I have an error (you can see the photo). When I try to do sudo apt update, anaconda don't have this command, also it can't install it as I have seen in anaconda.org. Do you think I must try another way? image

ArnaudOggy commented 1 year ago

Hi @GeorgeXen Do you necessarily need to compile? We never have tested this on Windows. Do you want to modify the Rust code after for your needs? If not, using Docker images might help (https://hub.docker.com/r/navitia/transit_model)