question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Was unable to import superset Error: No module named 'pysqlite2'

See original GitHub issue

I was failed install the superset-0.15.4 at the step “fabmanager create-admin --app superset” with error log :

(venv) [root@qa-javaserver-21 ecjava]# fabmanager create-admin --app superset
/home/ecjava/venv/lib/python3.4/importlib/_bootstrap.py:1161: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
  spec.loader.load_module(spec.name)
Username [admin]: admin
User first name [admin]: admin
User last name [user]: admin
Email [admin@fab.org]: 736801943@qq.com
Password: 
Repeat for confirmation: 
/home/ecjava/venv/lib/python3.4/importlib/_bootstrap.py:1161: ExtDeprecationWarning: Importing flask.ext.script is deprecated, use flask_script instead.
  spec.loader.load_module(spec.name)
**Was unable to import superset Error: No module named 'pysqlite2'**

(venv) [root@qa-javaserver-21 ecjava]# python -V Python 3.4.6 how can I fix it?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xrmxcommented, Feb 22, 2017

You are using a python built without the embedded sqlite3 module, you can install pysqlite2 as the error suggests or just use a proper built python.

0reactions
wffgercommented, Mar 24, 2018

Reinstall Python, remember use sudo make && sudo make altinstall. After that, I can go ahead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named 'pysqlite2' · Issue #464 - GitHub
I installed jupyterhub in Centos7, and get the error:# jupyterhub [I ... Was unable to import superset Error: No module named 'pysqlite2' ...
Read more >
ImportError: No Module Named 'pysqlite2' - Stack Overflow
I installed python3 with home-brew. Now when I try to import sqlite 3, i get similar error. I have sqlite3 installed. Just can't...
Read more >
ImportError: No module named 'pysqlite2' - Google Groups
from pysqlite2 import dbapi2 as sqlite. ImportError: No module named 'pysqlite2'. I've googled around a lot but can't find anything that helps. Any...
Read more >
Solved: Superset of Druid can't be started in HDP 2.6.0.3
Solved: Hi guys, I have encountered a problem about Superset of Druid. ... from pysqlite2 import dbapi2 as sqlite ImportError: No module named...
Read more >
python - Getting error while running jupyter-notebook
Working purely off these errors: ModuleNotFoundError: No module named '_sqlite3'. ModuleNotFoundError: No module named 'pysqlite2'. Do this:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found