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

mac启动以后 用不了 自动停止了 #473

Open
gwd0715 opened this issue Aug 23, 2019 · 4 comments
Open

mac启动以后 用不了 自动停止了 #473

gwd0715 opened this issue Aug 23, 2019 · 4 comments

Comments

@gwd0715
Copy link

gwd0715 commented Aug 23, 2019

开启: 文章学习
开启: 视频学习
Exception in thread 视频学习:
Traceback (most recent call last):
File "threading.py", line 916, in _bootstrap_inner
File "pdlearn/threads.py", line 23, in run
File "pandalearning.py", line 118, in video
File "pdlearn/mydriver.py", line 116, in set_cookies
File "selenium/webdriver/remote/webdriver.py", line 894, in add_cookie
File "selenium/webdriver/remote/webdriver.py", line 321, in execute
File "selenium/webdriver/remote/errorhandler.py", line 242, in check_response
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid 'expiry'
(Session info: headless chrome=76.0.3809.100)

Exception in thread 文章学习:
Traceback (most recent call last):
File "threading.py", line 916, in _bootstrap_inner
File "pdlearn/threads.py", line 23, in run
File "pandalearning.py", line 59, in article
File "pdlearn/mydriver.py", line 116, in set_cookies
File "selenium/webdriver/remote/webdriver.py", line 894, in add_cookie
File "selenium/webdriver/remote/webdriver.py", line 321, in execute
File "selenium/webdriver/remote/errorhandler.py", line 242, in check_response
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid 'expiry'
(Session info: headless chrome=76.0.3809.100)

@gwd0715 gwd0715 changed the title mac启动不了,大神帮忙看看 mac启动以后 用不了 自动停止了 Aug 24, 2019
@shellalumni
Copy link

一模一样的问题

@AnnieXu0608
Copy link

现在还可以用么? 验证码登录

@Hoontme
Copy link

Hoontme commented May 4, 2020

请问有什么办法解决吗?

@Hoontme
Copy link

Hoontme commented May 4, 2020

我已经解决了
运行的方式:mac os14源码运行;
找到source packages文件夹 下的 pdlearn 文件夹 中的pycache下的mydriver.py,将函数get_cookies()整个替换为
def get_cookies(self):
cookies = self.driver.get_cookies()
for cookie in cookies:
if 'expiry' in cookie:
del cookie['expiry']
return cookies

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