This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abinaya
Recipients abinaya
Date 2017-11-23.11:14:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511435659.03.0.213398074469.issue32120@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

We have installed python-3.6.0 on our RedHat 6 machine.
when we are trying to import sqlite module in python_v36 we could see below issue,

[root@euca-10-254-72-197 rpmbuild]$ python
Python 3.6.0 (default, Nov 23 2017, 12:46:54)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.

            import sqlite3
            Traceback (most recent call last):
            File "", line 1, in
            File "/opt/python/x86_64/3.6.0-1/lib/python3.6/sqlite3/init.py", line 23, in
            from sqlite3.dbapi2 import *
            File "/opt/python/x86_64/3.6.0-1/lib/python3.6/sqlite3/dbapi2.py", line 27, in
            from _sqlite3 import *
            ModuleNotFoundError: No module named '_sqlite3'

While installing the python manually we could see below line on installation log
****************************************
Failed to build these modules:
_hashlib _ssl

Following modules built successfully but were removed because they could not be imported:
_sqlite3
****************************************
It seems to be sqlite is getting broken.

Below sqlite versions are already installed on my machine:
********************************************
[root@euca-10-254-72-197 rpmbuild]$ rpm -qa | grep sqlite
qt-sqlite-4.6.2-28.el6_5.x86_64
sqlite-devel-3.6.20-1.el6_7.2.x86_64
sqlite-3.6.20-1.el6_7.2.x86_64
libdbi-dbd-sqlite-0.8.3-5.1.el6.x86_64
**********************************************

Also sqlite3 seems to be working fine without any issue on python2.
Can anyone please help me on this.

Regards,
Abinaya
History
Date User Action Args
2017-11-23 11:14:19abinayasetrecipients: + abinaya
2017-11-23 11:14:19abinayasetmessageid: <1511435659.03.0.213398074469.issue32120@psf.upfronthosting.co.za>
2017-11-23 11:14:18abinayalinkissue32120 messages
2017-11-23 11:14:18abinayacreate