python - Ipython : Installation error, unable to find _sqlite.so -


on trying install ipython python3.4 message installed.

pip3 install ipython requirement satisfied (use --upgrade upgrade): ipython in /usr/local/lib/python3.4/site-packages 

but when try run ipython3 notebook this:

traceback (most recent call last):   file "/usr/local/bin/ipython3", line 11, in <module> sys.exit(start_ipython())   file "/usr/local/lib/python3.4/site-packages/ipython/__init__.py", line 120, in start_ipython return launch_new_instance(argv=argv, **kwargs)   file "/usr/local/lib/python3.4/site-packages/ipython/config/application.py", line 573, in launch_instance app.initialize(argv)   file "<string>", line 2, in initialize   file "/usr/local/lib/python3.4/site-packages/ipython/config/application.py", line 75, in catch_config_error return method(app, *args, **kwargs)   file "/usr/local/lib/python3.4/site-packages/ipython/terminal/ipapp.py", line 321, in initialize super(terminalipythonapp, self).initialize(argv)   file "<string>", line 2, in initialize   file "/usr/local/lib/python3.4/site-packages/ipython/config/application.py", line 75, in catch_config_error return method(app, *args, **kwargs)   file "/usr/local/lib/python3.4/site-packages/ipython/core/application.py", line 369, in initialize self.parse_command_line(argv)   file "/usr/local/lib/python3.4/site-packages/ipython/terminal/ipapp.py", line 316, in parse_command_line return super(terminalipythonapp, self).parse_command_line(argv)   file "<string>", line 2, in parse_command_line   file "/usr/local/lib/python3.4/site-packages/ipython/config/application.py", line 75, in catch_config_error return method(app, *args, **kwargs)   file "/usr/local/lib/python3.4/site-packages/ipython/config/application.py", line 471, in parse_command_line return self.initialize_subcommand(subc, subargv)   file "<string>", line 2, in initialize_subcommand   file "/usr/local/lib/python3.4/site-packages/ipython/config/application.py", line 75, in catch_config_error return method(app, *args, **kwargs)   file "/usr/local/lib/python3.4/site-packages/ipython/config/application.py", line 402, in initialize_subcommand subapp = import_item(subapp)   file "/usr/local/lib/python3.4/site-packages/ipython/utils/importstring.py", line 42, in import_item module = __import__(package, fromlist=[obj])   file "/usr/local/lib/python3.4/site-packages/ipython/html/notebookapp.py", line 67, in <module> .services.sessions.sessionmanager import sessionmanager   file "/usr/local/lib/python3.4/site-packages/ipython/html/services/sessions/sessionmanager.py", line 7, in <module> import sqlite3   file "/usr/local/lib/python3.4/sqlite3/__init__.py", line 23, in <module> sqlite3.dbapi2 import *   file "/usr/local/lib/python3.4/sqlite3/dbapi2.py", line 27, in <module> _sqlite3 import * importerror: no module named '_sqlite3' 

assuming last line important

importerror: no module named '_sqlite3'

i tried install sorts of dependencies it:

apt-get install sqlite3 libsqlite3-dev

when tried installing pysqlite via pip3 install pysqlite :

collecting pysqlite   using cached pysqlite-2.6.3.tar.gz     complete output command python setup.py egg_info:     traceback (most recent call last):       file "<string>", line 20, in <module>       file "/tmp/pip-build-ggtq7_wu/pysqlite/setup.py", line 85         print "is sphinx installed? if not, try 'sudo easy_install sphinx'."                                                                        ^     syntaxerror: missing parentheses in call 'print'      ---------------------------------------- command "python setup.py egg_info" failed error code 1 in /tmp/pip-build-ggtq7_wu/pysqlite 

however sphinx installed. reinstalled it.

pip3 install sphinx requirement satisfied (use --upgrade upgrade): sphinx in /usr/local/lib/python3.4/site-packages requirement satisfied (use --upgrade upgrade): jinja2>=2.3 in /usr/local/lib/python3.4/site-packages (from sphinx) requirement satisfied (use --upgrade upgrade): snowballstemmer>=1.1 in /usr/local/lib/python3.4/site-packages (from sphinx) requirement satisfied (use --upgrade upgrade): docutils>=0.11 in /usr/local/lib/python3.4/site-packages (from sphinx) requirement satisfied (use --upgrade upgrade): babel>=1.3 in /usr/local/lib/python3.4/site-packages (from sphinx) requirement satisfied (use --upgrade upgrade): sphinx-rtd-theme<0.2,>=0.1 in /usr/local/lib/python3.4/site-packages (from sphinx) requirement satisfied (use --upgrade upgrade): alabaster<0.8,>=0.7 in /usr/local/lib/python3.4/site-packages (from sphinx) requirement satisfied (use --upgrade upgrade): pygments>=2.0 in /usr/local/lib/python3.4/site-packages (from sphinx) requirement satisfied (use --upgrade upgrade): six>=1.4 in /usr/local/lib/python3.4/site-packages (from sphinx) requirement satisfied (use --upgrade upgrade): markupsafe in /usr/local/lib/python3.4/site-packages (from jinja2>=2.3->sphinx) requirement satisfied (use --upgrade upgrade): pytz>=0a in /usr/local/lib/python3.4/site-packages (from babel>=1.3->sphinx) 

hence have not been able resolve because evidently file _sqlite3.so should in /usr/local/lib/python3.4/lib-dynload not exist , cannot find way install it.

i managed resolve got in comments.
putting here make easy else may have same issue figure out whats going on.

issue in using self compiled version of python, before sql dev files installed. hence bindings did not take.

first had use sudo apt-get install sqlite3 libsqlite3-dev relevant sqlite files.
had recompile python using source tarball , executing following commands recompile it.

make clean ./configure  make  make install  

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -