![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BUG
集电极
这个作者很懒,什么都没留下…
展开
-
BUG ImportError: cannot import name ‘QAction‘ from ‘PySide6.QtWidgets‘
在PySdie6中,QtWidgets模块并不包含这个QAction类,QAction实际上位于PySide6.QtGui模块下。在参考 PyQt5 的代码写 Pyside6 的右键菜单时遇到的错误。这是PySide6和PyQt5的不同点之一。改为从PySide6.QtGui模块导入。原创 2024-07-21 22:10:19 · 235 阅读 · 0 评论 -
BUG: npm error `electron_mirror` is not a valid npm option
我是没事干了,运行这个命令,这个命令在我这里根本就是运行不了。这个命令一般是用于设置。【2】在空白地方添加淘宝镜像,下面三个(缺什么补什么,但要是同一个公司单位的镜像)这是一个设置镜像的命令。【1】打开npm的配置文件。如果添加过就跳过运行。原创 2024-07-08 20:16:24 · 555 阅读 · 0 评论 -
忽略Warning: jieba Building prefix dict from the default dictionary Loading model from cache
当首次导入 jieba 或者 jieba 的字典文件发生变化时,它会构建一个前缀树(字典树)以加速后续的分词操作。这个过程默认会输出一条信息:“Building prefix dict from the default dictionary”,这主要是为了调试和信息提示的目的。来禁止所有低于 CRITICAL 级别的日志输出,这包括构建字典树的信息。jieba 提供了一个全局变量。原创 2024-07-05 18:00:26 · 195 阅读 · 0 评论 -
忽略Warning:It is recommended to enable `effective_order` for sentence-level BLEU.
在使用sacrebleu的BLEU.sentence_score 时弹出的经过。通过设置 logging 日志等级可以不打印这个警告信息。原创 2024-07-05 17:52:21 · 180 阅读 · 0 评论 -
BUG TypeError: GPT2Model.forward() got an unexpected keyword argument ‘past’
这是由于新版的transformers 对GPT2Model.forward() 参数进行了改变导致的错误。找到错误语句,将其中的。原创 2024-07-02 21:12:10 · 441 阅读 · 0 评论 -
BUG:AttributeError: module ‘websocket‘ has no attribute ‘enableTrace’
是这样安装会造成 websocket-client 和 websocket 库冲突。websocket中没有。卸载 websocket-client 库,然后再重新安装,但要带具体版号(可以去。注意:这个时候如果之前安装了websocket库,不要卸载。模块,还会影响websocket-client。安装websocket-client库。一开始是通过pip直接安装。的代码时弹出这个错误。需要分开安装,而且需要。原创 2024-06-27 09:24:15 · 597 阅读 · 0 评论 -
BUG: gradio RuntimeError: async generator raised StopAsyncIteration
在使用gradio编写大模型可视化demo的时候,大模型正常输出,但gradio弹出此错误。经过排除,发现是返回方式的问题,gradio传输信息给大模型的时候,我使用了。原创 2024-06-20 20:58:31 · 383 阅读 · 0 评论 -
BUG:AttributeError: module ‘numpy‘ has no attribute ‘bool‘.
目前最新的的NumPy版本(如1.26版本)中布尔类型的接口已经改为。方法1:如果确实需要使用NumPy标量类型,可以将代码中的。方法2:将NumPy的版本降级。,解决这个报错问题。原创 2024-06-17 10:13:17 · 340 阅读 · 0 评论 -
BUG:ERROR: Could not find a version that satisfies the requirement cython
安装 pkuseg 分词库失败的错误。原因是安装cython依赖失败报错。原创 2024-06-17 10:04:29 · 400 阅读 · 0 评论 -
BUG:ERROR: Could not find a version that satisfies the requirement cffi
尝试使用 pip install cffi 安装 cffi 也失败了。错误原因:这个错误由于安装 cffi 失败导致的错误。在安装 cld2-cffi 库时发生的错误。然后再安装 cld2-cffi。原创 2024-06-17 09:59:12 · 349 阅读 · 0 评论 -
BUG:AttributeError: ‘GLMChineseTokenizer‘ object has no attribute ‘sp_model’
模型时弹出的BUG,具体原因不清楚,大概是 transformers 版本改变了,导致一些接口导入方式改变,而glm-large-chinese 的代码还是旧版的。原创 2024-06-17 09:19:45 · 517 阅读 · 0 评论 -
BUG: VS Code C++输出中文乱码
问题的原因在cmd的显示编码和c++程序编码的不同。cmd默认的是gbk编码,而。在Windows 使用 cout 函数输出中文时出现乱码。默认是utf-8编码,因而在输出中文文本时会出现乱码。原创 2024-05-27 15:11:54 · 649 阅读 · 0 评论 -
BUG: ValueError: The model‘s max seq len (32768) is larger than the maximum number of tokens
使用vllm启动大模型出现的错误。问题原因大模型上下文长度超出了所用显卡GPU的KV缓存限制。原创 2024-05-27 16:28:37 · 1055 阅读 · 0 评论 -
BUG:C++/CUDA extensions. xFormers was built for: PyTorch 2.1.2+cu121 with CUDA 1201 (you have 2.1.0+
使用vllm启动大模型出现的错误。原因:xformers版本和torch、cuda不匹配。我机器的cuda版本只支持到11.8,而 pip install xformers 默认安装的版本需要cuda12.1。原创 2024-05-27 15:18:49 · 744 阅读 · 0 评论 -
BUG:PyAutoGUI pyautogui.ImageNotFoundException
如果还存在这个错误,可以尝试安装PyScreeze==0.1.29版本。而且有的图片不是一次就能识别出来,可以多试几次。如果屏幕不存在指定图片,也会弹出这个错误。经过排查,我产生bug原因是没有下载。,使用PyAutoGUI中的。失败弹出这个bug。原创 2024-05-13 20:10:18 · 511 阅读 · 0 评论 -
C/C++ VScode: launch: program ...... dose not exist
参考教程配置了VSCode。在配置launch.json适用多个.c文件编译时,弹出下面错误。原创 2024-05-10 23:54:26 · 444 阅读 · 0 评论 -
llama-cpp-python安装bug:error: subprocess-exited-。scikit-build-core 0.8.2 using CMake 3.28.3 (wheel)
Building wheel for llama-cpp-python (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for llama-cpp-python (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [325 lines of output] *** scikit-build-c原创 2024-03-05 14:04:04 · 1939 阅读 · 1 评论 -
重新安装VSCode后,按住Ctrl(or Command) 点击鼠标左键不跳转问题
本次是由于Python相关的插件被删除了,因此导致Python无法跳转。原因:重新安装一般是因为相应编程语言的插件被删除了或还没有下载。在vscode界面右侧,找到Extensions,在搜索框,输入。C/C++ 的插件名称也就是C/C++原创 2024-02-21 10:26:42 · 2760 阅读 · 0 评论 -
Python调用LAC分词模型BUG:ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20‘ not found
错误 ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by xxxxxx/site-packages/paddle/fluid/libpaddle.so)因此原因应该是调用LAC过程有些包的名称可能与项目代码中调用的模型有冲突。解决方法是把调用LAC的。文件调用 LAC 模型是没有问题的,仅仅在项目中引入后出错。原创 2023-09-27 09:29:45 · 923 阅读 · 0 评论 -
Post 请求ES数据库错误:json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
导致后面检索式检索出错。排除发现是需要检索的字符串包含。原创 2023-09-01 18:05:28 · 217 阅读 · 0 评论 -
Python bug: TypeError: unhashable type: ‘dict‘ or ‘list‘
由于有时候会将一些变量赋值给字典,通常键的名称直接使用变量名称,但有时不小心键的名称没有变成字符串。经过排除,发现我遇到的错误是由于字典的键使用了。原创 2023-08-31 18:13:51 · 733 阅读 · 0 评论 -
Python bug ModuleNotFoundError: Some modules (fasttext etc.) required by this model are missing.
这个错误是缺少 fasttext 包。但我通过 pip install fasttext 安装失败了。弹出error: command ‘/usr/bin/gcc’ failed with exit code 1。查询资料说可以安装whl包。选择自己的操作系统和python版本对应的whl。原创 2023-08-18 10:15:01 · 168 阅读 · 0 评论 -
python AttributeError: module ‘networkx‘ has no attribute ‘pagerank_scipy‘
我是由于networkx 过高出现这个BUG。解决方法是降级安装networkx 2.8。原创 2023-08-16 13:47:36 · 879 阅读 · 0 评论 -
File “sklearn/tree/_tree.pyx“, line 714, in sklearn.tree._tree ValueError: node array from the pickl
当pickle读取sklearn 模型对象时,可能由于之前保存sklearn对象使用的sklearn版本比较低,而在使用高版本sklearn读取时会出错。把skearn 降到1.0.2版本可以运行了。发现sklearn 1.3.0 不存在 “sklearn/tree/_tree.pyx”。原创 2023-08-14 18:21:57 · 3246 阅读 · 0 评论 -
Python umap ValueError: Buffer has wrong number of dimensions (expected 1, got 2)
这是由于umap旧版本不能处理太大的数据量,我出错的版本是:0.3.10。数据量维度为[10000, 32]。更新为 0.5.3 后没有出现问题了。原创 2023-08-14 11:06:21 · 652 阅读 · 0 评论 -
30系显卡tensorflow1.15代码异常 failed to run cuBLAS routine cublasSgemm_v2: CUBLAS_STATUS_EXECUTION_FAILED
因为我以前使用2080ti显卡,按照tensorflow官网要求1.15版本需要CUDA 10.0,然后我单独在当前python环境使用conda 安装了cuda 10.0 版本, 在2080ti这样做是没有问题的。其实tensorflow1.15 也可以在 CUDA 11.4版本运行的,所有我单独安装CUDA10.0是白费功夫了。但我不知道英伟达30系已经不支持 10.0 版本的CUDA。注:如果大家遇到在CUDA 11.4不能运行,我也不知道怎么办,请参考其他人的文章。原创 2023-07-20 15:25:20 · 650 阅读 · 1 评论 -
bug: tab 标签页界面切换导致echarts图表默认宽度100px的问题
最近在bootstrap中使用echarts,本来在一个页面显示全部图表时是正常的。后面使用tab标签页界面切换不同表格时碰到的一个echarts bug,tab切换时,默认页显示的图表没有委托,但echarts图表默认隐藏的时候,渲染的默认宽度是100px。问题原因:tab标签导致图表元素设置了display:none 属性值。原创 2022-08-24 18:07:20 · 1572 阅读 · 2 评论 -
1 PySide6 BUG: This application failed to start because no Qt platform plugin could be initialized.
我在运行程序时弹出了这个bug.根据bug可以看出是因为当前python环境缺少 Qt platform plugin 下的库。原创 2022-08-20 12:30:43 · 2617 阅读 · 0 评论 -
ValueError: Could not locate a VISA implementation. Install either the NI binary or pyvisa-py
可能原因是 pyvisa-py 包没有下载。或者pyvisa-py 和pyvisa 版本搭配的问题直接pip下载pyvisa-py , 安装这个包会下载 pyvisa 最新的包覆盖旧的包。之前是和都可以导入。但最新的 pyvisa 1.12.0 的导入方式已经发生重大改变。不能使用导入了,只能使用导入。......原创 2022-08-17 15:19:45 · 2061 阅读 · 0 评论 -
sklearn.LabelEncoder解决未见过值问题ValueError y contains previously unseen labels [69]
sklearn.LabelEncoder解决未见过值问题ValueError: y contains previously unseen labels: [69]引发原因:有些标签训练集不存在,但却在测试集出现了,而且我们LabelEncoder使用的拟合fit是训练集的数据,这样就会造成异常a。根本原因是数据不均匀,导致数据划分时没能都包括所有标签。主要思路:把原数据集(比如train data set)里面没有但是在新数据集(比如test data set)遇到的新值放到一个类里面,再将类回传原创 2021-07-30 09:10:06 · 5527 阅读 · 0 评论 -
AttributeError module ‘seaborn‘ has no attribute ‘tsplot‘
AttributeError: module ‘seaborn’ has no attribute ‘tsplot’新版seaborn没有了这个函数。用lmplot代替使用,举例lmplot的data必须是dataframe类型之前ax = sns.tsplot(cost_data, time=np.arange(epoch+1))ax.set_xlabel('epoch')ax.set_ylabel('cost')plt.show()修改为c={'epoch':list(range(e原创 2021-03-07 20:25:44 · 3676 阅读 · 0 评论 -
python报错AttributeError module ‘scipy.misc‘ has no attribute ‘imresize‘和 ‘imread‘
python报错AttributeError: module ‘scipy.misc’ has no attribute 'imresize’和 ‘imread’报错原因:scipy版本过高解决方案:降低scipy版本,如下:pip install scipy==1.2.1版本是scipy==1.2.1时,如果还报错,那就安装Pillow即可pip install pillow如果之后因为scipy版本过低引起异常,那就直接改个接口函数即可。官方scipy中提到,imread is de原创 2021-07-14 12:01:36 · 6123 阅读 · 3 评论 -
Error Missing optional dependency ‘xlrd‘. Install xlrd = 1.0.0 for Excel support Use pipinstall xlr
ImportError: Missing optional dependency ‘xlrd’. Install xlrd >= 1.0.0 for Excel support Use pip or conda to install xlrd.缺少可选依赖项“xlrd”。安装xlrd>=1.0.0 来支持 Excel,使用pip或conda安装xlrd。安装xlrdpip install xlrd。。。...原创 2020-11-24 16:57:42 · 989 阅读 · 0 评论 -
python 异常 ValueError setting an array element with a sequence
python 异常 ValueError: setting an array element with a sequence错误原因是因为numpy数组中存在不同类型的数据,如果后来想把数据统一设为比如int32,int64,float32等类型是就出现这个异常错误例子,我本来以为我的数据是train_vector_X = [[ 9.00000000e+00 5.00000000e+00 0.00000000e+00 1.32000000e+02 1.00000000e+00 2.0原创 2021-07-28 09:55:21 · 23657 阅读 · 3 评论 -
tensorflow卷积报错Failed to get convolution algorithm. This is probably because cuDNN failed t
tensorflow2.0卷积报错Failed to get convolution algorithm. This is probably because cuDNN failed t说明:环境是tensorflow2.0.0,测试GPU没有问题。但在运行模型出现错误。UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try lookin原创 2021-07-05 20:06:38 · 4577 阅读 · 9 评论 -
pytorch 错误 AttributeError: ‘Tensor‘ object has no attribute ‘backword‘
pytorch 错误 AttributeError: ‘Tensor’ object has no attribute ‘backword’按错误说明是没有backword属性。错误代码loss.backword() # 反向传播正确loss.backward() # 反向传播就打错了一个a字母 ????原创 2021-08-26 12:00:42 · 7031 阅读 · 6 评论 -
nltk_data下载错误 Error loading stopwords urlopen error [Errno 11004] 解决办法
nltk_data下载错误 Error loading stopwords: urlopen error [Errno 11004] 解决办法[nltk_data] Error loading stopwords: <urlopen error [WinError 10054]前言这是由于nltk的stopwords语料下载错误,nltk的其他语料下载错误也会出现这个错误。我尝试了几种方法直接在 nltk_data 的官网下载。我没有下载成功。有人说是网站权限不够,这个我也没有成功下载。原创 2020-12-18 19:12:17 · 15970 阅读 · 19 评论 -
python错误tensorflow.python.framework.errors_impl.InvalidArgumentError Assign requires shapes of both
python 错误tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [24,1] rhs shape= [32,1]错误tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both ten原创 2021-07-27 21:39:26 · 8630 阅读 · 0 评论 -
python 报ValueError could not broadcast input array from shape或 Can‘t convert non-rectangular
python 报ValueError: could not broadcast input array from shapenumpy报ValueError: could not broadcast input array from shapetensorflow报ValueError: Can’t convert non-rectangular Python sequence to Tensor.这两个错误都是一样的的原因。在使用numpy和tensorflow将list转为array或ten原创 2021-08-02 19:31:19 · 13296 阅读 · 0 评论 -
vsce package 后出现 Command failed: npm list --production --parseable --depth=99999 --loglevel=error异常
说明,我是在尝试打包VScode插件时弹出这个错误我在网上搜索资料发现很多情况都可能导致这个错误。请大家注意甄别情况。原创 2022-07-28 13:20:30 · 2017 阅读 · 0 评论