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
redhatping
V2EX  ›  Python

升级 mac os 后, 之前的 selenuim

  •  
  •   redhatping · 2016-09-19 14:36:59 +08:00 · 1771 次点击
    这是一个创建于 2781 天前的主题,其中的信息可能已经有所发展或是发生改变。
    
    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 条回复    2016-09-20 08:56:45 +08:00
    LigeLaige
        1
    LigeLaige  
       2016-09-20 08:56:45 +08:00
    我在 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(...) 这里报错
    同求解答
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2489 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:46 · PVG 22:46 · LAX 07:46 · JFK 10:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.