Top "Nameerror" questions

The Ruby or Python `NameError` exception.

python NameError: name '<anything>' is not defined (but it is!)

Note: Solved. It turned out that I was importing a previous version of the same module. It is easy to …

python nameerror
Python: NameError: global name 'foobar' is not defined

I have written the following class: class myClass(object): def __init__(self): pass def foo(self, arg1, arg2): pp = foobar(…

python namespaces nameerror
input(): "NameError: name 'n' is not defined"

Ok, so I'm writing a grade checking code in python and my code is: unit3Done = str(input("Have you …

python terminal nameerror
Global name 'X' not defined

I looked in all kind of similar questions, but just couldn't find one that fitted my situation (or maybe there …

python global nameerror
Error when "import matplotlib.pyplot as plt"

I am very new to python. So, my problem might be too simple to be solved. But I cannot. Please …

python matplotlib module nameerror
Getting a name error when trying to input a string

import pickle import os import time class Person(): def __init__(self, number, address): self.number = number self.address = address def …

python python-3.x addressbook nameerror
NameError: global name 'NAME' is not defined

I have been having an interesting time building a little web scraper and I think I am doing something wrong …

python function web-scraping nameerror
NameError: name 'urlopen' is not defined

ok this is my last question so i finally found an api that prints good and that works but my …

python import nameerror
Timedelta is not defined

Below is the code I am working on. From what I can tell there is no issue, but when I …

python python-2.7 nameerror
NameError: name 'unicode' is not defined

fileMain = open("dictionary_15k.txt", "r") for line1 in fileMain: dictWords.append(unicode(line1.strip(), "utf-8")) When compiled it shows …

python unicode nameerror