dbcli / litecli

CLI for SQLite Databases with auto-completion and syntax highlighting
https://litecli.com
BSD 3-Clause "New" or "Revised" License
2.09k stars 67 forks source link

No module named '_sqlite3' #108

Closed yuis-ice closed 3 years ago

yuis-ice commented 3 years ago

litecli --help Traceback (most recent call last): File "/home/yuis/.pyenv/versions/3.6.12/bin/litecli", line 7, in from litecli.main import cli File "/home/yuis/.pyenv/versions/3.6.12/lib/python3.6/site-packages/litecli/main.py", line 13, in
from sqlite3 import OperationalError File "/home/yuis/.pyenv/versions/3.6.12/lib/python3.6/sqlite3/init.py", line 23, in from sqlite3.dbapi2 import File "/home/yuis/.pyenv/versions/3.6.12/lib/python3.6/sqlite3/dbapi2.py", line 27, in from _sqlite3 import ModuleNotFoundError: No module named '_sqlite3'

amjith commented 3 years ago

This seems like an issue with the python installed on your system. We use the standard library sqlite3 module. If this is throwing an exception then python isn't installed correctly in the system.

Try opening the python shell and try to import the sqlite3 module as follows:

$ python
>>> import sqlite3
>>> exit()

Please report back if you see any issues with that import.