Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8536

[Rust] Failed to locate format/Flight.proto in any parent directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.17.0
    • Fix Version/s: 1.0.0
    • Component/s: Rust

      Description

      When using Arrow 0.17.0 as a dependency, it is likely that you will get the error "Failed to locate format/Flight.proto in any parent directory". This is caused by the custom build script in the arrow-flight crate, which expects to find a "format/Flight.proto" file in a parent directory. This works when building the crate from within the Arrow source tree, but unfortunately doesn't work for the published crate, since the Flight.proto file was not published as part of the crate.

      The workaround is to create a "format" directory in the root of your file system (or at least at a higher level than where cargo is building code) and place the Flight.proto file there (making sure to use the 0.17.0 version, which can be found in the source release [1]).

       [1] https://github.com/apache/arrow/releases/tag/apache-arrow-0.17.0

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nevi_me Neville Dipale
                Reporter:
                andygrove Andy Grove
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m