python-rust-fst
python-rust-fst copied to clipboard
Python bindings for Rust's fst crate
After upgrading my pip dependency to 20.0.1, I am getting ModuleNotFoundError while installing rust_fst using pip. ``` > pip --version pip 20.0.1 from /Users/anjch/opt/anaconda3/lib/python3.7/site-packages/pip (python 3.7) > pip install rust_fst...
This is not compiling yet (using rustc 1.24.0-nightly (0a3761e63 2018-01-03)): ``` (dblewett)Wed Jan 10, 10:03 | /home/dblewett/src/python-rust-fst/fstwrapper rusty% cargo build Compiling fst-wrapper v0.3.0 (file:///home/dblewett/src/python-rust-fst/fstwrapper) error[E0277]: the trait bound `for: fst::Streamer...
``` % RUST_BACKTRACE=1 python -c 'from rust_fst import Set; it = Set.from_iter(["a", "b"]).union(Set.from_iter([])); list(it)' thread '' panicked at 'called `Result::unwrap()` on an `Err` value: NulError(0, [0])', ../src/libcore/result.rs:785 stack backtrace: 1:...
> Also, the Python interpreter should not be segfaulting. The ffi layer should be catching panics and converting them to aborts. Otherwise it is UB. https://github.com/BurntSushi/fst/issues/57#issuecomment-365000277
I am building an application that generates new FST objects every hour. I would like to be able to do efficient range operations over a group of these FST files....