-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
Version: nltk-3.8.1
Home OS: Ubuntu 23.10
Python Version: 3.10.4
Error: ModuleNotFoundError: No module named '_sqlite3'
Steps:
- Activated venv (Python 3.10.4)
- insatlled nltk
- imported into script
- nlk.download()
Provides an error capturing:
nltk/corpus/__init__.py", line 64, in <module>
from nltk.corpus.reader import *
nltk/corpus/reader/__init__.py", line 106, in <module>
from nltk.corpus.reader.panlex_lite import *
nltk/corpus/reader/panlex_lite.py", line 15, in <module>
import sqlite3
Then hops to my machine:
File "/usr/local/lib/python3.10/sqlite3/__init__.py", line 57, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.10/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
Troubleshooting:
venv Installed SQLite3-0611 0.0.1 -> Same error
venv Installed SQLite4 0.1.1 -> Same error
Host OS Installed libsqlite3-dev -> Same error
Went to ..../nltk/corpus/reader/panlex_lite.py and edited to install sqlite4 -> No error, script just stops.
Forced reinstall -> Same Error
Metadata
Metadata
Assignees
Labels
No labels