推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
parkman
V2EX  ›  Python

ghost.py 在 Yemosite 有问题,有没有谁遇到

  •  
  •   parkman · Feb 14, 2015 · 3916 views
    This topic created in 4131 days ago, the information mentioned may be changed or developed.
    Python 解释器出错 :
    Segmentation fault: 11


    ****

    #!/usr/bin/env python
    # coding=utf-8

    # Created by Parkman on 15/2/13
    # Do have a faith in what you're doing.
    # Make your life a story worth telling.

    from ghost import Ghost

    ghost = Ghost()
    #first_url = "http://homebbs.nanjing.fang.com/board/zxpd/"

    first_url = 'http://www.baidu.com'
    page, resources = ghost.open(first_url)

    *****
    Supplement 1  ·  Feb 14, 2015
    没人发生这个情况吗?
    5 replies    2015-02-15 15:50:04 +08:00
    geeklian
        1
    geeklian  
       Feb 14, 2015
    python版本?操作系统版本?
    Segmentation fault 基本是上面这2者的问题。和第三方库没啥关系。
    huigeer
        2
    huigeer  
       Feb 15, 2015
    strace 追踪下
    parkman
        3
    parkman  
    OP
       Feb 15, 2015
    @geeklian Mac Yemosite Python2.7.8
    parkman
        4
    parkman  
    OP
       Feb 15, 2015
    @huigeer 有网址吗 ? 我学习下
    janxin
        5
    janxin  
       Feb 15, 2015
    没有遇到lz说的这个问题,我的ghost.py执行没问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2765 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 15:19 · PVG 23:19 · LAX 08:19 · JFK 11:19
    ♥ Do have faith in what you're doing.