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

ubuntu16.04 32位机登录错误 #377

Closed
yulincoder opened this issue Sep 8, 2016 · 5 comments
Closed

ubuntu16.04 32位机登录错误 #377

yulincoder opened this issue Sep 8, 2016 · 5 comments
Labels

Comments

@yulincoder
Copy link

错误提示如下:
File "/usr/local/lib/python2.7/dist-packages/NEMbox/api.py", line 199, in httpRequest
method, action, query, urlencoded, callback, timeout))
File "/usr/local/lib/python2.7/dist-packages/NEMbox/api.py", line 226, in rawHttpRequest
self.session.cookies.save()
File "/usr/lib/python2.7/_LWPCookieJar.py", line 89, in save
f.write(self.as_lwp_str(ignore_discard, ignore_expires))
File "/usr/lib/python2.7/_LWPCookieJar.py", line 75, in as_lwp_str
r.append("Set-Cookie3: %s" % lwp_cookie_str(cookie))
File "/usr/lib/python2.7/_LWPCookieJar.py", line 35, in lwp_cookie_str
time2isoz(float(cookie.expires))))
File "/usr/lib/python2.7/cookielib.py", line 99, in time2isoz
year, mon, mday, hour, min, sec = time.gmtime(t)[:6]
ValueError: timestamp out of range for platform time_t

@kigawas
Copy link
Collaborator

kigawas commented Sep 8, 2016

清除~/.netease-musicbox/里面的cookie重新登录

On Thu, Sep 8, 2016, 21:29 Zhang Te (张特) notifications@github.com wrote:

错误提示如下:
File "/usr/local/lib/python2.7/dist-packages/NEMbox/api.py", line 199, in
httpRequest
method, action, query, urlencoded, callback, timeout))
File "/usr/local/lib/python2.7/dist-packages/NEMbox/api.py", line 226, in
rawHttpRequest
self.session.cookies.save()
File "/usr/lib/python2.7/_LWPCookieJar.py", line 89, in save
f.write(self.as_lwp_str(ignore_discard, ignore_expires))
File "/usr/lib/python2.7/_LWPCookieJar.py", line 75, in as_lwp_str
r.append("Set-Cookie3: %s" % lwp_cookie_str(cookie))
File "/usr/lib/python2.7/_LWPCookieJar.py", line 35, in lwp_cookie_str
time2isoz(float(cookie.expires))))
File "/usr/lib/python2.7/cookielib.py", line 99, in time2isoz
year, mon, mday, hour, min, sec = time.gmtime(t)[:6]
ValueError: timestamp out of range for platform time_t


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#377, or mute the thread
https://github.com/notifications/unsubscribe-auth/AD_RSk4GLvB8TCWqMsAQBg114XTrhxmyks5qoA2vgaJpZM4J3_cq
.

@yulincoder
Copy link
Author

没用..还是出错,错误还是那样.

@kigawas
Copy link
Collaborator

kigawas commented Sep 9, 2016

可能是LWPCookieJar在32位系统的问题,时间戳超过了32b能表示的最大值

@kigawas
Copy link
Collaborator

kigawas commented Sep 9, 2016

http://bugs.python.org/issue5537
更新你的Python2版本到最新的2.7.12应该会解决

@kigawas kigawas closed this as completed Sep 9, 2016
@kigawas kigawas added the wontfix label Sep 9, 2016
@kigawas
Copy link
Collaborator

kigawas commented Nov 3, 2016

#405

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

No branches or pull requests

2 participants