Python.exe appcrash 与 Ghost.py

标签 python crash ghost.py

<分区>

我正在使用 Ghost.py

    from ghost import Ghost
    url = "http://www.kiev.prom.ua"
    gh = Ghost()
    page, page_name = gh.create_page()
    page_resource = page.open(url, wait_onload_event=True)

当我运行上面的脚本时,Python 崩溃了:

Problem Event Name: APPCRASH 
   Application Name: python.exe 
   Application Version: 0.0.0.0 
   Application Timestamp: 4c303241 
   Name of the module with the error: python27.dll 
   Version of the module with the error: 2.7.5150.1013 
   The time stamp module with the error: 5237f3d5 
   Exception Code: c0000005 
   Exception Offset: 00107f7a 
   OS Version: 6.1.7601.2.1.0.256.1 
   Language Code: 1049 
   Additional Information 1: 0a9e 
   Additional information 2: 0a9e372d3b4ad19135b953a78882e789 
   Additional Information 3: 0a9e 
   Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

如何找到问题的根源?

最佳答案

通常当您遇到这样的崩溃而不是常规的崩溃时 Python exceptions ,问题出在 C 代码的某处,通常在第三方库中。

您提供了一个产生错误的最小程序,这很好。我自己从未使用过 Ghost,所以这个答案只是我最好的猜测,因为您还没有得到任何其他答案。

尝试让您的程序更加精简。下面的程序也会崩溃吗?

from ghost import Ghost
gh = Ghost()

如果不是,您是否以错误的方式使用了其中一种方法?阅读the Ghost documentation小心并确保您以正确的方式使用库。例如,我找到方法create_page,但只在一个在线documentation that seems a bit outdated .有一些文档 here as well .

获取最新版本的库并使用包含的文档,或自行生成。

最后,文档还说了以下关于 PyQt/PySide 的内容:

First you need to install PyQt or PySide. This will require to install the QT framework first. You can find PyQt in the following link http://www.riverbankcomputing.com/software/pyqt/download

所以问题也可能与您的 PyQt/PySide 安装有关,但我认为这不是 StackOverflow 的问题。

关于Python.exe appcrash 与 Ghost.py,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22228496/

相关文章:

python - Celery 错误地传播异常

python - 有人使用 Python 进行嵌入式项目吗?

python - Pandas date_range 为六个月值

crash - Boost asio 崩溃

python - Ghost 不起作用

python - 使用 Python 以编程方式通过代理发出 HTTP 请求

由 Selenium firefox 驱动程序启动时 Firefox 崩溃

java - Wifi 连接应用程序崩溃(Java、Android)

python - 可以在 Heroku 上安装 PySide 或 PyQt 吗?

javascript - Ghost.py 通过 javascript 链接