Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / for your information: potential small bug in ProcUtils.httpdl() (locked) (1442 hits)
By gert Date 2012-01-03 17:53 Edited 2012-01-03 18:01
Dear,

While doing some tests with getanc.py I observed following messages in stderr:

Traceback (most recent call last):
  File "/usr/local/seadas6.3/run/scripts/getanc.py", line 148, in <module>
    g.findweb()
  File "/usr/local/seadas6.3/run/scripts/modules/anc_utils.py", line 285, in findweb
    if re.search('^\d{.*}$', self.server_file):
  File "/usr/lib64/python2.6/re.py", line 142, in search
    return _compile(pattern, flags).search(string)
TypeError: expected string or buffer


The errors apparently were produced when ProcUtils.httpdl() was failing to reach the query server, returning the number 110. And re.search (in anc_utils.findweb(), line 285) expects a string to be returned. So I guess the return code 110 needs to be casted to a string, either in httpdl() or at reception side.

Just wanted to let you know.

Cheers,

Gert
By @sean Date 2012-01-03 18:04
Gert,

Thanks.  We already found that one and a fix has been implemented that will eventually get out in an updated.

Don't hesitate to let us know if you find any more issues!
Regards,
Sean
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / for your information: potential small bug in ProcUtils.httpdl() (locked) (1442 hits)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 27 November 2007
Privacy Policy and Important Notices NASA logo