UnicodeDecodeError:'utf8'编解码器无法解码位置4的字节0xe4:无效的连续字节 [英] UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 4: invalid continuation byte

查看:200
本文介绍了UnicodeDecodeError:'utf8'编解码器无法解码位置4的字节0xe4:无效的连续字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上不知道如何解决此问题,因为我以前从未使用过Python.我只是可以使用Psychopy在Python中生成脚本,但是我在这里没有发现错误.如果您知道答案,那很好,或者可以给我提示如何找到答案!:

I actually have no Idea how to solve this, cause I never used Python before. I just can use Psychopy to generate a script in Python, but I dont find the mistake here. Would be great if you know the answer or you can give me a hint how to find one!:

###################### Running: D:\LTD_Liste1_lastrun.py #######################
pyo version 0.8.5 (uses single precision)
Traceback (most recent call last):
  File "D:\LTD_Liste1_lastrun.py", line 77, in <module>
    Target = sound.Sound('A', secs=-1)
  File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy\sound\backend_pyo.py", line 279, in __init__
    init(rate=sampleRate)
  File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy\sound\backend_pyo.py", line 128, in init
    audioDriver, outputID = _bestDriver(devNames, devIDs)
  File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy\sound\backend_pyo.py", line 26, in _bestDriver
    preferredDrivers = prefs.general['audioDriver']
  File "C:\Program Files\PsychoPy2\lib\site-packages\configobj.py", line 563, in __getitem__
    new = [_check(entry) for entry in val]
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 4: invalid continuation byte

推荐答案

这听起来像1.85.3版中的utf8编码错误,该错误主要出现在Windows 7上. 如果您尝试转到文件">首选项"并且出现相同的错误,则很可能是此错误.

This sound like the utf8-encoding bug in the 1.85.3 version that appears mainly on windows 7. If you try to go to File > Preferences and the same error appears, then it is most likely this bug.

对我有用的解决方案是卸载1.85.3版并安装1.85.2

The solution, that worked for me was to uninstall version 1.85.3 and install 1.85.2

此错误修复后,请随时删除/编辑我的答案.

Feel free to delete/edit my answer, as soon as this bug is fixed.

这篇关于UnicodeDecodeError:'utf8'编解码器无法解码位置4的字节0xe4:无效的连续字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆