[Snowball-discuss] Building of PyStemmer module failed (fix included)
Marijn van Vliet
w.m.vanvliet at gmail.com
Mon Jan 21 11:05:20 GMT 2013
When trying to install the Python wrapper (PyStemmer), the install process
fails on windows with a slew of messages:
build\temp.win32-2.7\Release\libstemmer_c\libstemmer\libstemmer_utf8.o:libstemmer_utf8.c:(.text+0x18e):
undefined reference to `SN_set_current'
build\temp.win32-2.7\Release\libstemmer_c\libstemmer\libstemmer_utf8.o:libstemmer_utf8.c:(.data+0x8):
undefined reference to `danish_UTF_8_create_env'
build\temp.win32-2.7\Release\libstemmer_c\libstemmer\libstemmer_utf8.o:libstemmer_utf8.c:(.data+0xc):
undefined reference to `danish_UTF_8_close_env'
build\temp.win32-2.7\Release\libstemmer_c\libstemmer\libstemmer_utf8.o:libstemmer_utf8.c:(.data+0x10):
undefined reference to `danish_UTF_8_stem'
build\temp.win32-2.7\Release\libstemmer_c\libstemmer\libstemmer_utf8.o:libstemmer_utf8.c:(.data+0x1c):
undefined reference to `danish_UTF_8_create_env'
<snip>
This is caused by a bug in setup.py, which fails to find all required .c
files. A possible fix would be to change line 24 from:
and os.path.split(line.strip())[0] in library_core_dirs]
to:
and os.path.split(line.strip().replace(' \\', ''))[0] in
library_core_dirs]
regards,
Marijn.
--
Marijn van Vliet
w.m.vanvliet at gmail.com
More information about the Snowball-discuss
mailing list