Category "attributeerror"

AttributeError: 'NoneType' object has no attribute '_with_attr' - Python running tests with pytest

My environment is : Python 3.9.9 Pytest 6.2.5 Brownie 1.17.1 I'm working on the test_fund_me.py from Patrick Collins' Smart Contract tutorial on Youtube; at thi

use function to the items in list

originally, beaker is instance and the function below is possible. beaker.replace(z=10) I made a list of beakers bk = [beaker1, beaker2, beaker3] and I want al

WinAppDriver & Python error: AttributeError: 'dict' object has no attribute 'click'

I have a mini project that needs to automate tasks on GUI windows app using Python. While trying to find a solution I found WinAppDriver which is Selenium-like.

AttributeError: 'Model' object has no attribute '_distribution_strategy'

I'm trying to train a UNet, but for some reason I get the following error: Traceback (most recent call last): File "<ipython-input-54-b56497e81356>", l

AttributeError: 'TimedeltaProperties' object has no attribute 'minute'

I have a dataframe that looks like this 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-

Backtrader issue - optstrategy AttributeError: module 'collections' has no attribute 'Iterable'

I'm trying to optimize my strategy on Backtrader with python but keeps getting this error and i can't find anything on the web showing why I'm getting it. My co

AttributeError: 'PosixPath' object has no attribute 'read_text' while building heroku app

I am getting AttributeError: 'PosixPath' object has no attribute 'read_text' when trying to deploy a django app to heroku. The problem occurs when pip is instal

How can I get the difference between two month-year dates in streamlit?

Here's the thing, I'm building a streamlit app to get the cohorts data. Just like explained here: https://towardsdatascience.com/a-step-by-step-introduction-to-

AttributeError: 'function' object has no attribute 'drop'

When I run Amy2 = Amy1.drop(columns = ['측정소명', '측정소코드']) print(Amy2.shape) Amy2.head() I get t

AttributeError: expected a callback function (and optionally one or two strings) as argument(s)

I'm new to Python and was trying to do some import and export scripting in Blender 2.43(which uses Python 2.4). I had a simple script: import Blender import flt

attributeError: 'list' object has no attribute.....

I am getting attributeError, but I don't understand.... class User(): def __init__(self, first, last, age): self.first = first self.last

AttributeError: 'super' object has no attribute 'word_weighting'

I have a super class FTM: class FTM: def __init__(self,word_weighting = 'normal'): self.word_weighting = word_weighting def get_sparse_glob

How to fix "AttributeError: type object has no attribute" in python?

I am adding some code to the preset code to check the time availability, which is if the meeting time can fit into the proposed time schedule. However, I keep g

AttributeError: 'Series' object has no attribute 'reshape'

I'm using sci-kit learn linear regression algorithm. While scaling Y target feature with: Ys = scaler.fit_transform(Y) I got ValueError: Expected 2D arr

Module 'xml.dom' has no attribute 'Node'

I wanted to use the module xml in Python 3.7, however i am getting the following error : Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32

Vypython: AttributeError: 'box' object has no attribute 'idx'

I am new to vpython and trying to learn. However, right after installing the module with "pip install vpython" and making a python file that contains this : fro

Why Python 3.6.1 throws AttributeError: module 'enum' has no attribute 'IntFlag'?

I just installed Python 3.6.1 for MacOS X When I attempt to run the Console(or run anything with Python3), this error is thrown: AttributeError: module 'enu

Flask Blueprint AttributeError: 'module' object has no attribute 'name' error

My API is being built to allow developers to extend it's functionality. My plan is to do this by providing an "extensions" directory where they can drop in Blue