spstreets / gtfs_manager

A GUI for viewing and editing GTFS data
MIT License
30 stars 3 forks source link

Installation issue #31

Closed Robinlovelace closed 2 years ago

Robinlovelace commented 2 years ago

Just tried to install it and I get:

cargo install --git https://github.com/spstreets/gtfs_manager
    Updating git repository `https://github.com/spstreets/gtfs_manager`
  Installing gtfs_manager v0.1.0 (https://github.com/spstreets/gtfs_manager#e101b0d3)
    Updating crates.io index
    Updating git repository `https://github.com/linebender/druid`
error: failed to compile `gtfs_manager v0.1.0 (https://github.com/spstreets/gtfs_manager#e101b0d3)`, intermediate artifacts can be found at `/tmp/cargo-installt2x6qJ`

Caused by:
  failed to get `gtfs-structures` as a dependency of package `gtfs_manager v0.1.0 (/home/robin/.cargo/git/checkouts/gtfs_manager-428d2c6132e01227/e101b0d)`

Caused by:
  failed to load source for dependency `gtfs-structures`

Caused by:
  Unable to update /home/robin/.cargo/git/checkouts/gtfs_manager-428d2c6132e01227/gtfs-structure

Caused by:
  failed to read `/home/robin/.cargo/git/checkouts/gtfs_manager-428d2c6132e01227/gtfs-structure/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
dabreegster commented 2 years ago

I hit the same thing; it's https://github.com/spstreets/gtfs_manager/blob/e101b0d3a188b73052665621599bc32f72a4f2e6/Cargo.toml#L12 This is a useful trick to temporarily pin an external dependency to a local version that you're working on. You can temporarily workaround by commenting out that line and uncommenting the github one a few lines down... that seems to work, but not sure what other local changes are in this crate.

Edit: no, there are some unpushed changes to gtfs-structures that the main branch here relies on

Robinlovelace commented 2 years ago

Heads-up @maxwell8888 I'm going to try this again now...

Robinlovelace commented 2 years ago

Still getting this error message FYI, happy to try with other settings, may be doing something wrong:

cargo install --git https://github.com/spstreets/gtfs_manager
error: failed to compile `gtfs_manager v0.1.0 (https://github.com/spstreets/gtfs_manager#24b06bf8)`, intermediate artifacts can be found at `/tmp/cargo-installmTeGb8`

Caused by:
  failed to get `gtfs-structures` as a dependency of package `gtfs_manager v0.1.0 (/home/robin/.cargo/git/checkouts/gtfs_manager-428d2c6132e01227/24b06bf)`

Caused by:
  failed to load source for dependency `gtfs-structures`

Caused by:
  Unable to update /home/robin/.cargo/git/checkouts/gtfs_manager-428d2c6132e01227/gtfs-structure

Caused by:
  failed to read `/home/robin/.cargo/git/checkouts/gtfs_manager-428d2c6132e01227/gtfs-structure/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
maxwell8888 commented 2 years ago

Sorry, I was using a local copy again and stupidly commited it. Should be working now.

Robinlovelace commented 2 years ago

So far so good...

image

Robinlovelace commented 2 years ago

It worked :tada:

Robinlovelace commented 2 years ago

It's alive!

image

Robinlovelace commented 2 years ago

Peek 2022-08-06 18-30

maxwell8888 commented 2 years ago

haha finally! I'm working on selecting stops at the moment.