虽然yandex-坦克安装,但我遵循了官方文档https://yandextank.readthedocs.org/en/latest/install.html这样做:
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:yandex-load/main
sudo apt-get update && sudo apt-get install yandex-load-tank-base但有个错误:
W: Failed to fetch http://ppa.launchpad.net/yandex-load/main/ubuntu/dists/wheezy/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/yandex-load/main/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/wheezy/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found我想是的。这就是发射yandex坦克时出错的原因:
17:09:35 INFO: Exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/yandextank/core/consoleworker.py", line 224, in configure
self.core.load_plugins()
File "/usr/local/lib/python2.7/dist-packages/yandextank/core/tankcore.py", line 243, in load_plugins
plugin = il.import_module(plugin_path)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: Import by filename is not supported.
17:09:35 ERROR: Import by filename is not supported.如何解决这个问题?
系统:Linux3.2.04-AMD 64 #1 3.2.54-2 x86_64 GNU/Linux
发布于 2015-03-09 18:40:28
您不应该在Debian中使用Ubuntu存储库。包版本可能会发生冲突,许多其他事情都可能出错。
冒着自己的风险,你仍然可以尝试这样做。最接近Wheezy的Ubuntu版本是13.10。因此,首先,删除您刚刚安装的ppa:
sudo ppa-purge ppa:yandex-load/main并手动将这些行添加到您的sources.list中
deb http://ppa.launchpad.net/yandex-load/main/ubuntu saucy main
deb-src http://ppa.launchpad.net/yandex-load/main/ubuntu saucy main https://stackoverflow.com/questions/28947905
复制相似问题