WebSphere Configuration Comparison Tool (CCT) - Bug - ValueError: invalid literal for int() with base 10: 'x'

Home > Search

This assumes you have Installed WebSphere Configuration Comparison Tool (CCT) and created two or more dump files and you are attempting to create an HTML file using ConfigReport.py.

If the following traceback is displayed, this means that one of the configuration files contained an unexpected value.

Traceback (most recent call last):
  File "/path/to/ConfigReport.py", line 1835, in <module>
  File "/path/to/ConfigReport.py", line 1304 in ServerReport
  File "/path/to/ConfigReport.py", line 1014, in pmiServiceReportSrv
  File "/path/to/ConfigReport.py", line 710, in reportPMIStatProviders
  File "/path/to/ConfigUtils.py", line 763, in getPMICellValue
ValueError: invalid literal for int() with base 10: 'x'


In the getPMICellValue subroutine of the ConfigUtils.py script, there is a line that expects the enable variable to contain a value of [].

if enable='[]':


In the configuration files being used to create the HTML files, if the enable variable always has a value of [], then the above traceback would not occur.



However, the enable variable in the configuration files may contain a value of ,None or a string of intergers (both positive and negative), like this.



To address this, the ConfigUtils.py script can be updated with the following syntax.

if (enable=='[]' or enable==',None' or enable=='X' or re.match('^[0-9]', enable) or re.match('^-[0-9]', enable)): 


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter in the box below so that we can be sure you are a human.