[AG-TECH] AG3.0.2 windows not working

Terry.Rankine at csiro.au Terry.Rankine at csiro.au
Mon Jun 25 01:19:14 CDT 2007


Hi

The error relates directly to launching a process with a space in the
path.

The fix is quite simple - when you build the paths for vic and rat it
the 
"Application Data\AccessGrid3\local_services\VideoProducerService" path
- use quotes.


So for vic in videoconsumerservice.py
self.executable = '"%s"' %os.path.join(os.getcwd(),vic)

And likewise for rat in audioservice.py
self.executable = '"%s"' % os.path.join(os.getcwd(), rat)
self.rat_media = '"%s"' % os.path.join(os.getcwd(), ratmedia) 
self.rat_ui = '"%s"' % os.path.join(os.getcwd(), ratui)
self.rat_kill = '"%s"' % os.path.join(os.getcwd(), ratkill)


I am pretty sure you can do this in linux/unix - as I think the shell
will just drop the "" for you.

As far as strings and paths go - if you use the os.path operations -
just remember they will strip any protection for spaces you had in
place.

Terry Rankine



-----Original Message-----
From: owner-ag-tech at mcs.anl.gov [mailto:owner-ag-tech at mcs.anl.gov] On
Behalf Of Rankine, Terry (E&M, Kensington)
Sent: Thursday, 21 June 2007 1:52 PM
To: ag-tech at mcs.anl.gov
Subject: [AG-TECH] AG3.0.2 windows not working

Hi guys

I just downloaded AG3.0.2 and the dependancies on the page.

I have installed it but no vic and rat popup on connect, and I cant get
them to start at all from the gui.

Looking at the logs in C:\Documents and Settings\ran110\Application
Data\AccessGrid3\Logs\

C:\Documents and Settings\ran110\Application
Data\AccessGrid3\local_services\VideoConsumerService\
The files exist and can be run manually

The error looks like a string is not getting substituted properly - but
I don't know.

Can you please help me

Terry Rankine


06/21/07 13:43:05 5220 Toolkit     videoconsumerservice.py:150 INFO
Starting VideoConsumerService
06/21/07 13:43:05 5220 Toolkit     videoconsumerservice.py:151 INFO
executable = C:\Documents and Settings\ran110\Application
Data\AccessGrid3\local_services\VideoConsumerService\vic.exe
06/21/07 13:43:05 5220 Toolkit     videoconsumerservice.py:152 INFO
options = ['-C', u'Argonne Lobby', '-t', '127', u'-XrtpName=Terry
Rankine', u'-XrtpEmail=terry.rankine at csiro.au', '-XrecvOnly=1',
'-XsiteDropTime=5', '-Xgeometry=500x500', '-Xtile=2',
u'224.2.224.15/20002']
06/21/07 13:43:05 5220 ProcessManager     processmanager.py:62 DEBUG
Creating process: C:\Documents and Settings\ran110\Application
Data\AccessGrid3\local_services\VideoConsumerService\vic.exe -C "Argonne
Lobby" -t 127 "-XrtpName=Terry Rankine"
-XrtpEmail=terry.rankine at csiro.au -XrecvOnly=1 -XsiteDropTime=5
-Xgeometry=500x500 -Xtile=2 224.2.224.15/20002
06/21/07 13:43:05 5220 ProcessManager     processmanager.py:100 ERROR
process creation failed: (193, 'CreateProcess', '%1 is not a valid Win32
application.')
Traceback (most recent call last):
  File
"C:\Python23\lib\site-packages\AccessGrid3\AccessGrid\Platform\win32\Pro
cessManager.py", line 73, in StartProcess
    startup_info)
error: (193, 'CreateProcess', '%1 is not a valid Win32 application.')




More information about the ag-tech mailing list