You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
mathewrtaylor
changed the title
ModuleNotFoundError: No modeule named '_sqlite3'
ModuleNotFoundError: No module named '_sqlite3'
Mar 8, 2024
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:
Then hops to my machine:
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
The text was updated successfully, but these errors were encountered: