Top "Nameerror" questions

The Ruby or Python `NameError` exception.

input() error - NameError: name '...' is not defined

I am getting an error when I try to run this simple script: input_variable = input ("Enter your name: ") print ("…

python python-2.7 input nameerror
Python NameError: name is not defined

I have a python script and I am receiving the following error: Traceback (most recent call last): File "C:\Users\…

python python-3.x nameerror
NameError: global name 'unicode' is not defined - in Python 3

I am trying to use a Python package called bidi. In a module in this package (algorithm.py) there are …

python unicode python-3.x nameerror bidi
python NameError: global name '__file__' is not defined

When I run this code in python 2.7, I get this error: Traceback (most recent call last): File "C:\Python26\Lib\…

python nameerror
python: NameError:global name '...‘ is not defined

in my code, I have: class A: def a(): ...... def b(): a() ...... b() Then the compiler will say "NameError: global …

python nameerror global-namespace
NameError: name 'self' is not defined

Why such structure class A: def __init__(self, a): self.a = a def p(self, b=self.a): print b …

python nameerror
NameError: name 'python' is not defined

Am encountering this error in Windows Command line,done a wide search but could not get a perfect answer.Please …

python nameerror
Python NameError: name 'include' is not defined

I'm currently developing a website with the framework Django (I'm very beginner), but I have a problem with Python: since …

python django nameerror
NameError: name 'pd' is not defined

I am attempting run in Jupyter import pandas as pd import matplotlib.pyplot as plt # plotting import numpy as np # …

pandas import nameerror
NameError: global name 'long' is not defined

I have a Python version 3.3.0 and I am not sure why it does not let me do long for b …

python-3.x long-integer nameerror