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

Linux版的问题 #51

Open
tasagapro opened this issue Mar 20, 2019 · 6 comments
Open

Linux版的问题 #51

tasagapro opened this issue Mar 20, 2019 · 6 comments

Comments

@tasagapro
Copy link

Linux版本有问题。错误如下:
tasagapro@tasagapro-ubuntu:$ cd pandalearning-linux/
tasagapro@tasagapro-ubuntu:
/pandalearning-linux$ ./pandalearn
熊猫学习下载地址为 https://github.com/Alivon/Panda-Learning
该链接有详细使用说明,转发请发此链接给真正需要使用的人,而不是使此款软体消失的人
请输入用户名: tasagapro
Traceback (most recent call last):
File "selenium/webdriver/common/service.py", line 76, in start
File "subprocess.py", line 947, in init
File "subprocess.py", line 1551, in _execute_child
PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "pandalearn.py", line 217, in
File "selenium/webdriver/chrome/webdriver.py", line 73, in init
File "selenium/webdriver/common/service.py", line 88, in start
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home

[6773] Failed to execute script pandalearn
系统版本为:Ubuntu 18.04.2

@Alivon
Copy link
Owner

Alivon commented Mar 20, 2019

chromedriver 地址问题 请放在主程序相同文件路径下

@xenonum
Copy link

xenonum commented Apr 6, 2019

Traceback (most recent call last):
File "pandalearning.py", line 176, in
File "pandalearning.py", line 21, in user_flag
File "pdlearn/dingding.py", line 23, in dd_login_status
File "pdlearn/mydriver.py", line 22, in init
File "selenium/webdriver/chrome/webdriver.py", line 81, in init
File "selenium/webdriver/remote/webdriver.py", line 157, in init
File "selenium/webdriver/remote/webdriver.py", line 252, in start_session
File "selenium/webdriver/remote/webdriver.py", line 321, in execute
File "selenium/webdriver/remote/errorhandler.py", line 242, in check_response
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/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Linux 4.15.0-47-generic x86_64)

@xenonum
Copy link

xenonum commented Apr 6, 2019

how to fix it?

@zyftank
Copy link
Contributor

zyftank commented Apr 6, 2019

给浏览器加个参数--no-sandbox试试

@xenonum
Copy link

xenonum commented Apr 6, 2019

给浏览器加个参数--no-sandbox试试

linux下怎么加?加在/usr/bin/google-chrome 里?

@zyftank
Copy link
Contributor

zyftank commented Apr 7, 2019

这个是在源代码里加的

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

4 participants