【发布时间】:2014-10-19 02:34:12
【问题描述】:
您好,我有一个在本地运行的爬虫,但是当尝试使用 Vagrant 机器将它启动到 AWS EC2 linux 环境时,我遇到了以下问题。
当我通过在 Linux 上运行对其进行测试时,我能够直接下载 linux 和 Firebug,然后运行我的 Selenium webdriver。在这种情况下,我正在编写一个包含必要安装的文件。但是,由于无法直接从命令行(以及 firebug)安装 firefox,我遇到了麻烦。
这就是我的工人错误的样子(它在我安装了 firefox 的本地机器和安装了它的 linux 上运行良好):
[worker] " Please specify the firefox binary location or install firefox")
[worker] RuntimeError: Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox
我目前正在运行类似的东西来创建正确的开发环境。我想我可以使用 Mozmill 重新创建 firefox。有没有人遇到/解决过这个问题?
sudo easy_install pipsudo pip install seleniumsudo pip install mozmill
我需要 Firefox 和 Firebug 的命令行安装。谢谢!
进展:
我现在正在使用sudo apt-get install firefox,我相信它可能会起作用。如果不让 firebug 和 net export 也能正常工作,我就无法测试它的实际运行。
我试过sudo apt-get install firebug,但找不到。据说在这里工作:http://www.daveshuck.com/2008/05/06/firebug-with-firefox-3-in-ubuntu-hardy-heron/ 但是它对我不起作用?
【问题讨论】:
标签: python linux firefox selenium firebug