
各种BUG
ScratKong
劝君惜取少年时
展开
-
'%s' is an invalid keyword argument for th is function
使用Django shell对数据库进行新增操作时,>>> from datetime import date>>> from mybook.models import BookInfo>>> book = BookInfo( btitle='西游记', bput_date=date(1988,1,1), bread...原创 2018-07-13 11:47:34 · 2754 阅读 · 0 评论 -
Ubuntu18.04编译Nginx报错objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed
在Ubuntu18.04上安装Ngnix,在编译步骤出现如下错误:cc1: all warnings being treated as errorsobjs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failedmake[1]: *** [objs/src/core/ngx_murmurhash.o...转载 2019-06-12 02:06:26 · 3824 阅读 · 1 评论 -
Redis need tcl 8.5 or newer
scratkong@ubuntu:~/workspace/redis2.6.13/src$ make testYou need tcl 8.5 or newer in order to run the Redis testmake: *** [test] Error 1解决方案: wget http://downloads.sourceforge.net/tcl/tcl8.6.1...转载 2019-05-29 09:28:12 · 190 阅读 · 0 评论 -
module 'requests' has no attribute 'get'
pip install requestsimport requests......... check your file name , requests.py ? refactor and this bug done.原创 2018-11-03 09:49:32 · 601 阅读 · 0 评论 -
jupyter notebook 报错的坑【The kernel has died, and the automatic restart has failed.】
问题点打开jupyter notebook遇到的问题表现:遇到这个问题,首先需要分析报错信息,不要听信网上一面之词,对解决方法无益处。[I 11:49:06.081 NotebookApp] KernelRestarter: restarting kernel (4/5), new random portskernel a67705c9-a10f-4e18-9190-03e253b68...转载 2018-09-30 16:52:15 · 18223 阅读 · 4 评论 -
docker镜像无法删除
问题:执行 docker rm 4ac2d12f10cd 时报错报错信息如下:Error response from daemon: conflict: unable to delete 4ac2d12f10cd (must be forced) - image is referenced in multiple repositories来自守护进程的错误响应:冲突:...转载 2018-10-08 22:22:22 · 544 阅读 · 0 评论 -
ssh出错 sign_and_send_pubkey: signing failed: agent refused operation
在服务器添加完公钥之后,ssh服务器然后报了这个错误sign_and_send_pubkey: signing failed: agent refused operation然后执行了以下命令才好。。eval "$(ssh-agent -s)"ssh-add ...转载 2018-10-17 22:22:16 · 254 阅读 · 0 评论 -
python3的 pymysql把mysqldb库取代了,让python 3支持mysqldb的解决方法
原因MySQLdb 只适用于python2.x,发现pip装不上。它在py3的替代品是: import pymysql安装方法:pip install pymysqldjango+mysql 而Django默认的还是使用MySQLdb:执行会报:ImportError: No module named ‘MySQLdb’解决:在站点的 init.py 文件中添加im...转载 2018-10-12 18:46:38 · 436 阅读 · 0 评论 -
Python报错:(编码问题)SyntaxError: Non-ASCII character '\xe2' in file
报错信息:报错原因:SyntaxError: Non-ASCII character '\xe2' in file意思是说,在文件中存在非ASCII字符;ASCII是8位即一个字符,一共256个字符,随着计算机的发展,现在已经用到2个或者4个字符;最重要的原因就是文件中有中文解决方法:在相应文件头加#!/usr/bin/python# -*- coding: UTF-8 -...转载 2018-07-13 09:36:42 · 3212 阅读 · 0 评论 -
Specifying a namespace in include() without providing an app_name
Django 执行 python manage.py runserver 报错,报错信息如下: File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/urls/conf.py", line 39, in include 'Specifying a namespace in includ...原创 2018-07-14 09:33:20 · 745 阅读 · 0 评论