benstadin / marisa-trie

Automatically exported from code.google.com/p/marisa-trie
Other
1 stars 0 forks source link

marisa-trie fails to save dictionary (mingw32) #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It is reported that saving doesn't work under mingw32.

Issue #10 is a related issue.
http://code.google.com/p/marisa-trie/issues/detail?id=10

See also the following.
https://github.com/kmike/marisa-trie/issues/1#issuecomment-8135066

Original issue reported on code.google.com by susumu.y...@gmail.com on 31 Aug 2012 at 1:21

GoogleCodeExporter commented 8 years ago
It fails under mingw32 with the following error message:

RuntimeError: lib/marisa/grimoire/io\writer.cc:129: MARISA_IO_ERROR: 
size_written <= 0

See 
http://www.reddit.com/r/Python/comments/ywpwl/memorywise_fast_static_trie_for_py
thon_may_use/

Original comment by kmik...@gmail.com on 31 Aug 2012 at 10:22

GoogleCodeExporter commented 8 years ago
I've updated Reader/Writer to use read_/write_ instead of read/write when 
compiled with MinGW (r98).

I'm not sure whether this update fixes the problem or not, but currently I have 
no idea other than this.

Original comment by susumu.y...@gmail.com on 16 Sep 2012 at 3:46