Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Python Flask 应用程序在本地运行,但在 Heroku 上托管时返回 AttributeError
我正在开发大学申请 该 Web 应用程序使用 joblib 加载给定模型 并且为了工作 它使用了 FlexibleScaler 类 灵活 py from sklearn preprocessing import MinMaxScaler S
python
Flask
heroku
AttributeError
joblib
Theano 中的名称冲突
我正在尝试在模块中导入 theano 但我得到了回溯 File media tarun 6A86CA8286CA4DEF develop pydy pydy codegen code py line 16 in
python
AttributeError
Theano
openpyxl+load_workbook+AttributeError:“NoneType”对象没有属性“date1904”
当我使用 openpyxl 加载 Excel 文件 xlsx 时 显示此错误 最后一个链接是示例 Excel 文件 从 openpyxl 导入 wb load workbook D develop workspace exman 测试样本
openpyxl
AttributeError
NoneType
当我尝试在字符串上使用 `json.load` 时,为什么会出现“'str' object has no attribute 'read'”? [复制]
这个问题在这里已经有答案了 在 Python 中我收到一个错误 Exception
python
python27
urllib2
AttributeError
“ReverseManyToOneDescriptor”对象没有属性“最新”
我在尝试运行函数时收到此错误 这是我的第一个 django python 项目 所以我对此没有经验 我已经搜索过此错误 但没有找到类似的内容 def getpriority chunks p 0 for chunk in chunks a
python
django
AttributeError
如何计算 pandas 系列中的特定单词?
我正在尝试计算 pandas DataFrame 中的关键字数量 如下所示 df pd read csv amazon baby csv selected words awesome great fantastic amazing love
python
python3x
pandas
AttributeError
DataFrame 对象没有属性“名称”
我目前有一个 Pandas DataFrame 列表 我试图对每个列表元素 即列表中包含的每个 DataFrame 执行操作 然后将该 DataFrame 保存到 CSV 文件 我分配了一个name属性到每个 DataFrame 但我意识到
python
pandas
DataFrame
AttributeError
AttributeError:“TimedeltaProperties”对象没有属性“分钟”
我有一个看起来像这样的数据框 df output date time 2020 02 28 00 30 45 2020 02 28 00 30 45 2020 03 09 00 21 06 2020 03 09 00 21 06 2020
python
pandas
AttributeError
pythondatetime
timedelta
为什么从实例获取类属性会引发 AttributeError?
通常 您可以从该类的实例访问常规类属性 字段 然而 当尝试访问一个类时property 会引发 AttributeError 为什么实例看不到类对象的属性 class Meta type property def cls prop cls
python
class
properties
AttributeError
metaclass
如何检查一个对象是否具有属性?
如何检查一个对象是否具有某些属性 例如 gt gt gt a SomeClass gt gt gt a property Traceback most recent call last File
python
class
object
attributes
AttributeError
从 CSV 文件创建 Networkx 图表
我正在尝试构建一个 NetworkX 社交网络图CSV file https github com MelissaLaurino DolphinSocialNetwork Laurino blob master test csv 我正在使用
python
python3x
networkx
AttributeError
属性错误:“NoneType”对象没有属性“parent”
from urllib request import urlopen from bs4 import BeautifulSoup html urlopen http www pythonscraping com pages page3 ht
python
webscraping
beautifulsoup
urllib
AttributeError
AttributeError:'list'对象没有属性'split'
Using Python 2 7 3 1 我不明白我的编码有什么问题 我收到此错误 AttributeError list object has no attribute split 这是我的代码 myList hello myList s
python
python27
split
AttributeError
关于字符串操作的基本 Python 问题:示例:string.lowercase
所以我尝试运行它 但它出错了 我需要帮助了解问题所在 我真的很感谢任何帮助 我正在学习麻省理工学院的开放课程编程简介 words GreatTimes words lowercase 我收到此错误 AttributeError str ob
python
string
operations
AttributeError
Python属性错误:类型对象'_socketobject'没有属性'gethostbyname'
我正在尝试在我的程序中执行此操作 dest socket gethostbyname host 我已经包括了这一行 from socket import 在文件的开头 我收到此错误 属性错误 类型对象 socketobject 没有属性 g
python
AttributeError
gethostbyname
AttributeError:模块“scipy.sparse”没有属性“coo_array”
我的 Jupyter Notebook 中出现此错误 使用 conda 而不是 pip 解决此问题的最佳方法是什么 我尝试过conda upgrade all这似乎不起作用 The scipy sparse array函数是在 v1 8 中
jupyternotebook
Anaconda
jupyter
conda
AttributeError
模块上的 __getattr__
如何实现相当于 getattr 在一个类上 在一个模块上 Example 当调用模块的静态定义属性中不存在的函数时 我希望在该模块中创建类的实例 并使用与模块上的属性查找失败相同的名称调用其方法 class A object def sal
python
module
python3x
getattr
AttributeError
networkx 有向图属性错误 self._succ
Context 我正在尝试运行另一位研究人员的代码 它描述了湾区道路网络的交通模型 该模型容易受到地震灾害的影响 我是 Python 新手 因此非常感谢您帮助调试以下错误 Issue 当我尝试按照文件中提供的示例数据运行代码时 按照自述文件
python
networkx
AttributeError
directedgraph
Python 套接字超时错误
我正在 Python 2 7 中编写一个非常简单的 udp 套接字连接 服务器端已启动并运行 我在客户端遇到麻烦 from socket import serverName 127 0 0 1 serverPort 5444 counter
python
attributes
timeout
AttributeError
与 os.scandir() 引发 AttributeError: __exit__
An AttributeError当我使用 python 文档中的示例代码时引发 here https docs python org 3 library os html os scandir 示例代码如下 with os scandir
python
python3x
AttributeError
scandir
1
2
3
4
5
6
»