Top "Nameerror" questions

The Ruby or Python `NameError` exception.

Python NameError: global name 'assertEqual' is not defined

I'm following Learn Python the Hard Way and I'm on Exercise 47 - Automated Testing (http://learnpythonthehardway.org/book/ex47.html) …

python nameerror
NameError uninitialized constant Model::Object

I'm new to ruby on rails. Ihe error I have is NameError in ReviewsController#create uninitialized constant User::Review Extracted …

ruby-on-rails ruby devise nameerror uninitialized-constant
ActiveAdmin - uninitialized constant AdminUser

I'm getting an error while trying to run my app, having recently installed ActiveAdmin. It was working fine, but, after …

ruby-on-rails activeadmin nameerror
NameError: name 'ls' is not defined

I am running Windows 7 and just installed Python 2.7.4 and all I get are SyntaxError:'s. For example when I type: &…

python command-line nameerror
Getting the name which is not defined from NameError in python

As you know, if we simply do: >>> a > 0 Traceback (most recent call last): File "<pyshell#1&…

python exception-handling dynamic-data expression nameerror
Is there a python3 version of win32com?

Is there a python3 version of the win32com module? I am running python 3.4.4 and I tried installing the win32…

python python-3.x python-module win32com nameerror
NameError: global name 'PermissionError' is not defined (python 2.x)

The following line: except (IOError, PermissionError, FileNotFoundError) as e: Gives the following error message when I run it with python 2.75: …

python-3.x permissions python-2.x nameerror
Python: NameError: 'self' is not defined

I must be doing something stupid. I'm running this in Google App Engine: class MainHandler(webapp.RequestHandler): def render(self, …

python google-app-engine nameerror
NameError: name 'process' is not defined (python)

I have a python script which looks like: if options.benchmark == 'perlbench': process = Mybench.perlbench elif options.benchmark == 'bzip2': …

python nameerror
Python: NameError name '[input]' is not defined

I'm trying to make a simple little tool for converting inches to centimeters and am stuck at trying to take …

python undefined nameerror