
各种报错问题分享
zhouf00
这个作者很懒,什么都没留下…
展开
-
UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 67-71: ordinal not in range(12
其它就是系统不支持UTF8的格式,打印转出时,报的错误。原创 2023-08-09 14:05:18 · 485 阅读 · 0 评论 -
添加打印机,错误为0x0000011b
问题描述前几天共享打印机还可以使用的突然就不能打印了,删除重新安装时就提示 windows无法连接到打印机 ,如下图:解决方案这是的补丁代号为KB5005569/KB5005573/KB5005568/KB5005566/KB5005565造成的。卸掉上述补丁即可解决问题步骤找到 设置——>更新和安全----> Windows更新---->“查看更新历史记录---->卸载更新本人的经验分享,希望可以帮助到你们,如何不对的地方,可以评论留言,帮我指正一下,如果帮助了你原创 2021-09-17 17:31:12 · 41063 阅读 · 3 评论 -
python安装报错,Windows 7 Service Pack 1 and all applicable updates
问题描述在windows 7 32位系统上安装 python 时无法安装报错如下:One or more issues caused the setup to fail.Please fix the issues andthen retry setup.For more information see the log file.Windows 7 Service Pack 1 and a...原创 2020-04-11 20:26:30 · 10670 阅读 · 0 评论 -
Specifying a namespace in include() without providing an app_name is not supported
问题描述错误提示:‘Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and...原创 2020-01-29 20:07:41 · 611 阅读 · 0 评论 -
Django2.1.5与xadmin0.6.0遇到的坑
1. django2.1.5把from django.core.urlresolvers修改成了django.urls异常信息:ModuleNotFoundError: No module named 'django.core.urlresolvers'解决方案把xadmin下所有的文件里包含此头的都按下面修改from django.core.urlresolvers impo...原创 2020-01-29 11:02:10 · 350 阅读 · 0 评论 -
RuntimeError: Model class XXX doesn't declare an explicit app_label and isn't in an application
问题描述RuntimeError: Model class apps.system.models.Menu doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS问题分析使用了相对路径引用model模块from .model import Menu解决方法使用绝对路径引...原创 2020-01-28 17:05:04 · 3091 阅读 · 2 评论 -
思科、华为交换机err-disable的相关排查解决
故障症状:线路不通,物理指示灯灭或者显示为橙色(不同平台指示灯状态不同)造成err-disabled原因解决方法如未找到问题机器无法直接通过重启端口进行恢复**可以插线法:**把下层交换机上的线全部拔掉,然后一个个插上去,直到发现问题所在相关命令switch#show interfaces status err-disabled \\显示报err-disabled所有接口swi...原创 2020-01-03 17:16:46 · 1722 阅读 · 0 评论 -
django.db.utils.OperationalError: (1366, "Incorrect string value: '\\xE9\\x83\\xA8\\xE9\\x97\\xA8...
问题描述在django使用migrate 时出现的情况,因为 mysql 创建数据库的格式未使用utf8,只要修改成utf8问题就解决了问题解决先修改 my.cnf 文件vi /etc/my.cnf[client]default-character-set=utf8[mysql]default-character-set=utf8[mysqld]collation-serv...原创 2019-12-18 18:57:19 · 649 阅读 · 1 评论 -
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
问题描述语言环境为ascii无法解析中文问题解决vi ~/.bash_profile将/usr/bin/python3 加入PATHif [ -f ~/.bashrc ]; then . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/bin:/usr/bin/pytho...原创 2019-10-22 15:59:46 · 1075 阅读 · 0 评论 -
AttributeError: 'str' object has no attribute 'decode'
序言错误代码:query = query.encode(errors=‘replace’)解决把decode改为encode即可原创 2019-09-18 11:28:14 · 314 阅读 · 0 评论 -
can't create ip socket:no such file or directory
错误描述中文解释为:无法创建IP套接字,实际原因可以是socket端口被占用了,所以就无法创建了(个人分析而已,如有不对,请批评指正,谢谢)解决办法重启服务netsh winsock reset电脑重启后,问题解决本人的经验分享,希望可以帮助到你们,如何不对的地方,可以评论留言,帮我指正一下,如果帮助了你,请给我点个赞吧...原创 2019-08-30 11:47:13 · 2086 阅读 · 0 评论 -
无法定位程序输入点ucrtbase.abort于动态链接库api-ms-win-crt-runtime-l1-1-0.dll上。
序言windows2008 R2在运行某些程序时提示错误如下图只需要安装 Visual C++ 2015 Redistributable(即:vs_redist.x64.exe)微软官网下载:vs_redist.x64.exe问题解决了本人的经验分享,希望可以帮助到你们,如何不对的地方,可以评论留言,帮我指正一下,如果帮助了你,请给我点个赞吧...原创 2019-08-27 16:29:07 · 4290 阅读 · 0 评论 -
please specify a different sdk name
问题描述please specify a different sdk name中文件解释:请指定一个不同的sdk名称解决方法查看所有环境后发现确实有两个完全相同的环境删除一个后,系统就正常了本人的经验分享,希望可以帮助到你们,如何不对的地方,可以评论留言,帮我指正一下,如果帮助了你,请给我点个赞吧...原创 2019-06-27 11:14:47 · 8912 阅读 · 2 评论 -
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3
错误django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.解决方案:点击进入Django路径*:\**\django\db\backends\mysql\base.py注销这两行#if version < (1, 3, 13):...原创 2019-06-18 16:44:44 · 2458 阅读 · 0 评论 -
pywintypes.com_error: (-2147221008, '尚未调用 CoInitialize。', None, None)
问题多线程使用pywin32com造成的问题解决方法安装pywin32pip install pywin32只要在线程启动时先运行pythoncom.CoInitialize()import pythoncomclass SecretFile(object): def _save_tmpfile(self, passwd): pythoncom.CoIn...原创 2019-06-25 16:46:03 · 9817 阅读 · 4 评论 -
Excel无法打开,内存或磁盘空间不足,Microsoft Excel无法再次打开或保存任何文档
错误提示Excel无法打开,内存或磁盘空间不足,Microsoft Excel无法再次打开或保存任何文档要想更多的可用内存,请关闭不再使用的工作簿或程序要想释放磁盘空间,请删除相应磁盘上不需要的文件解决方法1、我的电脑右键-管理2、点击服务,查看Windows Firewall是否启动3、启动服务问题解决本人的经验分享,希望可以帮助到你们,如何不对的地方,可以评论留...原创 2019-06-10 10:19:21 · 11810 阅读 · 3 评论 -
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
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 ‘XX’ at line 6翻译后:您的SQL语法有错误;检查MySQL服务器版本对应的手册,在第6行“XX”附近使用正确的语法...原创 2019-06-18 14:19:48 · 5508 阅读 · 0 评论 -
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 2: invalid continuation byte
问题描述原代码import oscmd = "ping -n 1 192.168.127.253"res = os.popen(cmd).read()print(res)通过pyinstaller打包后报错百度翻译的解释unicodedecode错误:“utf-8”编解码器无法在位置2:inva中解码字节0xd5其实就是"UTF-8"无法解释"gbk"的代码,在不改变代...原创 2019-05-16 20:23:12 · 19521 阅读 · 0 评论