Coder Social home page Coder Social logo

运行报错:UnicodeDecodeError about gotox HOT 11 CLOSED

seahoh avatar seahoh commented on July 22, 2024
运行报错:UnicodeDecodeError

from gotox.

Comments (11)

SeaHOH avatar SeaHOH commented on July 22, 2024

我还没搞清楚怎么复现。
你先把 checkprocess 选项设为 0,跳过检查。

from gotox.

SeaHOH avatar SeaHOH commented on July 22, 2024

可能是系统不一样引起的,我的是 Win7,你的是什么系统?

你能不能把下面这句加在出错的 118 行前面,看看有什么结果?checkprocess 要启用。

print('结果=', repr(modname.value))
path = modname.value.decode()

from gotox.

cixi666 avatar cixi666 commented on July 22, 2024

win8.1 x64
好了,把 checkprocess 选项设为 0 就可以运行了。

from gotox.

cixi666 avatar cixi666 commented on July 22, 2024

Traceback (most recent call last):
File "start.py", line 13, in
from local import proxy
File "C:\Users\ku888_000\Desktop\GAE\local\proxy.py", line 118
print('结果=', repr(modname.value))
^
TabError: inconsistent use of tabs and spaces in indentation

from gotox.

SeaHOH avatar SeaHOH commented on July 22, 2024

你好像把制表符复制进去了。

这个 print 语句是与后一句 path 相同缩进位置的,你把 print 前的空白全部删除,再用空格加回去,应该就能正常运行这一句。

麻烦你重试一下,谢谢。

from gotox.

cixi666 avatar cixi666 commented on July 22, 2024

==
结果= b'C:\Windows\System32\taskhostex.exe'
结果= b'C:\Windows\System32\InputMethod\CHS\ChsIME.exe'
结果= b'C:\Windows\explorer.exe'
结果= b'C:\Program Files (x86)\NVIDIA Corporation\Update Core\NvBackend.exe'

结果= b'C:\Windows\System32\SkyDrive.exe'
结果= b'C:\Windows\System32\SettingSyncHost.exe'
结果= b'J:\Program Files\palemoon\Bin\Palemoon\palemoon.exe'
结果= b'J:\Program Files\palemoon\Bin\Palemoon\plugin-container.exe'
结果= b'C:\Program Files\WindowsApps\41095344.PPStream_3.2.2.4_x64__z6zadccf1
nq96\iQiyiVideo.Windows.exe'
结果= b'C:\Windows\System32\RuntimeBroker.exe'
结果= b'J:\Program Files\palemoon\Bin\Palemoon\plugin-container.exe'
结果= b'K:\\xd7\xc0\xc3\xe6\\xb7\xad\xc7\xbd\notepad.6.9.2\notepad++.exe'
Traceback (most recent call last):
File "start.py", line 14, in
proxy.main()
File "C:\Users\ku888_000\Desktop\GAE\local\proxy.py", line 276, in main
pre_start()
File "C:\Users\ku888_000\Desktop\GAE\local\proxy.py", line 225, in pre_start
tasklist = dict((x.name.lower(), x) for x in get_process_list())
File "C:\Users\ku888_000\Desktop\GAE\local\proxy.py", line 119, in get_process
_list
path = modname.value.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd7 in position 3: invalid
continuation byte

from gotox.

SeaHOH avatar SeaHOH commented on July 22, 2024

看到了,等我搞定就修复,谢谢。

from gotox.

SeaHOH avatar SeaHOH commented on July 22, 2024

@cixi666
已经修复。
今晚网络质量太差了,放弃 GitHub 客户端同步,改用上传。

from gotox.

jzp820927 avatar jzp820927 commented on July 22, 2024

改用上传?意思是直接在 github web 网页上上传更新代码?

from gotox.

SeaHOH avatar SeaHOH commented on July 22, 2024

对,就是网页上传。

顺便吐个槽:我太小看 git 了,知道它复杂,但没想到会这么复杂!

昨天传完修改后,还是想不过,又去找设置 git 代理的方法,以前找过觉得麻烦,反正能用就行。
好多都是讲 Linux 的,也不知道 Win 能用不,就在 Shell 打了git help config,结果跳出一本地网页。
一看吓一跳,无它,就是太长了,怪不得要用网页。
还没完,这应该只是设置部分,还有用法,进入文件夹一看,我 X,11M!整整 11M 的网页文件!算纯文本也有 7、8M 吧,我之前用过有 Linux 基因的 MPV 播放器说明文档才 500+k,已经觉得很复杂了。不就一版本控制工具么,要不要这么凶残,太可怕鸟!果然还是我大 Windows 够傻瓜。

然后还是老老实实去刚弹出来的网页找怎么设置代理,结果发现网上也是不靠谱的多,只需一句就行:
git config --global http.proxy http://127.0.0.1:8087
下面这句没必要,根本就没这设置,即使有地址格式也应该仍然是 http://127.0.0.1:8087
git config --global https.proxy https://127.0.0.1:8087

from gotox.

jzp820927 avatar jzp820927 commented on July 22, 2024

恩,git 走代理没问题,我以前测试过。

from gotox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.