Message4899
I tried to run NLTK 0.99 on Jython 2.5 (final) expecting it to work
since nltk was compatible with cPython 2.5. I got the following errors
though (pointing to some missing zlib constants in Jython 2.5) .
>>> import nltk
/home/raghavan/mystuff/nltk0.99/nltk-0.9.9/nltk/sem/__init__.py:24:
UserWarning:
nltk.sem.relextract and nltk.sem.chat80 modules not loaded (please
install sqlite3
library
warnings.warn("nltk.sem.relextract and nltk.sem.chat80 modules not "
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/raghavan/mystuff/nltk0.99/nltk-0.9.9/nltk/__init__.py",
line 96, in
<module>
import data
File "/home/raghavan/mystuff/nltk0.99/nltk-0.9.9/nltk/data.py", line
44, in <module>
from zlib import Z_SYNC_FLUSH
ImportError: cannot import name Z_SYNC_FLUSH
http://code.google.com/p/nltk/issues/detail?id=414&q=jython
Comments (from Frank Wierzbicki's Weblog -
https://www.blogger.com/comment.g?blogID=14276139&postID=1723495392311827770)
It looks like we are missing a few constants in zlib, I bet they are
either new since 2.2/2.3 and haven't been added or they are somehow
incompatible with Java's compression support (I'm not up on this stuff
at the moment) |
|
Date |
User |
Action |
Args |
2009-07-12 09:28:08 | raghavanks | set | recipients:
+ raghavanks |
2009-07-12 09:28:08 | raghavanks | set | messageid: <1247390888.01.0.301397676552.issue1398@psf.upfronthosting.co.za> |
2009-07-12 09:28:07 | raghavanks | link | issue1398 messages |
2009-07-12 09:28:06 | raghavanks | create | |
|