tinysearch: Error: No such file or directory (os error 2)
OS: ArchLinux Tinysearch version: Tried 0.6.2 and 0.6.0
What I did
- Installed wasm-pack, terser, binaryen, and finally tinysearch
- copied the given example file to index.json
- ran the following variations of commands
tinysearch index.json
tinyseach "index.json"
tinesearch /absolute/path/to/index.json
All of them gave the following output
Unpacking tinysearch WASM engine into temporary directory "/tmp/.tmpk894cL"
Start unpack
Copying index into crate
Error: No such file or directory (os error 2)
Kindly advice as to what other info would be useful
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 19 (9 by maintainers)
This is resolved now.
The reason why it broke was a limitation by cargo: it does not allow including one crate inside another one. This is done to avoid unwanted complexity and is a sane default. In our case, however, it leads to the situation that the engine crate was missing from the tinysearch crate on crates.io. See also https://github.com/tinysearch/tinysearch/issues/170#issuecomment-1650709333.
The latest tinysearch 0.8.2 fixes this issue. Apologies for the long delay to produce a fix.
Can you try again using
cargo install tinysearch? I think that’s what people have problems with.I created a pull request here: https://github.com/tinysearch/tinysearch/pull/154. If someone could test this and report back I’d be very thankful.
0.6.2 release is not working for me either, but current head of master branch works
I think that this fixed it.
@mre I recommend to make a new cargo release 0.6.3