Linked Questions
221 questions linked to/from Why do I get AttributeError: 'NoneType' object has no attribute 'something'?
1
vote
1
answer
10k
views
How to fix: AttributeError: 'NoneType' object has no attribute 'start'? [duplicate]
i have a problem with my python code. The problem is this line:
match = re.search(pattern, bytes).start()
but i get this error...i hope you can help me.
1
vote
1
answer
10k
views
Pytube error. AttributeError: 'NoneType' object has no attribute 'download' [duplicate]
I'm working on a Python YouTube downloader, a very simple task. I used pytube for a while and never encountered this error. My code is the following:
from pytube import YouTube
import pytube
yt_title =...
-1
votes
2
answers
8k
views
AttributeError: 'NoneType' object has no attribute 'channels' [duplicate]
Hi I'm having an issue with a module for my Discord bot. I'm getting AttributeError: 'NoneType' object has no attribute 'channels' I'm not sure way it's throwing out this error:
Here is what I'm ...
0
votes
1
answer
9k
views
AttributeError: 'NoneType' object has no attribute 'execute' [duplicate]
I am trying to run a python script that logs into Amazon Redshift DB and then execute a SQL command. I use a tool called Airflow for workflow management. When running the below code, I am able to ...
0
votes
1
answer
7k
views
I'm Facing AttributeError: 'NoneType' object has no attribute 'split' in Python [duplicate]
I'm working on a Python project and encountering an AttributeError related to the 'split' method. Here's the relevant code snippet:
data = get_data_from_api()
for item in data:
name = item['name']
...
-1
votes
2
answers
5k
views
AttributeError: 'NoneType' object has no attribute 'copy' opencv error coming when running code [duplicate]
I am having an issue with this Python code:
Code And Other Things
The Error Is:
Traceback (most recent call last):
File "C:\Users\thaku\Desktop\projects\pythoncode-tutorials-master\machine-...
-2
votes
1
answer
6k
views
AttributeError: 'NoneType' object has no attribute 'config' [duplicate]
programm is working perfectly before defining the function problem is that it is not getting the value from the user input and showing it to me and then error is coming too.
from tkinter import *
...
0
votes
1
answer
5k
views
AttributeError: 'NoneType' object has no attribute 'split' in python when I rune my code [duplicate]
from microbit import *
import radio
radio.on()
radio.config(channel=8)
routing_table = { 'Alice': 8, 'Bob': 10, 'Charlie': 15 }
spy = 60
def forward_message(msg):
source, destination, payload =...
2
votes
1
answer
7k
views
'NoneType' object has no attribute 'get': AttributeError [duplicate]
I am getting error : 'NoneType' object has no attribute 'get': AttributeError. PLease help me to figure out.
File "/var/task/lambda_function.py", line 15, in lambda_handler
...
0
votes
2
answers
2k
views
How to handle a "Nonetype" error? [duplicate]
I'm writing a script that's supposed to remove duplicate entries. Some people in the data have entered in their name twice because they have two phone numbers, and because the phone number field was ...
0
votes
1
answer
3k
views
Python NoneType object has no attribute 'get' [duplicate]
Iam building a UI using mplayer_python.
When I try to get the metadata, sometimes the following error happens
title = metadata.get ('Title','' )
-> AttributeError: 'NoneType' has no attribute 'get'
...
1
vote
2
answers
2k
views
Python: 'NoneType' object is not subscriptable' error [duplicate]
I'm new to databases in Python, so to practice some key skills I'm building a login screen that writes usernames and hashed passwords to the database, and then checks the user's inputs against what's ...
0
votes
1
answer
3k
views
AttributeError: 'NoneType' object has no attribute 'text'. Web scraping indeed with Python [duplicate]
I'm not having any luck with the other question that is posted on this website.
My goal for this program is to scrape job postings from Indeed.com. I'm running into an attribute error. I don't know ...
0
votes
2
answers
2k
views
AttributeError: 'NoneType' object has no attribute 'flush' with pyinstaller [duplicate]
I've created a python method to print data to screen and in a file:
def printf(handler, string):
print(string)
sys.stdout.flush()
if handler is not None:
handler.write(str(string))...
0
votes
1
answer
3k
views
AttributeError: 'NoneType' object has no attribute 'drop' [duplicate]
I'm trying to remove some columns from my dataframe, however I'm just getting this error no matter how hard I try to figure out how to fix it. Could you help me?
drop_cols = ['ISO3A código economía ...