Getting error while running jupyter-notebook

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












i am getting a traceback error while running jupyter-notebook. i am providing the screenshot of the traceback call :



Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in <module>
import sqlite3
File "/usr/local/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
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 <module>
from notebook.notebookapp import main
File "/usr/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 85, in <module>
from .services.sessions.sessionmanager import SessionManager
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in <module>
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'






share|improve this question





















  • are you sure you installed pysqlite2 module for python3?
    – Hossein Vatani
    Jul 28 at 10:52










  • yeah (pysqlite2) is there and it is in the newest version but then also it giving this error
    – Cad
    Jul 28 at 14:03










  • @Cad Install sqlite2-devel (Fedora, RHEL, CentOS) or python-pysqlite2 (Debian, Ubuntu, Mint).
    – Nasir Riley
    Jul 28 at 16:59










  • what is your OS?
    – Hossein Vatani
    Jul 28 at 17:06










  • my os is kali linux 2018.2
    – Cad
    Jul 31 at 11:27
















up vote
0
down vote

favorite












i am getting a traceback error while running jupyter-notebook. i am providing the screenshot of the traceback call :



Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in <module>
import sqlite3
File "/usr/local/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
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 <module>
from notebook.notebookapp import main
File "/usr/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 85, in <module>
from .services.sessions.sessionmanager import SessionManager
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in <module>
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'






share|improve this question





















  • are you sure you installed pysqlite2 module for python3?
    – Hossein Vatani
    Jul 28 at 10:52










  • yeah (pysqlite2) is there and it is in the newest version but then also it giving this error
    – Cad
    Jul 28 at 14:03










  • @Cad Install sqlite2-devel (Fedora, RHEL, CentOS) or python-pysqlite2 (Debian, Ubuntu, Mint).
    – Nasir Riley
    Jul 28 at 16:59










  • what is your OS?
    – Hossein Vatani
    Jul 28 at 17:06










  • my os is kali linux 2018.2
    – Cad
    Jul 31 at 11:27












up vote
0
down vote

favorite









up vote
0
down vote

favorite











i am getting a traceback error while running jupyter-notebook. i am providing the screenshot of the traceback call :



Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in <module>
import sqlite3
File "/usr/local/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
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 <module>
from notebook.notebookapp import main
File "/usr/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 85, in <module>
from .services.sessions.sessionmanager import SessionManager
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in <module>
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'






share|improve this question













i am getting a traceback error while running jupyter-notebook. i am providing the screenshot of the traceback call :



Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in <module>
import sqlite3
File "/usr/local/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
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 <module>
from notebook.notebookapp import main
File "/usr/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 85, in <module>
from .services.sessions.sessionmanager import SessionManager
File "/usr/local/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in <module>
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'








share|improve this question












share|improve this question




share|improve this question








edited Jul 28 at 14:02









Hossein Vatani

45927




45927









asked Jul 28 at 9:28









Cad

11




11











  • are you sure you installed pysqlite2 module for python3?
    – Hossein Vatani
    Jul 28 at 10:52










  • yeah (pysqlite2) is there and it is in the newest version but then also it giving this error
    – Cad
    Jul 28 at 14:03










  • @Cad Install sqlite2-devel (Fedora, RHEL, CentOS) or python-pysqlite2 (Debian, Ubuntu, Mint).
    – Nasir Riley
    Jul 28 at 16:59










  • what is your OS?
    – Hossein Vatani
    Jul 28 at 17:06










  • my os is kali linux 2018.2
    – Cad
    Jul 31 at 11:27
















  • are you sure you installed pysqlite2 module for python3?
    – Hossein Vatani
    Jul 28 at 10:52










  • yeah (pysqlite2) is there and it is in the newest version but then also it giving this error
    – Cad
    Jul 28 at 14:03










  • @Cad Install sqlite2-devel (Fedora, RHEL, CentOS) or python-pysqlite2 (Debian, Ubuntu, Mint).
    – Nasir Riley
    Jul 28 at 16:59










  • what is your OS?
    – Hossein Vatani
    Jul 28 at 17:06










  • my os is kali linux 2018.2
    – Cad
    Jul 31 at 11:27















are you sure you installed pysqlite2 module for python3?
– Hossein Vatani
Jul 28 at 10:52




are you sure you installed pysqlite2 module for python3?
– Hossein Vatani
Jul 28 at 10:52












yeah (pysqlite2) is there and it is in the newest version but then also it giving this error
– Cad
Jul 28 at 14:03




yeah (pysqlite2) is there and it is in the newest version but then also it giving this error
– Cad
Jul 28 at 14:03












@Cad Install sqlite2-devel (Fedora, RHEL, CentOS) or python-pysqlite2 (Debian, Ubuntu, Mint).
– Nasir Riley
Jul 28 at 16:59




@Cad Install sqlite2-devel (Fedora, RHEL, CentOS) or python-pysqlite2 (Debian, Ubuntu, Mint).
– Nasir Riley
Jul 28 at 16:59












what is your OS?
– Hossein Vatani
Jul 28 at 17:06




what is your OS?
– Hossein Vatani
Jul 28 at 17:06












my os is kali linux 2018.2
– Cad
Jul 31 at 11:27




my os is kali linux 2018.2
– Cad
Jul 31 at 11:27










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Working purely off these errors:




ModuleNotFoundError: No module named '_sqlite3'



ModuleNotFoundError: No module named 'pysqlite2'




Do this:



$ sudo apt-get install libsqlite3-dev


Python



If the above has been confirmed you can continue by verifying that Python has what it needs to work with sqlite3. First start Python interactively:



$ python
Python 2.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


Now check that the sqlite3 module is installed and functioning. Import sqlite3 module:



>>> import sqlite3


Then check version details:



>>> sqlite3.version_info
(2, 6, 0)
>>> sqlite3.sqlite_version
'3.7.17'
>>> sqlite3.dbapi2
<module 'sqlite3.dbapi2' from '/usr/lib64/python2.7/sqlite3/dbapi2.pyc'>
>>>


To exit Python once done, at the >>> prompt: Ctrl+D.






share|improve this answer























  • it is already in the newest version:- apt-get install libsqlite3-dev Reading package lists... Done Building dependency tree Reading state information... Done libsqlite3-dev is already the newest version (3.24.0-1).
    – Cad
    Jul 31 at 11:28











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459019%2fgetting-error-while-running-jupyter-notebook%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Working purely off these errors:




ModuleNotFoundError: No module named '_sqlite3'



ModuleNotFoundError: No module named 'pysqlite2'




Do this:



$ sudo apt-get install libsqlite3-dev


Python



If the above has been confirmed you can continue by verifying that Python has what it needs to work with sqlite3. First start Python interactively:



$ python
Python 2.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


Now check that the sqlite3 module is installed and functioning. Import sqlite3 module:



>>> import sqlite3


Then check version details:



>>> sqlite3.version_info
(2, 6, 0)
>>> sqlite3.sqlite_version
'3.7.17'
>>> sqlite3.dbapi2
<module 'sqlite3.dbapi2' from '/usr/lib64/python2.7/sqlite3/dbapi2.pyc'>
>>>


To exit Python once done, at the >>> prompt: Ctrl+D.






share|improve this answer























  • it is already in the newest version:- apt-get install libsqlite3-dev Reading package lists... Done Building dependency tree Reading state information... Done libsqlite3-dev is already the newest version (3.24.0-1).
    – Cad
    Jul 31 at 11:28















up vote
0
down vote













Working purely off these errors:




ModuleNotFoundError: No module named '_sqlite3'



ModuleNotFoundError: No module named 'pysqlite2'




Do this:



$ sudo apt-get install libsqlite3-dev


Python



If the above has been confirmed you can continue by verifying that Python has what it needs to work with sqlite3. First start Python interactively:



$ python
Python 2.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


Now check that the sqlite3 module is installed and functioning. Import sqlite3 module:



>>> import sqlite3


Then check version details:



>>> sqlite3.version_info
(2, 6, 0)
>>> sqlite3.sqlite_version
'3.7.17'
>>> sqlite3.dbapi2
<module 'sqlite3.dbapi2' from '/usr/lib64/python2.7/sqlite3/dbapi2.pyc'>
>>>


To exit Python once done, at the >>> prompt: Ctrl+D.






share|improve this answer























  • it is already in the newest version:- apt-get install libsqlite3-dev Reading package lists... Done Building dependency tree Reading state information... Done libsqlite3-dev is already the newest version (3.24.0-1).
    – Cad
    Jul 31 at 11:28













up vote
0
down vote










up vote
0
down vote









Working purely off these errors:




ModuleNotFoundError: No module named '_sqlite3'



ModuleNotFoundError: No module named 'pysqlite2'




Do this:



$ sudo apt-get install libsqlite3-dev


Python



If the above has been confirmed you can continue by verifying that Python has what it needs to work with sqlite3. First start Python interactively:



$ python
Python 2.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


Now check that the sqlite3 module is installed and functioning. Import sqlite3 module:



>>> import sqlite3


Then check version details:



>>> sqlite3.version_info
(2, 6, 0)
>>> sqlite3.sqlite_version
'3.7.17'
>>> sqlite3.dbapi2
<module 'sqlite3.dbapi2' from '/usr/lib64/python2.7/sqlite3/dbapi2.pyc'>
>>>


To exit Python once done, at the >>> prompt: Ctrl+D.






share|improve this answer















Working purely off these errors:




ModuleNotFoundError: No module named '_sqlite3'



ModuleNotFoundError: No module named 'pysqlite2'




Do this:



$ sudo apt-get install libsqlite3-dev


Python



If the above has been confirmed you can continue by verifying that Python has what it needs to work with sqlite3. First start Python interactively:



$ python
Python 2.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


Now check that the sqlite3 module is installed and functioning. Import sqlite3 module:



>>> import sqlite3


Then check version details:



>>> sqlite3.version_info
(2, 6, 0)
>>> sqlite3.sqlite_version
'3.7.17'
>>> sqlite3.dbapi2
<module 'sqlite3.dbapi2' from '/usr/lib64/python2.7/sqlite3/dbapi2.pyc'>
>>>


To exit Python once done, at the >>> prompt: Ctrl+D.







share|improve this answer















share|improve this answer



share|improve this answer








edited Jul 31 at 13:03


























answered Jul 29 at 7:20









slm♦

232k65479649




232k65479649











  • it is already in the newest version:- apt-get install libsqlite3-dev Reading package lists... Done Building dependency tree Reading state information... Done libsqlite3-dev is already the newest version (3.24.0-1).
    – Cad
    Jul 31 at 11:28

















  • it is already in the newest version:- apt-get install libsqlite3-dev Reading package lists... Done Building dependency tree Reading state information... Done libsqlite3-dev is already the newest version (3.24.0-1).
    – Cad
    Jul 31 at 11:28
















it is already in the newest version:- apt-get install libsqlite3-dev Reading package lists... Done Building dependency tree Reading state information... Done libsqlite3-dev is already the newest version (3.24.0-1).
– Cad
Jul 31 at 11:28





it is already in the newest version:- apt-get install libsqlite3-dev Reading package lists... Done Building dependency tree Reading state information... Done libsqlite3-dev is already the newest version (3.24.0-1).
– Cad
Jul 31 at 11:28













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459019%2fgetting-error-while-running-jupyter-notebook%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay