Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
高速公路python:ImportError:没有名为wamp1的模块_Python_Django_Git_Python 2.7_Ubuntu - Fatal编程技术网

高速公路python:ImportError:没有名为wamp1的模块

高速公路python:ImportError:没有名为wamp1的模块,python,django,git,python-2.7,ubuntu,Python,Django,Git,Python 2.7,Ubuntu,我是python新手,希望使用autobahn测试套件进行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: Tra

我是python新手,希望使用autobahn测试套件进行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**
错误:回溯(最近一次呼叫最后一次):
文件“/usr/local/bin/wstest”,第9行,在
加载入口点('autobahntestsuite==0.6.1','console脚本','wstest')()
文件“/usr/local/lib/python2.7/dist packages/pkg_resources/_init__.py”,第552行,在加载入口点
返回获取分布(dist)。加载入口点(组、名称)
文件“/usr/local/lib/python2.7/dist packages/pkg_resources/_init__.py”,第2672行,在加载入口点
返回ep.load()
文件“/usr/local/lib/python2.7/dist packages/pkg_resources/_init__.py”,第2345行,已加载
返回self.resolve()
文件“/usr/local/lib/python2.7/dist packages/pkg_resources/_init__.py”,第2351行,解析中
module=\uuuu导入(self.module\u name,fromlist=[''\uuuu name\uuuuuuu'],级别=0)
文件“/usr/local/lib/python2.7/dist packages/autobahntestsuite-0.6.1-py2.7.egg/autobahntestsuite/\uuuu init\uuuuuu.py”,第23行
导入wstest
文件“/usr/local/lib/python2.7/dist packages/autobahntestsuite-0.6.1-py2.7.egg/autobahntestsuite/wstest.py”,第40行,in
进口乳酪
文件“/usr/local/lib/python2.7/dist packages/autobahntestsuite-0.6.1-py2.7.egg/autobahntestsuite/wamptestee.py”,第19行,in
从autobahn.wamp1导入协议为wamp
**ImportError:没有名为wamp1的模块**

请帮助我从我的Ubuntu linux框中删除上述错误。

此问题是由于使用Autobahn早期版本造成的。安装Autobahn test suite最新版本v0.7.1后,此问题得到解决。

您所需的版本也可用。看看pip安装autobahntestsuite是否有效。Animesh:我也尝试过使用pip工具,得到了相同的错误。