attributeerror 相关问题

Python`AttributeError`异常。

Python Pandas 使用 DataFrame 的函数“函数”对象没有属性“dtypes”

上下文: 我正在使用数据库和数据帧,所以我需要获取我正在提取和转换的数据帧的某个版本,所以我决定使用 .copy 函数来获得独立数据

回答 2 投票 0

Tkinter 地图视图错误:“PhotoImage”对象没有属性“_PhotoImage__photo”

我正在尝试在框架内绘制地图视图,并绘制地方当局的多边形(供用户单击以选择)。 运行代码时出现以下错误,尽管小部件可以正常工作...

回答 0 投票 0

AttributeError:使用 pytube 时,“NoneType”对象没有属性“span”

从 pytube 模块下载视频时遇到问题。 我尝试更新 pytube,再次下载它,但仍然无法正常工作。 我正在使用 Python 3.11,这是我的代码: def progress_fu ...

回答 1 投票 0

TKINTER 条目:AttributeError:'NoneType' 对象没有属性'get' tkinter 条目无法在框架中获取值

我使用了函数和 tk 框架/条目,但我似乎无法获得条目的值 我用一个框架来放置我所有的小部件。我似乎无法获得我所有 tk 条目的价值。 我希望能够得到...

回答 0 投票 0

通过 Python Office 365 SSL 错误访问 SharePoint:AttributeError:“NoneType”对象没有属性“文本”

代码工作得很好,不知从哪里开始给我这个错误信息:AttributeError: 'NoneType' object has no attribute 'text' 只有我能在网上找到的其他问题是针对 Sharepy

回答 0 投票 0

Tensorflow AttributeError:模块“tensorflow”没有属性“...”

几个月来我一直在努力解决这个问题,我发现这是一个常见的在线问题,但我似乎仍然找不到适合我的解决方案。 我想我可能有点搞砸了

回答 0 投票 0

Python 'bytes' 对象没有属性 'decrypt'

我正在尝试一些加密示例。 我一直得到 dec_msg = dec_key.decrypt(enc_msg) AttributeError: 'bytes' 对象没有属性 'decrypt' 这个错误。 从 cryptography.fernet 导入 Fernet f...

回答 1 投票 0

AttributeError:模块“IPython.utils.traitlets”没有属性“Unicode”

我在 Kaggle 服务器上运行一个 .ipynb notebook。 在第一个代码单元格中,导入模块时,具体是来自 google.patches 的 cv2_imshow,如下所示, 从 google.colab.patches 导入 cv2_imsho...

回答 1 投票 0

使用 jupyter notebook 获取 python3 错误“AttributeError: type object 'Settings' has no attribute 'screen_width'”

我正在尝试关于 python 的 Eric Mattes 课程,并复制了提供的代码和其他人的在线代码,但不断收到 AttributeError: type object 'Settings' has no attribute 'screen_width' and ...

回答 0 投票 0

属性错误:“OLSResults”对象没有属性预测

运行以下脚本时,在forecast=model.forecast后显示错误信息。 这是脚本: 将熊猫导入为 pd 将 statsmodels.api 导入为 sm 将 matplotlib.pyplot 导入为 plt ...

回答 0 投票 0

在 python 上安装 streamlit 库后,出现属性错误:模块“plotly.graph_objs.layout.template.data”没有属性“Icicle”

在 python 上成功安装 streamlit 库但运行后, 我收到属性错误:模块“plotly.graph_objs.layout.template.data”没有属性“Icicle” 文件“/...

回答 3 投票 0

Django:当我尝试在 Django 中迁移时,我收到此错误:“AttributeError:‘bool’对象没有属性‘startswith’”

我收到这个错误:“AttributeError: 'bool' object has no attribute 'startswith' 当我尝试在 django 中迁移时 这是我的代码: 从 django.db 导入模型 # 在这里创建你的模型。 f...

回答 0 投票 0

在 pyvis 中我总是得到这个错误:“AttributeError: 'NoneType' object has no attribute 'render'”

我想用最新版本的pyvis和python 3.9.6版本做一个网络可视化: 从 pyvis.network 导入网络 g =网络() g.add_node(0) g.add_node(1) g.add_edge(0, 1) g.s...

回答 1 投票 0

AttributeError: 'NoneType' 对象没有属性 'get_role'

我试图让所有用户都具有特定角色,但我不知道如何获得这个特定角色,我搜索并找到了 guild.get_role(ROLE_ID),但不起作用 ;-; 导入不和谐 从 discord.ext 导入 com...

回答 0 投票 0

在 Snakemake 中使用模块。在工作流中的使用规则 * 抛出错误后定义规则

我使用的是 Snakemake 的 7.23.1 版本。 我在 snakemake 中使用模块化,但出现了奇怪的行为。我想请求你的帮助,以便更深入地了解......

回答 1 投票 0

如何修复 python 代码中的属性错误 int64 [关闭]

我在 python 代码中收到以下错误 __getattr__ 中的文件“C:\Users bcd\Anaconda3\lib num.py”,第 429 行 从 None 提高 AttributeError(name) 属性错误:Int64 什么...

回答 0 投票 0

AttributeError:“Adam”对象没有属性“build”:我该如何解决这个问题

我无法用我的代码创建 Ann 模型,因为每次都会出现此错误消息。我该如何解决? 错误消息:AttributeError:'Adam' 对象没有属性 'build' 我尝试使用不同的

回答 0 投票 0

pytorch_forecasting 模型的属性错误

我目前正在尝试按照此处所述的确切方法从 Google Colab 的 pytorch_forecasting 库中设置一个 TemporalFusionTransformer。 出于某种原因,我总是得到“

回答 0 投票 0

AttributeError:部分初始化的模块“pyautogui”没有属性“write”(很可能是由于循环导入)

PyAutoGui 有一个以前没有的小问题: 当我启动我的脚本时,发生了这个错误: 追溯(最近一次通话): 文件“C:\Users\Mathéo\Desktop\pyautogui\

回答 0 投票 0

AttributeError: 'Tensor' 对象没有属性'_in_graph_mode'。

我遇到一个错误:'Tensor'对象没有属性'_in_graph_mode'。我已经调试了代码,我认为是在GradientTape函数中,但我不知道为什么。如果有谁知道,请帮帮我! :...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.