随笔分类 - BUG
分享记录bug
Ubuntu16.04默认Python3.5升级Python3.6踩坑
摘要:ImportError: No module named 'secrets'
Failed to fetch http://ppa.launchpad.net/
Some index files failed to download. They have been ignored, or old ones used instead
E: Unable to locate package python3.6
E: Couldn't find any package by glob 'python3.6'
E: Couldn't find any package by regex 'python3.6'
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
阅读全文
Ubuntu18.04LTS安装docker报错:Command 'lsb_release' not found
摘要:Command 'lsb_release' not found
E: Malformed entry 52 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
阅读全文
pika使用报错queue_declare() missing 1 required positional argument: 'queue'
摘要:TypeError: queue_declare() missing 1 required positional argument: 'queue'
阅读全文
pip安装psycopg2失败解决
摘要:ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-umsabgcl/psycopg2/
阅读全文
git clone下代码window与unix换行问题
摘要:项目中避免不了会写一些shell脚本,使用ln软连接到一个目录。当git clone到windows中,ln连接显示无比怪异(如../xx),打开.sh文件后(仅仅是打开了),git status会看到该.sh文件做了修改,查看差异是LF【Unix and OS X(\n)】转成CRLF【Windo
阅读全文
PostgreSQL没有认证密码就登陆了缘由
摘要:上午同事爆出这样的问题,使用正确的用户名和错误的密码连接了postgresql数据库,竟然连上了。这不是故意这样神操作,不小心密码写错了,咋一看这样怎么能行,随便输入一个密码都能登陆上。自己测试也是同样的结果。仔细核实代码的确是创建用户名带密码了: 查了postgresql配置文件才发现,认证方式的
阅读全文
记一次crontab执行和日志生成问题
摘要:一、crontab未执行 crontab里面设置定时任务如下: 问题:存放log日志的logs目录没有权限,更改logs目录为777权限 二、crontab未按当前日期生成日志文件 date显示的时间格式如下: 生成日志文件为:a_logs_2019年 09月 02日 星期一 19:37:01 CS
阅读全文
VirtualBox Ubuntu设置静态ip亲测可行
摘要:virtualbox重启后ip会自动分配,不固定。项目中需要配置ip地址,因此每次ip换了,需要重新配置和编译。 网上搜罗好几种方法进行配置,尝试下面这种简单并且可行: 步骤一:查看虚拟机网卡 ifconfig 步骤二:查看宿主机网卡 ipconfig 步骤三:配置静态ip和dns sudo vim
阅读全文
PyQt5之QtMultimedia模块音乐播放没声音已解决
摘要:PyQt5音乐播放没声音
QtMultimedia
QMediaPlayer
阅读全文
python发送邮件554DT:SPM已解决
摘要:python发送邮件554DT:SPM已解决
please see http://mail.163.com/help/help_spam_16.htm?ip=36.110.94.251&hostid=smtp10
阅读全文
使用crontab定时执行python文件问题追根溯源
摘要:crontab
crontab: installing new crontab
centos上安装python3
阅读全文
python导包一不小心就入坑(常用解决办法)
摘要:ImportError:No module named
SystemError: Parent module '' not loaded, cannot perform relative import
阅读全文
pyteeseract使用报错Error: one input ui-file must be specified解决
摘要:pyteeseract使用报错Error: one input ui-file must be specified解决
Tesseract-OCR
阅读全文
mysql插入数据报错一二
摘要:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
Data truncated for column 'update_time' at row 1
阅读全文
Jstorm执行task报错windows CONFIG SET protected-mode no
摘要:Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
windows CONFIG SET protected-mode no
Could not get a resource from the pool
阅读全文
go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决
摘要:# github.com/DataDog/zstd
cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
mingw 64位报错ERROR res
阅读全文
navicat连接Oracle数据库
摘要:记录一下navicat连接Oracle数据库过程: 一、根据自己版本去Oracle官网下载instantclient 地址:https://www.oracle.com/technetwork/topics/winx64soft-089540.html 二、 navicat设置OCI环境 进入nav
阅读全文
golang 报错illegal rune literal
摘要:记录一下,今天运行一端代码遇到这个报错"illegal rune literal",代码如下: illegal这个单词报错比较常见,【不合法】,golang对引号使用还是很严格的,使用双引号包裹字符串,否则报上面那个错误。
阅读全文
golang 缺少逗号报错问题
摘要:一个逗号引发的语法报错问题:syntax error: unexpected newline, expecting comma or }或者missing ',' before newline in composite literal 代码如下:
阅读全文
Go used as value问题
摘要:练习Go变参时遇到一个报错:used as value 代码如下: 从上面代码可以看出myfunc()函数是没有返回值的,直接调用就可以,不需要使用fmt包或者给返回值进行输出。
阅读全文