OS : CentOS 8
python : 3.7.6
==jupyter==
jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : not installed
ipython : 7.13.0
ipykernel : 5.1.4
jupyter client : 6.0.0
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : not installed
nbformat : 5.0.4
traitlets : 4.3.3
==Error Traceback==
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in
import sqlite3
File "/usr/local/lib/python3.7/sqlite3/__init__.py", line 23, in
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/jupyter-notebook", line 7, in
from notebook.notebookapp import main
File "/usr/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 85, in
from .services.sessions.sessionmanager import SessionManager
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'
# 1. install pysqlite package
$ pip install pysqlite2
ERROR: Could not find a version that satisfies the requirement pysqlite2 (from versions: none)
ERROR: No matching distribution found for pysqlite2
$ pip install sqlite3
sqlite3 패키지를 다운받았으나 해결되지 않음.
# 2. check lib code (sessionmanager.py)
try sqlite3 에서 실패하면 pysqlite2 패키지를 찾는 구조로 되어있음.
하지만 python 에서도 import 가 실패함.
# 3. re-compile python3.7.6
Stackoverflow 참고하였음.
1) sqlite-devel 패키지 다운로드
$ sudo yum install sqlite-devel
2) config 체크로 추정
$ cd [python_path]
$ sudo ./configure
3) python re-compile
$ sudo make && make install
이후 동일오류가 발생하지 않았음.
'Error Review' 카테고리의 다른 글
java 버전에러 (java.lang.UnsupportedClassVersionError) (0) | 2021.01.19 |
---|---|
Kafka-Manager (CMAK) compile error ./sbt clean dist (0) | 2020.04.28 |
Docker-Compose Service 'kafka' failed to build (wurstmeister) (0) | 2020.04.23 |
HTTP 401 Error Code (0) | 2019.12.14 |
HTTP 503 Error Code (2) | 2019.12.12 |
최근댓글