I just transferred a python module from my OS X system to Ubuntu. The module runs on the Mac just fine, but fails on the Ubuntu system with the following error:
import sqlite3
File "/usr/local/lib/python3.4/sqlite3/init.py", line 23, in from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.4/sqlite3/dbapi2.py", line 26, in from _sqlite3 import *
ImportError: No module named '_sqlite3'
Some of the answers I have found so far do not seem to acknowledge that this error is generated within the the Python libraries. Others suggest reinstallation of Python and/or Sqlite. I have reinstalled both (forced reinstalls), making sure that Python3 was installed after Sqlite3. Still no joy.
As I said, the code runs on the Mac. Prior to the introduction sqlite3, the common code base ran on Ubuntu as well. Several installs and updates in the past, for similar applications, I used sqlite3 with earlier versions of Python (perhaps not Python3?). I am looking for additional suggestions - for a fix or for debugging investigation.