系统环境为CentOS6.4,详细报错信息如下:
Traceback (most recent call last):
File "minganupload.py", line 5, in <module>from upload import sensupload
File "/opt/minganlog/upload/__init__.py", line 6, in <module>
from .UploadContext import UploadContext
File "/opt/minganlog/upload/UploadContext.py", line 6, in <module>
from CtrlContext import CtrlContext
File "/opt/minganlog/CtrlContext.py", line 5, in <module>
import sqlite3, os, time
File "/opt/python-3.5.2/lib/python3.5/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/opt/python-3.5.2/lib/python3.5/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: No module named '_sqlite3'
原因为缺少依赖包导致,安全如下依赖包即可:
yum install sqlite-devel