[OpenMadrigal-developers] Madrigal patch for SRI
William Rideout
brideout at haystack.mit.edu
Thu Jan 15 11:17:57 EST 2004
Angela,
As promised, here's the patch that should make your global search
function work correctly. Here's how to install it:
1. Copy the attached file SRI_patch.tar to $MADROOT
2. cd $MADROOT
3. tar -xf SRI_patch.tar
4. make -f Makefile.gnu madrec
5. make -f Makefile.gnu binary
6. cd $MADROOT/source/madpy
7. /usr/bin/python setup.py install
This should make the global search work correctly. Please email me when
its done so I can check.
Technical discussion:
There were actually two problems that I corrected:
1. The python method os.spawnlp uses the $PATH variable to execute a
process even when its passed a full path to the executable (which I
didn't realize). So even though I was passing it "/usr/bin/python", it
was running a different version of python when it was kicking off a
background job to produce the global search report. This lead to the
"madrigal.metadata not found" error. I changed os.spawnlp to os.spawnl,
which will not try to use the $PATH variable, but instead insists on a
full path to the executable. This was changed in the file report.py,
and is the reason you ran /usr/bin/python setup.py install in step 7.
2. Cycle marks: We assumed cycle marks (Cedar parameter 95) in a file
always would go in sequence, and I used to abort if I found an out of
order cycle mark. SRI clearly uses this parameter differently, so I
changed the C engine to simply ignore out of order cycle marks. This is
why you rebuilt and re-installed the C madrec library in steps 4 and 5.
Both these changes have been checked into CVS and will be part of any
future release, so they are not SRI specific.
Bill
Angela Li wrote:
> [Wed Jan 14 19:07:58 2004] [error] [client 192.52.65.66] Problem found
> with cycle numbers: Success, referer:
> http://transport.sri.com/madrigal/cgi-bin/GetEmailFromUser?callingpage=madSearch&
>
--
Bill Rideout
MIT Haystack Observatory
Email: brideout at haystack.mit.edu
Phone: 781 981-5624
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SRI_patch.tar
Type: application/x-tar
Size: 286720 bytes
Desc: not available
Url : http://www.haystack.mit.edu/pipermail/openmadrigal-developers/attachments/20040115/c95a3489/SRI_patch.tar
More information about the OpenMadrigal-developers
mailing list