Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [attributeerror]

Use this with questions involving the Python `AttributeError` exception. Use the more general "Python" tag as well when using this tag.

attributeerror
-1 votes
0 answers
18 views

i need help solving this attribute error in pygames when im creating a character, i got from following a pygame platformer tutorial

# creating the player class class Player(pygame.sprite.Sprite): COLOR = (255, 0, 0) def __init__(self, x, y, width, height): self.rect = pygame.Rect(x, y, width, height) ...
DragPVP's user avatar
0 votes
0 answers
26 views

I am trying to copy/paste a named Excel range to another range in the same worksheet using Python xlwings

I am trying to copy a named range in Excel (ex. "Question_1") and paste it into an empty area of the same worksheet, using Python (xlwings). I am getting an attribute error which mentions &...
Mark Barry's user avatar
0 votes
0 answers
31 views

Error while converting my .py file to .exe file with pyinstaller

I'm trying to convert my .py file to .exe file with PyInstaller. The .py file, which worked perfectly on Jupyter lab, is not working perfectly in the exe file. This part of the code is causing the ...
조연서's user avatar
-1 votes
1 answer
35 views

Linked Lists: AttributeError: 'int' object has no attribute 'next' [duplicate]

class ListNode: def __init__(self, val=0, next=None) -> None: self.val = val self.next = next def list_link(nums): dummy = ListNode() curr = dummy for i in ...
Varun Vishwa's user avatar
-1 votes
1 answer
59 views

Attribute error 'str' object has no attribute 'create_habit_window'

I am trying to make a habit tracker and create a window called create_habit_window with Customtkinter. but its keeps sayin that in create_habit self.create_habit_window = customtkinter.CTk() ^^...
Kael Scanes's user avatar
0 votes
0 answers
54 views

How do I fix an 'AttributeError: 'Sequential' object has no attribute '_get_save_spec' in Python

This code produces error 'AttributeError: 'Sequential' object has no attribute '_get_save_spec': import tensorflow as tf model = tf.keras.models.load_model("../mymodel.keras") model.compile(...
Sandun Jayasooriya's user avatar
-1 votes
1 answer
77 views

loading Yolov9 model trained on custom dataset: AttributeError: 'str' object has no attribute 'shape'

I have trained a yolov9 model on custom dataset for instance segmentation, now I want to get segmentation area after segmentation. An output like the given below image but for each and every object ...
Plutus's user avatar
  • 47
0 votes
0 answers
28 views

Python Packages . Not installing on IntelliJ Idea (Community Edition) - Attribute Error

I was on IntelliJ Idea Community 2022.2, with the JetBrains' Python Community Edition plugin. I wanted to install the mysql-connector-python package. I tried it from the IDE's own Python Package ...
ItsSK23's user avatar
-1 votes
1 answer
80 views

what should i do with this error ? AttributeError: 'NoneType' object has no attribute 'sequence'

I am trying to make a discord bot via python however I encounter about 100 lines of error in my terminal the last line of which says: AttributeError: 'NoneType' object has no attribute 'sequence' ...
Artin .A's user avatar
-2 votes
1 answer
27 views

Command' object has no attribute 'Context' in discord.py

I am creating a bot in discord.py, following a tutorial (here) My code is working fine until here with commands description that look like this : ` @bot.command() async def commands(ctx : commands....
Daeltam's user avatar
1 vote
1 answer
46 views

Attribute error when running tuner.search (keras tuner)

I have an issue when I run the function tuner.search from the keras-tuner library. I am trying to tune my hyperparameters but when I call this function, it stops after 3 tries and in each try it is ...
kyasz's user avatar
  • 11
1 vote
0 answers
28 views

Resolving TensorFlow AttributeError: Missing 'register_load_context_function'

AttributeError: module 'tensorflow._api.v2.compat.v2.internal' has no attribute 'register_load_context_function'. Did you mean: 'register_call_context_function'? I am done with update tensorflow and ...
ROHAN PALKAR's user avatar
0 votes
3 answers
32 views

Can't get my flask app to work with MongoDB, for authorization

I'm currently developing a flask web application in pycharm. The app itself works properly but when I tried using MongoDB to store and collect user ids for "log in and register" purpose, it ...
Yashvir K's user avatar
-2 votes
2 answers
67 views

AttributeError: 'list' object has no attribute 'end_stop'

For a school project we have to make a working rail-road system. One part of the system is a Board_passengers function. I have the following Classes: class Station: def __init__(self, name, ...
JasperJ1998's user avatar
0 votes
0 answers
9 views

In my deep face recognition project i am encountering an error saying: "AttributeError: 'BinaryCrossentropy' object has no attribute '_id'"

@tf.function def train_step(batch): # Record all of our operations with tf.GradientTape() as tape: # Get anchor and positive/negative image X = batch[:2] # Get label y = batch[2] ...
Ranjan U's user avatar

15 30 50 per page
1
2 3 4 5
173