NameError help Programming Software Development by CelestialDog … i've spelt the name correctly i keep getting a NameError: main: [code] import os import os.path import shutil print…", line 15, in <module> pf = PathFinder.init() NameError: name 'PathFinder' is not defined I'm pretty sure i… NameError Programming Software Development by omni504 …;, line 1, in <module> percentage = (minute * 100) // 60 NameError: name 'minute' is not defined [/code] I just wanted to… NameError: global name 'pythoncom' is not defined Programming Software Development by pleasecompile …Community for guidance in resolving the following NameError. I have attached the import (OpenOPC for…: import OpenOPC opc = OpenOPC.client() produces this NameError: >>> import OpenOPC >>&…py", line 152, in __init__ pythoncom.CoInitialize() NameError: global name 'pythoncom' is not defined >… NameError for main and class fucntion Programming Software Development by Kirielson …;***", line 67, in <module> main(sys.argv) NameError: name 'main' is not defined [/ICODE] What would be the… cause of the NameError? I tried putting in the old_image variable as a global… Re: NameError: global name 'NewLang' is not defined Programming Software Development by Namibnat …;<stdin>", line 1, in <module> NameError: name 'x' is not defined >>>[/CODE] To…;<stdin>", line 1, in <module> NameError: name 'x' is not defined >>> globals()['x… Re: NameError for main and class fucntion Programming Software Development by Kirielson …", line 12, in <module> class lk(old_image): NameError: name 'old_image' is not defined [/ICODE] We want to modify… NameError: name 'guess' is not defined Programming Software Development by fongoos … above as the book says, I get the error [icode]NameError: name 'guess' is not defined[/icode] What Am I doing… NameError: global name 'NewLang' is not defined Programming Software Development by El Duke …, in OnBlipSubmitted newmsg = Trans.translate(message.encode('utf-8'), NewLang, '') NameError: global name 'NewLang' is not defined [/QUOTE] What should I… NameError:name 'app_lock' is not defined Programming Software Development by laithlaithlaith … to apply in my phone show me this message error. (NameError:name 'app_lock' is not defined). this is my code : [code… NameError: name 'GraphWin' is not defined Programming Software Development by goshiluvarchie …;module> win = GraphWin("My Robot", 1000,1000) NameError: name 'GraphWin' is not defined >>> It keeps… NameError trouble Programming Software Development by WigglesMcMuffin …/NetBeansProjects/creatureLists/src/Creatures.py", line 9, in Creature NameError: name 'false' is not defined In case it's important… Re: NameError trouble Programming Software Development by woooee …/NetBeansProjects/creatureLists/src/Creatures.py", line 9, in Creature NameError: name 'false' is not defined[/QUOTE] This says that line… "NameError: global name 'sessionid' is not defined" Programming Software Development by deb0and Not sure what this error means "NameError: global name 'sessionid' is not defined" Any help would … Re: "NameError: global name 'sessionid' is not defined" Programming Software Development by deb0and [QUOTE=pyTony;1600746]And you fixed line 41?[/QUOTE] No i get a different error File "./trix.py", line 55, in find_sessionid print "[*] Session ID is %s" % sessionid NameError: global name 'sessionid' is not defined NameError: global name 'BLAHBLAHBLAH' is not defined Programming Software Development by NeoSyn …(self): self.rect.top = -960 Error Console: seaworld = seaWorld.SeaWorld() NameError: global name 'seaWorld is not defined. NameError: name 'b' is not defined Programming Software Development by deepthought … then tried to run it I got the error "NameError: name 'b' is not defined". I have looked on… Re: NameError help Programming Software Development by jlm699 You never imported your class... as I'm assuming that 'PathFinder' is not in your Main.py ... let's say it's in PF.py .... [icode]from PF import PathFinder[/icode] That should do it Re: NameError help Programming Software Development by CelestialDog Hi Jlm, thanks for taking the time to reply. I tried importing my class using this.... import PathFinder ... But all i get is an error message telling me that the module is not callable. Also i did not realize that I had to import my classes even if their in the same directory as the Main application file. Re: NameError help Programming Software Development by jlm699 Please read my last post. Re: NameError help Programming Software Development by CelestialDog It worked ! Thank you very much jlm, your help is very much appreciated :D Re: NameError Programming Software Development by Stefano Mtangoo In python, the interpreter will only be meek if you define a variable before you use it. It seems you try to use the variable before defining it. This is where the py Interpreter becomes harsh! Re: NameError Programming Software Development by omni504 Oh ok, so the interperter doesn't know what "minute" is. And i guess the book didn't really define it yet either, just gotta read on. Thx I'm new, and an NameError Programming Software Development by kessenchu …, setwidth): self.__width = setwidth print cosas(self,width) python says: NameError: name '_setWidth' is not define I've been trying to…;prueba.py", line 15, in cosas return cosas2(width) NameError: global name 'cosas2' is not defined Thank you for your… Re: I'm new, and an NameError Programming Software Development by jlm699 … will demonstrate the code tags with an example of a NameError, so that hopefully you understand what it means: >>…;interactive input>", line 1, in <module> NameError: name 'foo' is not defined >>> foo = 'bar… Re: I'm new, and an NameError Programming Software Development by jlm699 … "prueba.py", line 33, in Rect @_setWidth.setter NameError: name '_setWidth' is not defined [/code] My question is, what… _setWidth before you've defined it! That is why the NameError occurs. Re: I'm new, and an NameError Programming Software Development by kessenchu … "prueba.py", line 33, in Rect @_setWidth.setter NameError: name '_setWidth' is not defined [/code] The code have nothing… Re: Importing scipy -> NameError: name 'lib' is not defined Programming Software Development by zeeshan595 …;, line 11, in <module> File = open(test2.py) NameError: name 'test2' is not defined[/CODE] OR [CODE]Traceback (most… <module> File = open("test2.py"/r) NameError: name 'r' is not defined[/CODE] Please Help!! I am… Re: Importing scipy -> NameError: name 'lib' is not defined Programming Software Development by polygon …;, line 11, in <module> File = open(test2.py) NameError: name 'test2' is not defined[/CODE][/QUOTE] Try [CODE]fh… <module> File = open("test2.py"/r) NameError: name 'r' is not defined[/CODE] Please Help!! I am… Importing scipy -> NameError: name 'lib' is not defined Programming Software Development by saba_newbie …-packages\scipy\__init__.py", line 33, in ? del lib NameError: name 'lib' is not defined [/code] Please help me :sad… Error msg "NameError: global name 'atomName' is not defined" when calling class fnct. Programming Software Development by jorgejch …/cartesian_zmatrix/Atom.py", line 22, in getAtomName return atomName NameError: global name 'atomName' is not defined [/CODE] when calling the…