[Tutor] python interpreter vs bat file

Alan Gauld alan.gauld at btinternet.com
Sun Jul 19 08:18:08 CEST 2009


"Dinesh B Vadhia" <dineshbvadhia at hotmail.com> wrote

> Not much more information available.  
> Have a batch file (eg. 'test.bat') with entries:
>
> python "program a.py"
> python "program b.py"
> python "program c.py"
>
> One of the programs (eg. 'program c.py') fails with a 
> memory error when performing a pickle.dump:
>
> Traceback (most recent call last):
>  ...
> File "....py", line 176, in pickleObject
>     pickle.dump(self, f, 2)
> MemoryError
> 
> When the programs are run in the same order from the 
> Python interpreter there are no memory errors.  

Can you elaborate on how you run the programs. It looks like 
an environmental issue so we need to know exactly what 
you are doing.

How do you run the bat file?
How do you run the programs "from the Python interpreter"

Are you using Windows Explorer or a CMD wondow? 
or the Start->Run dialog etc?

Which folders are you starting from in each case?

> This has happened before and it seems odd behavior.

So how did you fix it before? 
I've never seen or heard of this before.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list