Re: python code works in command line but not in django

2011-05-31 Thread bruno desthuilliers
On May 31, 4:06 pm, Kann wrote: > I am just new to programming and not quite familiar with pdb. But I > assume that this is what you are talking about: > > http://docs.python.org/library/pdb.html Yes, that's it. This and the logging module are tools that are really worth spending some time lea

Re: python code works in command line but not in django

2011-05-31 Thread Kann
I am just new to programming and not quite familiar with pdb. But I assume that this is what you are talking about: http://docs.python.org/library/pdb.html Perhaps, I will look into it. Thanks for your suggestions. :) Kann On May 31, 3:13 pm, bruno desthuilliers wrote: > On May 31, 12:25 pm,

Re: python code works in command line but not in django

2011-05-31 Thread bruno desthuilliers
On May 31, 12:25 pm, Kann wrote: > Hi Bruno, > > I tested with both system's python shell and the "manage.py shell", > and both of them also worked. The PNG file was created properly. Ok. > I also check the path returned from os.path.abspath() and both of them > are ok as well. Ok. > Now I am

Re: python code works in command line but not in django

2011-05-31 Thread Kann
Hi Bruno, I tested with both system's python shell and the "manage.py shell", and both of them also worked. The PNG file was created properly. I also check the path returned from os.path.abspath() and both of them are ok as well. Now I am testing using the Django embedded development server. Ka

Re: python code works in command line but not in django

2011-05-31 Thread bruno desthuilliers
On May 31, 11:29 am, Kann wrote: > Hi All, > > I apologize for now being specific enough. The java script s/script/application/ Please let's not confuse Java with javascript ;) > should read > files in "tmp/medusa" and use "Medusa.jar" as the referenced class to > run. The result of the script

Re: python code works in command line but not in django

2011-05-31 Thread Kann
Hi All, I apologize for now being specific enough. The java script should read files in "tmp/medusa" and use "Medusa.jar" as the referenced class to run. The result of the script should be a png image using data from files inside "tmp/medusa" I tested the java command via terminal and it worked f

Re: python code works in command line but not in django

2011-05-31 Thread Lucian Nicolescu
Hey Bruno, Sorry if I misunderstood the initial posting, please enlighten me/us with a solution for the problem. Lucian On Tue, May 31, 2011 at 11:48 AM, bruno desthuilliers wrote: > > On May 31, 10:32 am, Lucian Nicolescu wrote: >> I don't think there's any way this could work. > > Oh yes ? W

Re: python code works in command line but not in django

2011-05-31 Thread bruno desthuilliers
On May 31, 10:32 am, Lucian Nicolescu wrote: > I don't think there's any way this could work. Oh yes ? Why so ? > From what I can tell > Kann is trying to invoke the java interpreter ... Indeed. > but he does it on > the server, not on the user's machine And ? > - that's why it only works w

Re: python code works in command line but not in django

2011-05-31 Thread Lucian Nicolescu
I don't think there's any way this could work. From what I can tell Kann is trying to invoke the java interpreter ... but he does it on the server, not on the user's machine - that's why it only works when the two are the same. So he should try to invoke it somehow else, maybe embed it in a html p

Re: python code works in command line but not in django

2011-05-31 Thread bruno desthuilliers
On May 30, 3:54 pm, Kann wrote: > Dear all, > > I tried using python to execute some external java program in my code. > My problem is the os.system(cmd) was not working properly "not working properly" is possibly not the most informative description of your problem... What happens ? Get a trac