lancedb / lance

Modern columnar data format for ML and LLMs implemented in Rust. Convert from parquet in 2 lines of code for 100x faster random access, vector index, and data versioning. Compatible with Pandas, DuckDB, Polars, Pyarrow, with more integrations coming..
https://lancedb.github.io/lance/
Apache License 2.0
3.84k stars 212 forks source link

Could not make proto path relative #1855

Open hemanth94 opened 8 months ago

hemanth94 commented 8 months ago

I'm running into this error with Lance-file build, while running cargo build for this project. I'm using Protoc 25.2 (latest). Am i missing something? Can someone please help me resolve this? Thanks in advance.

Could not make proto path relative

Screenshot 2024-01-22 135640
wjones127 commented 8 months ago

Hi @hemanth94. I'm not able to reproduce.

It seems like other users on Windows had success by re-installing Rust: https://github.com/hyperium/tonic/issues/821#issuecomment-957126990

Perhaps there is something wrong with your installation?

hemanth94 commented 8 months ago

I tried reinstalling my rust, but the error repeats. I was thinking may be its the issue of Protoc Version.

Thanks.

NickDarvey commented 3 months ago

@hemanth94, you might have figured it out by now, but I think you got this error because symlinks weren't created when you cloned the repo.

You can confirm by checking one of the 'protos' links:

➜ lance-table git:(main) Get-Item .\protos

    Directory: C:\Users\me\repos\lance\rust\lance-table

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          2024-06-25    11:36             13 protos

If you clone with symlinks enabled, git clone -c core.symlinks=true https://github.com/lancedb/lance, you should see this instead:

➜ lance-table git:(main) Get-Item .\protos

    Directory: C:\Users\me\repos\lance\rust\lance-table

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
l----          2024-06-25    11:40                protos -> ..\..\protos\

(Note that you'll either need to turn developer mode on, or run that clone as an administrator. You can also enable symlinks for all future clones. https://stackoverflow.com/a/59761201)

NickDarvey commented 3 months ago

(I think this issue can be closed.)