yowsup2没有名为_sqlite3的模块

时间:2016-08-09 07:20:52

标签: python yowsup

当我尝试运行yowsup-cli命令发送消息时,我遇到以下错误。这是我正在运行的命令:

yowsup-cli demos -c /etc/yowsup-cli.conf -s 'phone number' "text"

我在预装了python 2.4的Linux CentOS 5.11上运行它。我安装了yowsup2运行所需的python 2.7,但是我遇到了以下错误:

ERROR:

Traceback (most recent call last):
  File "/usr/bin/yowsup-cli", line 368, in <module>
    if not parser.process():
  File "/usr/bin/yowsup-cli", line 272, in process
    self.startSendClient()
  File "/usr/bin/yowsup-cli", line 323, in startSendClient
    not self.args["unmoxie"])
  File "/usr/lib/python2.7/site-packages/yowsup/demos/sendclient/stack.py", line 20, in __init__
    .pushDefaultLayers(encryptionEnabled)\
  File "/usr/lib/python2.7/site-packages/yowsup/stacks/yowstack.py", line 51, in pushDefaultLayers
    defaultLayers = YowStackBuilder.getDefaultLayers(axolotl)
  File "/usr/lib/python2.7/site-packages/yowsup/stacks/yowstack.py", line 73, in getDefaultLayers
    from yowsup.layers.axolotl import AxolotlSendLayer, AxolotlControlLayer, AxolotlReceivelayer
  File "/usr/lib/python2.7/site-packages/yowsup/layers/axolotl/__init__.py", line 1, in <module>
    from .layer_send import AxolotlSendLayer
  File "/usr/lib/python2.7/site-packages/yowsup/layers/axolotl/layer_send.py", line 16, in <module>
    from .layer_base import AxolotlBaseLayer
  File "/usr/lib/python2.7/site-packages/yowsup/layers/axolotl/layer_base.py", line 1, in <module>
    from yowsup.layers.axolotl.store.sqlite.liteaxolotlstore import LiteAxolotlStore
  File "/usr/lib/python2.7/site-packages/yowsup/layers/axolotl/store/sqlite/liteaxolotlstore.py", line 6, in <module>
    from .litesenderkeystore import LiteSenderKeyStore
  File "/usr/lib/python2.7/site-packages/yowsup/layers/axolotl/store/sqlite/litesenderkeystore.py", line 3, in <module>
    import sqlite3
  File "/usr/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
    from _sqlite3 import *
ImportError: No module named _sqlite3

任何有同样错误或可能帮助我的人。 谢谢。

1 个答案:

答案 0 :(得分:0)

我设法通过手动将模块复制到以下路径来修复它:

cp build/lib.linux-x86_64-2.7/_sqlite3.so /usr/lib/python2.7/lib-dynload/