推荐学习书目
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
redhatping
V2EX  ›  Python

升级 mac os 后, 之前的 selenuim

  •  
  •   redhatping · Sep 19, 2016 · 2495 views
    This topic created in 3552 days ago, the information mentioned may be changed or developed.
    
    selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: /var/folders/_6/t3wgvc3s5kjg3n32j202w6tw0000gn/T/tmpVMGzCF/webdriver-py-profilecopy If you specified a log_file in the FirefoxBinary constructor, check it for details.
    
    
    

    环境 python2.7 , selenium 2.53.6, firefox 48.0.1

    之前没问题的, 有段时间没运行,发现 MAC 升级后 ,这样报错。

    感觉应该是环境变量出了问题。

    1 replies    2016-09-20 08:56:45 +08:00
    LigeLaige
        1
    LigeLaige  
       Sep 20, 2016
    我在 windows 上面也报这个错误, Ubuntu 上偶尔,所用的 python2.7 , selenium 2.53.6, firefox 48.0.1 与题主版本相同;换成 python 3.5 以及对应的最新 selenium 还是报错

    https://gist.github.com/huangjinqiang/d9385c8d4d81c6b7adfd3fc57c09cd0c

    都会在 driver = webdriver.Firefox(...) 这里报错
    同求解答
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3138 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:33 · PVG 21:33 · LAX 06:33 · JFK 09:33
    ♥ Do have faith in what you're doing.