
Python BUG记录
文章平均质量分 73
梦想橡皮擦
技术&自媒体,畅游互联网11年,什么语言都懂一点点,商务V moshanba
擅长Python,C++,Go,MySQL
展开
-
成功解决BUG:AttributeError: ‘str‘ object has no attribute ‘append‘
成功解决BUG:AttributeError: ‘str’ object has no attribute ‘append’原创 2023-08-03 17:37:38 · 29247 阅读 · 2 评论 -
成功解决BUG:ValueError: invalid literal for int() with base 10: ‘abc‘
成功解决BUG:ValueError: invalid literal for int() with base 10: ‘abc’原创 2023-08-03 17:34:58 · 16724 阅读 · 0 评论 -
成功解决BUG:TypeError: ‘unsupported operand type(s) for +: ‘int‘ and ‘str‘
成功解决BUG:TypeError: 'unsupported operand type(s) for +: ‘int’ and ‘str’原创 2023-08-03 17:31:18 · 13883 阅读 · 2 评论 -
成功解决BUG:NameError: name ‘undefined_var‘ is not defined
成功解决BUG:NameError: name ‘undefined_var’ is not defined。原创 2023-08-03 17:26:31 · 11045 阅读 · 0 评论 -
成功解决 BUG:IndexError: list index out of range
成功解决BUG:IndexError: list index out of range。原创 2023-08-03 17:22:49 · 12797 阅读 · 0 评论 -
成功解决BUG:Message: session not created: This version of ChromeDriver only supports Chrome version 94
成功解决BUG:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 94。原创 2023-07-17 15:00:04 · 10999 阅读 · 0 评论 -
成功解决BUG:selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs
成功解决BUG:selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH.原创 2023-07-17 14:59:37 · 11940 阅读 · 0 评论 -
成功解决BUG:exception: access violation reading
成功解决BUG:exception: access violation reading。原创 2023-07-12 09:09:50 · 16593 阅读 · 1 评论 -
成功解决BUG:OSError: [Errno 9] Bad file descriptor(Python BUG)
成功解决BUG:OSError: [Errno 9] Bad file descriptor。原创 2023-07-12 09:08:59 · 18927 阅读 · 0 评论 -
成功解决 SyntaxError: Non-UTF-8 code starting with ‘\xe7‘ in file G:/PythonDemo/test.py on line
成功解决 BUG:SyntaxError: Non-UTF-8 code starting with ‘\xe7’ in file G:/PythonDemo/test.py on line成功解决 BUG:SyntaxError: Non-UTF-8 code starting with ‘çò’ in file E:/Python/program.py on line 3, but no encoding declared.原创 2023-06-28 12:12:54 · 13391 阅读 · 0 评论 -
成功解决 SyntaxError: Non-UTF-8 code starting with ‘\xe4‘ in file G:/PythonDemo/test.py on line 2
成功解决 BUG:SyntaxError: Non-UTF-8 code starting with ‘\xe4’ in file G:/PythonDemo/test.py on line 2。原创 2023-06-27 13:39:53 · 13046 阅读 · 0 评论 -
成功解决 SyntaxError: Non-UTF-8 code starting with ‘\xe6‘ in file G:/PythonDemo/test.py on line 2
成功解决 BUG:SyntaxError: Non-UTF-8 code starting with ‘\xe6’ in file G:/PythonDemo/test.py on line 2。原创 2023-06-27 13:39:22 · 13250 阅读 · 0 评论 -
成功解决 ValueError: too many values to unpack
成功解决 BUG:ValueError: too many values to unpack。原创 2023-06-27 13:38:49 · 59801 阅读 · 1 评论 -
python3.8.10安装之后,无法使用 pip,解决办法说明
python3.8.10安装之后,无法使用 pip,解决办法说明如果不在 `pip` 命令前增加 `python -m`,会出现 **Fatal error in launcher** 异常,需要注意原创 2021-11-20 21:36:38 · 23285 阅读 · 0 评论 -
python selenium 异常:selenium.common.exceptions.ElementClickInterceptedException
异常解读 Message: element click intercepted异常错误信息为:Message: element click intercepted: Element <button … is not clickable at point (835, 33). Other element would receive the click: …(Session info: chrome=94.0.4606.81)该错误是在使用 selenium 的时候,元素被其它内容捕获到了,进而可原创 2021-10-17 00:55:15 · 22594 阅读 · 1 评论 -
Windows11中的 powershell 无法运行 Activate.ps1
Windows11中的 powershell 无法运行 Activate.ps1原创 2021-07-15 16:05:39 · 20513 阅读 · 1 评论 -
Python OpenCV 值 BUG: all the input arrays must have same number of dimensions
在 OpenCV 中,图像或数组通常由多维数组表示,例如二维数组表示单通道图像,三维数组表示三通道图像。如果要纠正这个错误,可以尝试检查代码中所有输入数组的维度,并确保它们相同。如果你正在使用一个三维数组(三通道图像),则应该使用具有相同维度的三维数组作为函数的其他输入参数。如果你确信数组维度是相同的,还可以检查一下数组类型是否是一致的,有时候这个错误信息也可能是因为数组类型不一致所导致的。在使用 OpenCV 的函数时,我们需要确保所有输入的图像或数组具有相同的维度。具体代码不同,大家自行调整。原创 2021-02-04 04:22:55 · 21268 阅读 · 1 评论 -
Python OpenCV TypeError: integer argument expected, got float
本系列文章只供记录 Python 日常开发过程中 偶遇 BUG,提供给学生作为参考数据与解决方案用,属于记录型博客,有缘分看到的读者希望可解决你的问题。在 OpenCV 中,有些函数需要整数类型的参数,例如对于调整图像大小的函数,它需要指定新图像的宽和高,而这些参数必须是整数。这个错误信息按照字面翻译是 提示函数调用中使用了一个浮点数类型的参数,而函数预期的是一个整数类型的参数。,例如,要将图像大小调整为宽度为 200 像素,高度为 100 像素,则应使用。该错误为类型错误,例如下述代码就会报错。原创 2021-01-03 19:43:55 · 19875 阅读 · 6 评论 -
python 使用 re 模块报错 re.error: unknown extension ?<n at position
re.error: unknown extension ?<n at position 一个位置数字原创 2020-11-19 14:27:16 · 21215 阅读 · 0 评论 -
python 运行 execjs 出现错误 UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\ufffd‘
python 运行 execjs 出现错误 UnicodeEncodeError: ‘gbk‘python 运行 execjs 出现错误 UnicodeEncodeError: ‘gbk‘原创 2020-11-11 09:47:21 · 22280 阅读 · 31 评论 -
json.decoder.JSONDecodeError: Expecting value: line column (char )
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 1 )原创 2020-11-06 10:59:58 · 31992 阅读 · 6 评论 -
json.decoder.JSONDecodeError: Invalid \escape: line 1 column 1 (char 1)
json.decoder.JSONDecodeError: Invalid \escape: line 1 column 1 (char 1)原创 2020-11-06 10:47:59 · 31547 阅读 · 10 评论 -
AttributeError: 'module' object has no attribute 'SFrame'
异常记录import graphlabsf = graphlab.SFrame('xxxx.csv')报错AttributeError: 'module' object has no attribute 'SFrame'你应该是使用了下面的一句代码安装了某些内容graphlab.get_dependencies()downloading xz extracting xz解决...原创 2018-12-18 14:55:54 · 19298 阅读 · 0 评论 -
安装graphlab 报错 No matching distribution found for graphlab-create>=2.1
异常记录在安装graphlab 的过程中,发现如下错误Could not find a version that satisfies the requirement graphlab-create&amp;gt;=2.1 (from GraphLab-Create-License==2.1) (from versions: )No matching distribution found for gr...原创 2018-12-18 11:59:38 · 21171 阅读 · 3 评论