Closed mingyitianxia closed 7 years ago
This is an OS configuration problem not something to do with ocrmypdf.
It looks like SQLite is not installed or Python was compiled without SQLite. This error can also occur when Python 3 is trying to access a Python 2 module. Chances are "import sqlite3" from the Python console also fails. Check with your OS vendor. On Sat, Jul 8, 2017 at 00:01 dlulaoyang notifications@github.com wrote:
[root@455691d6 OCRmyPDF]# pip3 install . Processing /ssd/yc/OCRmyPDF Collecting ruffus==2.6.3 (from ocrmypdf==5.2.post0+g3a7c341.d20170708) Using cached ruffus-2.6.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-wchw1ow3/ruffus/setup.py", line 12, in import ruffus.ruffus_version File "/tmp/pip-build-wchw1ow3/ruffus/ruffus/init.py", line 28, in from .task import Pipeline, Task File "/tmp/pip-build-wchw1ow3/ruffus/ruffus/task.py", line 115, in from . import dbdict File "/tmp/pip-build-wchw1ow3/ruffus/ruffus/dbdict.py", line 91, in import sqlite3 File "/usr/local/python3/lib/python3.5/sqlite3/init.py", line 23, in from sqlite3.dbapi2 import File "/usr/local/python3/lib/python3.5/sqlite3/dbapi2.py", line 27, in from _sqlite3 import ImportError: dynamic module does not define module export function (PyInit__sqlite3)
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wchw1ow3/ruffus/
I google for long time, now it still is a big problem for me !
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jbarlow83/OCRmyPDF/issues/173, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvcM1q3prx_xmw276P1aV-LTHCuLNzUks5sLyk2gaJpZM4ORqD6 .
[root@455691d6 OCRmyPDF]# pip3 install . Processing /ssd/yc/OCRmyPDF Collecting ruffus==2.6.3 (from ocrmypdf==5.2.post0+g3a7c341.d20170708) Using cached ruffus-2.6.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-build-wchw1ow3/ruffus/setup.py", line 12, in
import ruffus.ruffus_version
File "/tmp/pip-build-wchw1ow3/ruffus/ruffus/init.py", line 28, in
from .task import Pipeline, Task
File "/tmp/pip-build-wchw1ow3/ruffus/ruffus/task.py", line 115, in
from . import dbdict
File "/tmp/pip-build-wchw1ow3/ruffus/ruffus/dbdict.py", line 91, in
import sqlite3
File "/usr/local/python3/lib/python3.5/sqlite3/init.py", line 23, in
from sqlite3.dbapi2 import
File "/usr/local/python3/lib/python3.5/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import
ImportError: dynamic module does not define module export function (PyInit__sqlite3)
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wchw1ow3/ruffus/
I google for long time, now it still is a big problem for me !