Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行python3 -u pandalearning.py之后"Mydriver初始化失败" #9

Open
nnssz opened this issue Sep 8, 2019 · 0 comments
Open

运行python3 -u pandalearning.py之后"Mydriver初始化失败" #9

nnssz opened this issue Sep 8, 2019 · 0 comments

Comments

@nnssz
Copy link

nnssz commented Sep 8, 2019

系统为荒野无灯大的小钢炮0327固件。

root@77be3edbr3bb:~# cd /media/pdlearning && python3 -u pandalearning.py
开启: 获取更新信息...
输入用户标记名:
正在联网获取更新信息...
熊猫学习唯一下载地址为 https://github.com/Alivon/Panda-Learning
程序版本为:v2.5,
最新版本为:v2.5
================================================================================ ========================================
================================================================================ ========================================
更新显示不会打断之前输入等操作,请继续......(若已输入用户标记直接enter)
user
是否保存钉钉帐户密码,保存后可后免登陆学习(Y/N) n

Mydriver初始化失败

Traceback (most recent call last):
File "pandalearning.py", line 180, in
cookies, a_log, v_log = user_flag(dd_status, uname)
File "pandalearning.py", line 18, in user_flag
driver_login = mydriver.Mydriver(nohead=False)
File "/media/pdlearning/pdlearn/mydriver.py", line 47, in init
self.driver = self.webdriver.Chrome(chrome_options=self.options)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant