![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug
IT之一小佬
敲响键盘之乐,跳起程序之舞,抵达智慧之巅!
展开
-
ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘ (using password YES/NO)
ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘ (using password YES/NO)原创 2023-10-28 23:48:56 · 208 阅读 · 0 评论 -
pymysql.err.OperationalError: (2006, “MySQL server has gone away (TimeoutError(110, ‘Connection time
pymysql.err.OperationalError: (2006, “MySQL server has gone away (TimeoutError(110, ‘Connection timed out’))”)原创 2023-06-30 08:45:02 · 2717 阅读 · 2 评论 -
[Warning] IPv4 forwarding is disabled. Networking will not work.
[Warning] IPv4 forwarding is disabled. Networking will not work.原创 2023-02-24 08:54:59 · 341 阅读 · 0 评论 -
Mongodb启动常见的问题汇总
Mongodb启动常见的问题汇总原创 2022-10-23 23:57:05 · 1093 阅读 · 0 评论 -
kafka.common.InconsistentClusterIdException: The Cluster ID WWhn58BZRXiwzgR_RoxQfw doesn‘t match sto
Kafka启动失败异常-kafka.common.InconsistentClusterIdException: The Cluster ID WWhn58BZRXiwzgR_RoxQfw doesn't match sto原创 2022-10-23 00:12:25 · 167 阅读 · 0 评论 -
FATAL Error: Unable to complete saved object migrations for the [.kibana_task_manager] index. Plea
FATAL Error: Unable to complete saved object migrations for the [.kibana_task_manager] index. Please check the health of your Elasticsearch cluster and try again.原创 2022-10-12 23:29:00 · 5386 阅读 · 0 评论 -
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)E: U
解决办法:直接删除这两个锁定文件即可:sudo rm /var/lib/dpkg/lock-frontendsudo rm /var/lib/dpkg/lock原创 2021-12-22 14:25:02 · 258 阅读 · 0 评论 -
windows下:ERROR 1366 (HY000): Incorrect string value: ‘\xC1\xF5\xB1\xB8‘ for column ‘name‘ at row 1
在windows下插入中文时报此错误的解决办法!在Windows下,命令行窗口不支持UTF-8編碼,所以使用“set names utf8;”不會達到轉化中文的效果。但是這個問題還是可以解決的: (1)使用默認編碼建立數據庫。這種情況下就可以直接輸入中文了,但是相應的問題,就是會 失去UTF-8編碼的靈活性。特別是不利於軟件的國際化。 (2)放棄命令行窗口登錄MySQL,使用圖形化客戶端。客戶端工具可以MySQL的官方網站上找到。1.首先...原创 2021-07-08 14:10:14 · 750 阅读 · 0 评论 -
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`meiduo`.`
在MySQL中删除一张表或一条数据的时候,出现这是因为MySQL中设置了foreign key关联,造成无法更新或删除数据。可以通过设置FOREIGN_KEY_CHECKS变量来避免这种情况。我们可以使用SET FOREIGN_KEY_CHECKS=0;来禁用外键约束.之后再用SET FOREIGN_KEY_CHECKS=1;来启动外键约束.查看当前FOREIGN_KEY_CHECKS的值可用如下命令SELECT @@FOREIGN_KEY_CHECK.原创 2021-07-08 14:01:21 · 1493 阅读 · 0 评论 -
ERROR 1062 (23000): Duplicate entry ‘431381‘ for key ‘PRIMARY‘
我遇到的这个问题,经过查阅多个解决办法,最终是通过设置启动外键约束解决的。我这儿目前是禁用外键约束;启动外键约束后,再次导入数据成功啦!原创 2021-07-08 13:51:58 · 947 阅读 · 0 评论 -
Python忽略warning警告错误
Python忽略warning警告错误示例代码1:import warningswarnings.filterwarnings('ignore')示例代码2:import warningswarnings.filterwarnings(action='ignore', category=UserWarning, module='gensim')warnings.filterwarnings(action='ignore', category=FutureWarning, mo原创 2021-05-04 21:29:33 · 590 阅读 · 0 评论 -
Resource punkt not found.&&nltk.download()下载失败
Resource punkt not found.&&nltk.download()下载失败LookupError: ********************************************************************** Resource punkt not found. Please use the NLTK Downloader to obtain the resource: >>> import nltk原创 2021-05-04 20:35:38 · 4838 阅读 · 4 评论 -
Module ‘celery‘ has no attribute ‘celery‘问题
Module 'celery' has no attribute 'celery'问题自己查阅好多博客文章,也没有找到是怎么回事,最后自己一直调试发现celery.py文件是直接建在项目文件下了,改成下面方式就可以了!原创 2020-12-29 14:21:39 · 2055 阅读 · 0 评论 -
ValueError: not enough values to unpack (expected 3, got 0)问题
ValueError: not enough values to unpack (expected 3, got 0)检查自己的电脑上是否有eventlet库安装pip install eventlet然后启动worker的时候加一个参数,如下:(执行任务)celery worker -A celery_tasks -l INFO将上面命令改为下面命令就好啦!celery -A celery_tasks worker -l info -P eventlet完整代码如下:原创 2020-12-29 15:08:58 · 4566 阅读 · 0 评论 -
TypeError: ‘TaskRegistry‘ object is not callable
TypeError: 'TaskRegistry' object is not callablecelery.py# celery.pyfrom __future__ import absolute_import, unicode_literalsfrom celery import Celeryfrom celery.app import app_or_defaultclass Scheduler(object): def __init__(self, app=None):原创 2021-01-11 19:02:16 · 379 阅读 · 0 评论 -
RuntimeError: each element in list of batch should be of equal size
RuntimeError: each element in list of batch should be of equal size示例代码:import osimport refrom torch.utils.data import Dataset, DataLoaderdata_base_path = r'./aclImdb/'# 1.定义token的方法def tokenize(test): filters = ['!','"','#','$','%','&原创 2021-03-23 21:57:56 · 8699 阅读 · 4 评论 -
RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future rel
RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead.示例代码:from torchvision import transformsimpo原创 2021-03-18 22:16:03 · 1356 阅读 · 1 评论 -
客户端连接不到服务器上MySQL数据库 解决方法
客户端连接不到服务器上MySQL数据库 解决方法购买了阿里云服务器,自己安装了MySQL,开启了MySQL服务,但还是连接不上服务器的数据库。经过一番研究找到了解决方法首先,我们看服务器的mysql是正常运行的客户端访问远程服务器测试失败:经研究发现服务器上3306端口在防火墙的入站规则没有打开:连接成功:【注意:主机名或IP地址是公网的IP,密码是root用户的密码,不是数据库的密码】【数据库的介绍和数据库配置文件的介绍,观看博文:https://blog.cs原创 2021-02-27 11:18:24 · 3315 阅读 · 0 评论 -
Command ‘ifconfig‘ not found, but can be installed with:
Command 'ifconfig' not found, but can be installed with:原创 2021-02-15 18:41:09 · 401 阅读 · 0 评论 -
pycharm中的terminal解释器和project 解释器不统一问题
pycharm中的terminal解释器和project 解释器不统一问题原创 2020-12-20 15:31:50 · 2534 阅读 · 2 评论 -
You are trying to add a non-nullable field ‘first_res‘ to result without a default; we can‘t do that
You are trying to add a non-nullable field 'first_res' to result without a default; we can't do that在模型中新增加字段导致报错信息报错信息:You are trying to add a non-nullable field 'aha_push' to apkpush without a default; we can't do that (the database needs somethin原创 2021-01-10 18:55:12 · 948 阅读 · 0 评论 -
Vi/vim编辑文件无法保存和退出的解决方法
Vi/vim编辑文件无法保存和退出的解决方法原因:没有具备root权限解决方法: 强制退出后,用sudo vi/vim +文件重新编辑,此时便是以root权限进行修改文件,可以正常保存并退出原创 2021-02-02 10:51:10 · 6382 阅读 · 1 评论