
六年编程Bug大总结
专注于解决各种编程中遇到的Bug:python,django,pyqt5,MySQL,pip,ubuntu,c++,windows等,六年编程老司机,把遇到的各种各样的妖魔鬼怪bug解决后收录到一起,希望本专栏对您有所帮助,能够订阅的话,本人感激不尽!
东木月
编程是为了更深刻的了解这个世界,或者作为自己的职业谋生存。 读书是为了让自己的灵魂得到升华,照亮自己的同时也指引他人。旅行见天地,读书明事理,工作合行知。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
No module named ‘sklearn‘
No module named 'sklearn‘原创 2025-07-14 10:56:24 · 90 阅读 · 0 评论 -
AH00436: No installed service named “Apache2.4“.
AH00436: No installed service named "Apache2.4".原创 2025-07-14 10:00:52 · 194 阅读 · 0 评论 -
nuitka打包pyqt5程序报错
from http.cookies import Morsel ModuleNotFoundError No module named 'http.cookies'原创 2025-06-20 20:00:00 · 75 阅读 · 0 评论 -
MySQL8启动失败 NET HELPMSG 3534
MySQL8启动失败 NET HELPMSG 3534原创 2025-04-20 17:08:31 · 272 阅读 · 0 评论 -
This application failed to start because no Qt platform plugin could be initialized. Reinstalling th
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.原创 2025-04-16 14:16:00 · 739 阅读 · 0 评论 -
module ‘django.db.models‘ has no attribute ‘FieldDoesNotExist‘
module 'django.db.models' has no attribute 'FieldDoesNotExist'原创 2024-12-28 16:50:20 · 524 阅读 · 0 评论 -
from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘
from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip'原创 2024-12-22 20:53:22 · 310 阅读 · 0 评论 -
ImportError cannot import name ‘uic‘ from ‘PyQt5‘
ImportError cannot import name 'uic' from 'PyQt5'原创 2024-07-04 12:00:58 · 326 阅读 · 0 评论 -
django.template.exceptions.TemplateDoesNotExist: bootstrap3/field.html
django.template.exceptions.TemplateDoesNotExist: bootstrap3/field.html原创 2024-04-16 23:46:27 · 327 阅读 · 0 评论 -
pandas.errors.ParserError: Error tokenizing data. C error: Expected 16 fields in line 3, saw 2386
pandas.errors.ParserError: Error tokenizing data. C error: Expected 16 fields in line 3, saw 2386原创 2024-04-11 22:02:19 · 1255 阅读 · 0 评论 -
django.db.utils.OperationalError: (1045, “Access denied for user ‘root‘@‘localhost‘ (using password:
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")原创 2024-04-07 21:45:56 · 770 阅读 · 0 评论 -
UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\xa0‘ in position 141: illegal multibyte
'gbk' codec can't encode character '\xa0' in position 141: illegal multibyte sequence原创 2024-03-31 18:48:11 · 725 阅读 · 0 评论 -
‘utf-8‘ codec can‘t decode byte 0xc1 in position 0: invalid start byte
'utf-8' codec can't decode byte 0xc1 in position 0: invalid start byte原创 2024-03-06 21:04:15 · 372 阅读 · 0 评论 -
scikit_learn.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block
scikit_learn.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block原创 2023-11-07 15:30:43 · 1008 阅读 · 0 评论 -
libportaudio.so.2: cannot open shared object file: No such file or directory
ImportError libportaudio.so.2: cannot open shared object file: No such file or directory原创 2023-10-17 15:41:47 · 1261 阅读 · 0 评论 -
self.h5_file = h5py.File(self.io_file, mode=self.mode) AttributeError: ‘NoneType‘ object has no attr
self.h5_file = h5py.File(self.io_file, mode=self.mode) AttributeError: 'NoneType' object has no attribute 'File'原创 2023-08-18 17:17:56 · 212 阅读 · 0 评论 -
ImportError: /lib/aarch64-linux-gnu/libGLdispatch.so.0: cannot allocate memory in static TLS block
ImportError: /lib/aarch64-linux-gnu/libGLdispatch.so.0: cannot allocate memory in static TLS block原创 2023-08-11 10:16:31 · 1776 阅读 · 0 评论 -
Errors were encountered while processing: broadcom-sta-dkms E: Sub-process /usr/bin/dpkg returned a
Errors were encountered while processing: broadcom-sta-dkms E: Sub-process /usr/bin/dpkg returned an error code (1)原创 2023-08-03 16:15:58 · 609 阅读 · 0 评论 -
Cannot configure port, something went wrong. Original message: PermissionError(13, ‘连到系统上的设备没有发挥作用。‘
1、Cannot configure port, something went wrong. Original message: PermissionError(13, '连到系统上的设备没有发挥作用。2、python使用serial进行串口通信原创 2023-07-31 16:51:07 · 3870 阅读 · 3 评论 -
ERROR: Could not build wheels for mysqlclient, which is required to install pyproject.toml-based pro
ERROR: Could not build wheels for mysqlclient, which is required to install pyproject.toml-based projects原创 2023-06-28 10:18:39 · 9118 阅读 · 15 评论 -
django.template.exceptions.TemplateDoesNotExist: bootstrap3/errors.html
django.template.exceptions.TemplateDoesNotExist: bootstrap3/errors.html原创 2023-06-07 01:04:15 · 1018 阅读 · 0 评论 -
ListProxy‘ object has no attribute ‘clear
ListProxy' object has no attribute 'clear原创 2023-05-31 10:38:53 · 390 阅读 · 0 评论 -
qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""1、使用nuitka打包后无法找到pyqt5插件的问题原创 2023-05-16 10:04:37 · 4092 阅读 · 3 评论 -
ValueError: Number of labels is 1. Valid values are 2 to n_samples - 1 (inclusive)
ValueError: Number of labels is 1. Valid values are 2 to n_samples - 1 (inclusive)轮廓系数获取最佳k值原创 2023-05-06 22:16:07 · 1646 阅读 · 0 评论 -
windows 的torch.cuda.is_available()为False,安装gpu版本的torch
windows下使用cuda安装gpu版本的torch原创 2023-05-04 22:48:36 · 1581 阅读 · 0 评论 -
InnoDB: Cannot allocate memory for the buffer pool
Ubuntu下MySQL启动失败Failed to start MySQL Community Servermysql.service: Start request repeated too quicklyCan't connect to MySQL server on '127.0.0.1' (111)InnoDB: Cannot allocate memory for the buffer poolSee "systemctl status mysql.service" and "journa原创 2023-04-20 13:24:49 · 589 阅读 · 0 评论 -
MySQL出现too many connections错误
解决MySQL出现 too many connections的错误原创 2023-03-28 11:52:31 · 2676 阅读 · 0 评论 -
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
numpy两个列表比较原创 2023-02-13 15:20:51 · 2150 阅读 · 0 评论 -
object supporting the buffer API required
object supporting the buffer API required报错解决方案原创 2023-02-13 10:12:35 · 417 阅读 · 0 评论 -
command ‘x86_64-linux-gnu-gcc‘ failed with exit status 1
command 'x86_64-linux-gnu-gcc' failed with exit status 1原创 2022-08-05 17:33:56 · 1190 阅读 · 0 评论 -
Package zip is not available, but is referred to by another package.
Package zip is not available, but is referred to by another package.原创 2022-08-04 12:35:38 · 669 阅读 · 0 评论 -
DLL load failed: 页面文件太小,无法完成操作
DLL load failed: 页面文件太小,无法完成操作原创 2022-07-19 09:56:02 · 8696 阅读 · 0 评论 -
RuntimeError: populate() isn‘t reentrant
RuntimeError: populate() isn't reentrant原创 2022-07-12 16:21:43 · 924 阅读 · 0 评论 -
TypeError: Object of type ‘int32‘ is not JSON serializable
报错TypeError: Object of type ‘int32’ is not JSON serializable原因代码如下:import jsonimport numpy as npa = [ [0, 1, 2, 3, 4, 5, 6], [1, 1, 2, 3, 4, 5, 6], [2, 1, 2, 3, 4, 5, 6], [3, 1, 2, 3, 4, 5, 6],]data = {'column_1': None}np_a = np.原创 2022-05-24 14:53:13 · 351 阅读 · 0 评论 -
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.al
报错ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()原因我在使用多进程间使用Manager().dict() # 进程字典数据管道,定义了一个字典tcp_data_dict,其中给一个元素赋值为:进程1:even_data=[ [0, 1, 2, 3, 4, 5, 6], [1, 1, 2, 3, 4, 5, 6],原创 2022-05-24 14:40:22 · 240 阅读 · 0 评论 -
Exception: pyqtgraph requires Qt version >= 5.12 (your version is 5.9.5)
运行pyqt5程序时报这个错Traceback (most recent call last): File "main_das.py", line 23, in <module> import pyqtgraph as pg File "/usr/local/lib/python3.7/dist-packages/pyqtgraph/__init__.py", line 17, in <module> from .colors import palette原创 2022-05-18 10:00:07 · 3154 阅读 · 4 评论 -
AttributeError: module ‘sipbuild.api‘ has no attribute ‘prepare_metadata_for_build_wheel‘
在Ubuntu中安装pyqt5时报这个错误错误如下:Collecting pyqt5 Downloading PyQt5-5.15.6.tar.gz (3.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 44.6 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done原创 2022-05-17 12:43:49 · 5323 阅读 · 1 评论 -
Error: Command ‘[‘/home/das/Desktop/learn/my_venv/bin/python3‘
Ubuntu创建python虚拟环境时报错Error: Command '['/home/das/Desktop/learn/my_venv/bin/python3'原因python版本不对,使用的是python3.7,安装的venv是3.6的。解决方案sudo apt-get install python3.7-venv然后再创建虚拟环境python3 -m venv my_venv即可创建成功。...原创 2022-05-16 17:17:38 · 927 阅读 · 0 评论 -
ubuntu端口号被占用,kill对应的服务
kill端口号对应的服务比如我的端口号8801被占用了,先查看占用的进程idsudo lsof -Pti:8801然后一个个kill:kill -9 28182原创 2022-05-13 15:00:31 · 494 阅读 · 0 评论 -
cannot unpack non-iterable NoneType object
cannot unpack non-iterable NoneType object运行python的一段程序代码时报错。代码def division(a,b): ''' 除法 :param a: 被除数 :param b: 除数 :return: 商和余数 ''' if b == 0: return return a // b, a % bdiv, mod = division(6,4)print(div, mod原创 2022-04-21 14:33:37 · 2303 阅读 · 0 评论