【问题标题】:Autobahn python : ImportError: No module named wamp1高速公路 python:ImportError:没有名为 wamp1 的模块
【发布时间】: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


【解决方案1】:

此问题是由使用 Autobahn 以前的版本引起的。此问题在安装 Autobahn 测试套件最新版本 v0.7.1 后得到解决。

【讨论】:

    猜你喜欢
    • 2011-02-01
    • 2020-02-18
    • 2017-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-04
    • 2016-03-25
    • 1970-01-01
    相关资源
    最近更新 更多