V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2015-02-14 14:15:21 +08:00 · 3047 次点击
    这是一个创建于 3331 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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)

    *****
    第 1 条附言  ·  2015-02-14 17:03:37 +08:00
    没人发生这个情况吗?
    5 条回复    2015-02-15 15:50:04 +08:00
    geeklian
        1
    geeklian  
       2015-02-14 19:45:44 +08:00
    python版本?操作系统版本?
    Segmentation fault 基本是上面这2者的问题。和第三方库没啥关系。
    huigeer
        2
    huigeer  
       2015-02-15 10:32:20 +08:00
    strace 追踪下
    parkman
        3
    parkman  
    OP
       2015-02-15 11:13:34 +08:00
    @geeklian Mac Yemosite Python2.7.8
    parkman
        4
    parkman  
    OP
       2015-02-15 11:13:52 +08:00
    @huigeer 有网址吗 ? 我学习下
    janxin
        5
    janxin  
       2015-02-15 15:50:04 +08:00
    没有遇到lz说的这个问题,我的ghost.py执行没问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5477 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:42 · PVG 14:42 · LAX 23:42 · JFK 02:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.