【发布时间】:2014-05-05 22:13:08
【问题描述】:
我正在我的计算机上运行使用 PhantomJS 的 wxPython exe。但是,在我将其发送到另一台计算机后,它会给出以下错误。如果这是 Python 库中的标准包或模块,我将能够弄清楚这一点,但 PhantomJS 似乎相当复杂。我是否需要在我的 py2exe 设置中包含一些内容才能使 phantomjs.exe 与我的应用程序一起使用?还是我只是将 phantomjs.exe 包含在我的 dist 文件夹中?
File "selenium\webdriver\phantomjs\webdriver.pyc", line 50, in __init__
File "selenium\webdriver\phantomjs\service.pyc", line 67, in start
WebDriverException: Message: 'Unable to start phantomjs with ghostdriver.' ; Screenshot: available via screen
非常感谢!没有太多关于 py2exe 和 phantomjs 的信息。
【问题讨论】:
-
第二台计算机上是否有 phantomjs.exe 最好在 PATH 中?
标签: python wxpython phantomjs py2exe