Re: [web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-31 Thread Janath
Excellent! it works... When web2py is started in python shell, PSSE sees the initialisation commands from the python shell and it accepts it! On Thursday, May 31, 2012 6:55:39 PM UTC-5, howesc wrote: > > i start we2py with: > > python2.5 web2py.py -a > > note that i have python2.5 on my path

Re: [web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-31 Thread Christian Foster Howes
i start we2py with: python2.5 web2py.py -a note that i have python2.5 on my path. i'm also running the source distribution. is that what you needed to get the python version for web2py? cfh On 5/31/12 16:23 , Janath wrote: Thank you for the reply. I am on doing last method of your

[web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-31 Thread Janath
Thank you for the reply. I am on doing last method of your list. “just need to run web2py using the version of python that the PSSE lib requires (i use web2py on python2.5 This api needs it to be run in python 2.5 ( It doesn’t work for other versions of python I have tested for 2

[web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-31 Thread howesc
i don't know anything about the PSSE system, but i'm confused. is there a PSSE server that you communicate with over a socket to make the API calls? the traditional API model is that there is a long running "server" process, and the client (in this case the web2py server) connects to some sock

[web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-29 Thread Janath
trying to be more specific :) I am trying to see if I can start a python 2.5 shell (from within web2py) and execute some commands to receive the results back to web2py. is there any way of doing that, or should I drop that idea. If it sounds not possible at this time with web2py, or if it takes

[web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-25 Thread Janath
I am afraid I was unable capture the stack. any clue as to how I can run a python process and keep communicating with it during execution of web2py forms. If so I can send and receive the commands and data to webpy. Thank you, Janath On Wednesday, May 23, 2012 4:13:23 PM UTC-5, Derek wrote:

[web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-23 Thread Derek
Then it is an unhandled exception. Which one? Run it in debug mode and see if you can get the stack trace. On Wednesday, May 23, 2012 10:50:41 AM UTC-7, Janath wrote: > > when following runs at the initialisation, even the web2py server goes > down. the line in the bold face, tries to initialise

[web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-23 Thread Janath
when following runs at the initialisation, even the web2py server goes down. the line in the bold face, tries to initialise psse and make trouble. for me it seems, that psse needs the exact version (which is 2.5) to run the api commands. (I am not sure whether it checks the registry entry for p

[web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-23 Thread Massimo Di Pierro
Can you point us to some code? On Tuesday, 22 May 2012 21:07:37 UTC-5, Janath wrote: > > I have written python scripts to automate PSSE (Siemens power system > simulation tool) using the pythonAPI provided. > > I can run them using the gui I have made for python 2.5. > > Psse 32 needs the exact