Forum Thread: Need Help to a Python Error

C:\Users\sebastian\Desktop>e.py
Traceback (most recent call last):
File "C:\Users\sebastian\Desktop\e.py", line 233, in <module>
ads = e.getremainingads()
File "C:\Users\sebastian\Desktop\e.py", line 155, in getremainingads
url = "https://www.eovendo.com/Home/GetUserAdInfo?userFirstName="+self.first
name+"&="+str(int(round(time.time() 1000)))
AttributeError: 'Eovendo' object has no attribute 'firstname'

What shall I do to fix this?

2 Responses

First, if you want us to help you with your program errors, we need to see the code. Post the code with your question.

Second, it seems you are referencing an attribute (self.firstname) that doesn't exist in this object. Are you sure that 'firstname' is the right name for the attribute? Maybe is a typo.

Anyway, try to read your code and look yourself if this attribute really exists in this object/class.

From what I can tell, you have a class named Eovendo, and you've attempted to call self.firstname out of _init_. But it threw an error because self.firstname isn't there. Sygma is right, for help troubleshooting code, we need to see it.

-Defalt

Share Your Thoughts

  • Hot
  • Active