Re: [Tutor] Weird Try..Except Error

2011-11-25 Thread Nikunj.Badjatya
, thts weird because I have set my Path variable with Pytho27 exe and lib. Which was causing the problem. Thanks Nikunj -Original Message- From: tutor-bounces+nikunj.badjatya=emc@python.org [mailto:tutor-bounces+nikunj.badjatya=emc@python.org] On Behalf Of Peter Otten Sent:

[Tutor] Weird Try..Except Error

2011-11-25 Thread Nikunj.Badjatya
Hi All, Please look at the snippet below. When I am running my module its giving me following error. Using : Python 2.7, windows Env. {{{ # User defined modules try: from scripts import precheck from scripts import input from scripts import validate from scripts import logsetup

Re: [Tutor] How to get module name from ImportError

2011-11-20 Thread Nikunj.Badjatya
Exactly ! Thanks a lot. From: Christian Witts [mailto:cwi...@compuscan.co.za] Sent: Monday, November 21, 2011 11:36 AM To: Badjatya, Nikunj Cc: tutor@python.org Subject: Re: [Tutor] How to get module name from ImportError On 2011/11/21 07:54 AM, nikunj.badja...@emc.com

[Tutor] How to get module name from ImportError

2011-11-20 Thread Nikunj.Badjatya
Hi All, Please look at the following snippet. {{{ # User defined modules try: from scripts import precheck from scripts import validate from scripts import constants except ImportError: print("ERROR: One of the modules (..scripts/precheck.py, validate.py, constants) is not presen

Re: [Tutor] ProgressBar - Python and Powershell

2011-11-20 Thread Nikunj.Badjatya
Thanks for the reply Steve. I mean, the installer as a sole is single threaded. They way to implement progressbar may turn it to multithreaded. Anyways, I have posted the problem in pyhton-list ml. Thanks Nikunj -Original Message- From: tutor-bounces+nikunj.badjatya=emc@python.org

Re: [Tutor] ProgressBar - Python and Powershell

2011-11-20 Thread Nikunj.Badjatya
Can anyone throw some light on this please. ! ? From: tutor-bounces+nikunj.badjatya=emc@python.org [mailto:tutor-bounces+nikunj.badjatya=emc@python.org] On Behalf Of nikunj.badja...@emc.com Sent: Thursday, November 17, 2011 4:21 PM To: tutor@python.org Subject: [Tutor] ProgressBar

[Tutor] ProgressBar - Python and Powershell

2011-11-17 Thread Nikunj.Badjatya
Hi All, I am using Python 2.7, windows Env. I have an Installer written in Python(45%) and Powershell(55%) which is used to install Virtual Machines at specific locations. It is single threaded. I am trying to implement a ProgressBar for this installer. So that the user will come to know the p