id summary reporter owner description type status priority milestone component version severity resolution keywords cc 5555 Traceback in pct2rgb.py reffettc warmerdam "When running pct2rgb.py on the attached file, the following Python traceback is triggered: Traceback (most recent call last): File ""./pct2rgb.py"", line 133, in entry = ct.GetColorEntry(i) File ""/usr/lib64/python2.6/site-packages/GDAL-1.11.0-py2.6-linux-x86_64.egg/osgeo/gdal.py"", line 1342, in GetColorEntry return _gdal.ColorTable.GetColorEntry(self, *args) SystemError: error return without exception set This appears to be related to line 125 of pct2rgb.py, which sets ct_size as max(256, ct.GetCount()). I suspect that my image file has fewer than 256 colors in the color table, which is triggering the traceback, but I can't be certain of it. I changed that line to min(256, ct.GetCount()) and it works right, though I see that that line was changed in this version specifically to allow more than 256 colors." defect closed normal 1.11.1 Utilities 1.11.0 normal fixed pct2rgb