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

编译报错了 #19

Open
wander555 opened this issue Feb 22, 2021 · 3 comments
Open

编译报错了 #19

wander555 opened this issue Feb 22, 2021 · 3 comments

Comments

@wander555
Copy link

image

@uyaboy
Copy link

uyaboy commented Apr 19, 2021

碰上同样的问题,请帮忙解答一下如何解决,谢谢

@bafangseo
Copy link

bafangseo commented May 27, 2021

Run python main.py
Traceback (most recent call last):
File "main.py", line 57, in
res = sb.checkin()
File "main.py", line 44, in checkin
msg = self.session.get(url)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/http/client.py", line 1277, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/http/client.py", line 1318, in _send_request
self.putheader(hdr, value)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/urllib3/connection.py", line 219, in putheader
_HTTPConnection.putheader(self, header, *values)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/http/client.py", line 1250, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 668-673: ordinal not in range(256)
Error: Process completed with exit code 1

+1

@PRSJMC
Copy link

PRSJMC commented Mar 4, 2022

同样的问题

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