【发布时间】:2015-07-11 18:52:34
【问题描述】:
我是 python 新手,想使用高速公路测试套件进行 websocket 测试。使用以下说明设置套件:
git clone git://github.com/tavendo/AutobahnTestSuite.git
cd AutobahnTestSuite
git checkout v0.6.1
cd autobahntestsuite
python setup.py install
为了获取wstest的手册,我输入了wstest --help,但它抛出了这个错误:
Error: Traceback (most recent call last):
File "/usr/local/bin/wstest", line 9, in <module>
load_entry_point('autobahntestsuite==0.6.1', 'console_scripts', 'wstest')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 552, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2672, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2345, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2351, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python2.7/dist-packages/autobahntestsuite-0.6.1-py2.7.egg/autobahntestsuite/__init__.py", line 23, in <module>
import wstest
File "/usr/local/lib/python2.7/dist-packages/autobahntestsuite-0.6.1-py2.7.egg/autobahntestsuite/wstest.py", line 40, in <module>
import wamptestee
File "/usr/local/lib/python2.7/dist-packages/autobahntestsuite-0.6.1-py2.7.egg/autobahntestsuite/wamptestee.py", line 19, in <module>
from autobahn.wamp1 import protocol as wamp
**ImportError: No module named wamp1**
请帮助我从我的 Ubuntu linux 机器中删除上述错误。
【问题讨论】:
-
您需要的版本也可以使用here。看看
pip install autobahntestsuite是否有效。 -
Animesh : 我也尝试使用 pip 工具,得到同样的错误。
标签: python django git python-2.7 ubuntu