nltk integration error

45 views
Skip to first unread message

Andreja Jevtic

unread,
Jul 2, 2016, 5:15:17 AM7/2/16
to nltk-users
Hey guys, I have been trying to integrate NLTK into App Engine Python 2.7 project, but keep getting errors. I've been following instructions on importing third party libraries and nothing. This is the error that I've been getting:

Traceback (most recent call last):

  File "/Users/Futin/Documents/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle

    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())

  File "/Users/Futin/Documents/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler

    handler, path, err = LoadObject(self._handler)

  File "/Users/Futin/Documents/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject

    obj = __import__(path[0])

  File "/Users/Futin/nltktest/main.py", line 20, in <module>

    import nltk

  File "/Users/Futin/nltktest/lib/nltk/__init__.py", line 137, in <module>

    from nltk.stem import *

  File "/Users/Futin/nltktest/lib/nltk/stem/__init__.py", line 29, in <module>

    from nltk.stem.snowball import SnowballStemmer

  File "/Users/Futin/nltktest/lib/nltk/stem/snowball.py", line 24, in <module>

    from nltk.corpus import stopwords

  File "/Users/Futin/nltktest/lib/nltk/corpus/__init__.py", line 66, in <module>

    from nltk.corpus.reader import *

  File "/Users/Futin/nltktest/lib/nltk/corpus/reader/__init__.py", line 105, in <module>

    from nltk.corpus.reader.panlex_lite import *

  File "/Users/Futin/nltktest/lib/nltk/corpus/reader/panlex_lite.py", line 15, in <module>

    import sqlite3

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/__init__.py", line 24, in <module>

    from dbapi2 import *

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>

    from _sqlite3 import *

  File "/Users/Futin/Documents/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py", line 963, in load_module

    raise ImportError('No module named %s' % fullname)

ImportError: No module named _sqlite3


Is it even possible to use NLTK with App Engine since it is not not pure Python library?


Reply all
Reply to author
Forward
0 new messages