From: Raghavan <re...@bu...> - 2009-07-12 09:28:13
|
New submission from Raghavan <rag...@ne...>: 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) ---------- components: Any messages: 4899 nosy: raghavanks severity: normal status: open title: Unable to run NLTK on Jython 2.5 final versions: 2.5.0 _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1398> _______________________________________ |