<div>When I am running the script from the command line, its working fine but when I am trying to run from Pythonwin, its giving me error.</div>
<div> </div>
<div>Can anyone explain the reason?</div>
<div> </div>
<div>Regards,</div>
<div>Asrarahmed<br><br> </div>
<div><span class="gmail_quote">On 11/5/06, <b class="gmail_sendername">Kent Johnson</b> <<a href="mailto:kent37@tds.net">kent37@tds.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Dustin J. Mitchell wrote:<br>> Asrarahmed Kadri wrote:<br>>> "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py",
<br>>> line 310, in RunScript<br>>> exec codeObject in __main__.__dict__<br>>> File "C:\project stuff-programs\Scriptdate.py", line 18, in ?<br>>> t1 = my_version_datecheck.dateCheck(dt1,0)
<br>>> File "my_version_datecheck.py", line 38, in dateCheck<br>>> import traceback<br>>> NameError: global name 'traceback' is not defined<br>><br>> This tells you everything you need to know right here.
<br>><br>> What version of Python are you using? I know traceback existed at least in<br>> 2.3. Might be time to consider an upgrade.<br><br>If traceback was not a valid module name the import would raise<br>ImportError, not NameError.
<br><br>Something strange is going on here; have you shown us all the code?<br><br>Kent<br><br>_______________________________________________<br>Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br><br clear="all"><br>-- <br>To HIM you shall return.