报错解决方案
这么神奇
少年!努力吧~~
展开
-
[报错] VSCODE无法识别相对路径
打开VSCODE --> setting --> execute -->勾选 Execute in file Dir 选项;报错背景:在使用VSCODE 进行代码运行时,明明是正确的相对路径,文件却无法被打开;报错为:无法找到对应文件;原创 2022-09-15 14:18:51 · 2634 阅读 · 1 评论 -
[报错] python3报错:ModuleNotFoundError: No module named ‘MySQLdb‘
在运行脚本时,报错没有MySQLdb 包,Python3 又无法直接安装MySQLdb包;在安装。ModuleNotFoundError: No module named 'MySQLdb'原创 2022-08-19 15:41:04 · 3286 阅读 · 0 评论 -
Modelsim远程无法打开异常处理
在远程桌面打开Modelsim时,我们无法打开,会弹出:Fatal License Error错误,其原因为:在License文件中,没有允许远程访问;所以我们只需要在 Modelsim的license文件中增加允许远程打开即可;【报错图片】【解决办法】打开Modelsim的license文件;在所有的INCREMENT 句子的末尾增加 TS_OK;问题解决;技巧:由于该License中有一千多句需要增加 TS_OK, 可以使用文本编辑器,例如:SUBLIME, pycharm等软件,使用原创 2021-03-19 14:22:30 · 2152 阅读 · 5 评论 -
bash: setenv: command not found
报错现象:解决方法:Shell 版本不同,setenv 是CSH 命令,BASH无法解释,不过BASH 有对应的命令:CSH: setenv name valueBASH: export name=value CSH: unsetenv nameBASH: unset name所以,上述的报错现象,只要将命令修改为:export CDS_Netlisting_Mode= "Analog", 问题就解决了;...原创 2021-02-23 18:01:34 · 16628 阅读 · 1 评论 -
[报错] TypeError: run() argument after * must be an iterable, not int
[报错] TypeError: run() argument after * must be an iterable, not int问题描述:在多线程操作,调用threading.Thread 报错,TypeError: run() argument after * must be an iterable, not intimport threadingdef run(n): print("run the thread:",n)num = 0th1 = threading.Th原创 2020-10-30 10:43:20 · 21176 阅读 · 5 评论 -
[报错] AttributeError: module ‘sip‘ has no attribute ‘setapi‘
问题描述:最近在导入bar_chart_race 包时,遇到报错:AttributeError: module ‘sip’ has no attribute ‘setapi’导入的包:import bar_chart_race as bcr只是运行导入的语句,就会报错:AttributeError: module ‘sip’ has no attribute ‘setapi’解决办法:最后发现这个报错的原因是 matplotlib 库的版本太高,我报错的版本是 3.3.2,将其降级到 3.3.原创 2020-10-16 15:58:45 · 2980 阅读 · 0 评论