google-code-export / mycheckpoint

Automatically exported from code.google.com/p/mycheckpoint
1 stars 3 forks source link

AttributeError: 'array.array' object has no attribute 'replace' #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Startup http mode
2. browse to page
3. crash

What is the expected output? What do you see instead?
Exception happened during processing of request from ('10.11.1.1', 59995)
Traceback (most recent call last):
  File "/usr/lib64/python2.4/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
  File "/usr/lib64/python2.4/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.4/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python2.4/SocketServer.py", line 521, in __init__
    self.handle()
  File "/usr/lib64/python2.4/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/lib64/python2.4/BaseHTTPServer.py", line 310, in handle_one_request
    method()
  File "/usr/local/bin/mycheckpoint", line 4730, in do_GET
    html = http_embed_code(html, '<div class="header">', html_embed)
  File "/usr/local/bin/mycheckpoint", line 4535, in http_embed_code
    html = html.replace(anchor, "%s%s" % (anchor, code))
AttributeError: 'array.array' object has no attribute 'replace'

What is the output when running with the "--verbose --debug" options?
[root@mon001 ~]# /usr/local/bin/mycheckpoint http --verbose --debug
-- mycheckpoint rev 208, build 201011041330. Copyright (c) 2009-2010 by Shlomi 
Noach
-- database is mycheckpoint
-- Will not monitor the database
read databases
started httpserver on port 12306...
----------------------------------------
Exception happened during processing of request from ('10.11.1.1', 60042)
Traceback (most recent call last):
  File "/usr/lib64/python2.4/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
  File "/usr/lib64/python2.4/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.4/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python2.4/SocketServer.py", line 521, in __init__
    self.handle()
  File "/usr/lib64/python2.4/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/lib64/python2.4/BaseHTTPServer.py", line 310, in handle_one_request
    method()
  File "/usr/local/bin/mycheckpoint", line 4730, in do_GET
    html = http_embed_code(html, '<div class="header">', html_embed)
  File "/usr/local/bin/mycheckpoint", line 4535, in http_embed_code
    html = html.replace(anchor, "%s%s" % (anchor, code))
AttributeError: 'array.array' object has no attribute 'replace'
----------------------------------------

What version of the mycheckpoint are you using? mycheckpoint rev 208, build 
201011041330
What version of the MySQL are you using? (SELECT VERSION()) 5.0.77
On what operating system? CentOS 5

Please provide any additional information below.

Original issue reported on code.google.com by kor...@gmail.com on 23 Feb 2012 at 3:14

GoogleCodeExporter commented 9 years ago
Thank you. Just got another identical report today (weird coincidence). Will 
check this out.

Original comment by shlomi.n...@gmail.com on 23 Feb 2012 at 1:35

GoogleCodeExporter commented 9 years ago
Changing the mycheckpoint to use python 2.6 over 2.4 fixes the issue, so it's 
likely related to that.

Original comment by kor...@gmail.com on 28 Feb 2012 at 6:31