我在基于yowsup的Python上创建项目。 (可以在这里找到:https://github.com/jorgehortelano/yowsup-commandserver)这个想法是使用WhatsApp执行命令。将python脚本从一台机器迁移到其他机器会导致模块错误
我在我的本地计算机(ubuntu 14.04.4 LTS)中编译了Python。它工作正常,我可以使用WhatsApp与我的软件进行通信。它使用Python 2.7.6
现在我想用Ubuntu 15.10将它安装在Raspberry Pi 2上。它使用Python 2.7.10。
与树莓简单git clone
克隆库,并试图执行它的原因:
Traceback (most recent call last):
File "./yowsup-commandserver", line 358, in <module>
if not parser.process():
File "./yowsup-commandserver", line 239, in process
self.startCommandServer()
File "./yowsup-commandserver", line 299, in startCommandServer
stack = commandserver.YowsupCommandServerStack(credentials, allowed_users, not self.args["unmoxie"])
AttributeError: 'module' object has no attribute 'YowsupCommandServerStack'
我可以理解,可以将模块定义错误,因为我与蟒蛇一个初学者,但我做不到理解为什么在我的台式计算机中正确执行,而不是在Raspberry Pi中执行。
我不指望有人将它修复给我,我只想了解为什么从一台机器移动到另一台机器时模块没有正确加载。
您的软件包结构看起来很杂乱。哪个文件给出我无法理解的错误。请分享GitHub链接或相关文件行。 – mertyildiran
git项目已经在问题中了。 – JorgeHortelano