Opened 10 years ago
Closed 10 years ago
#5561 closed defect (invalid)
pct2rgb.py: Traceback when reading ECRG images
Reported by: | reffettc | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Utilities | Version: | 1.11.0 |
Severity: | normal | Keywords: | pct2rgb |
Cc: |
Description
pct2rgb.py throws the following error: Traceback (most recent call last):
File "/usr/local/bin/pct2rgb.py", line 125, in <module>
ct_size = ct.GetCount()
AttributeError: 'NoneType' object has no attribute 'GetCount'
Presumably, GetRasterColorTable is not finding anything and returning None. This could be an issue with my install, since I had some trouble setting up JPEG2k support (I am using openjpeg 2.0.0, compiled from source). The images can be read with gdalinfo, so it is not an image corruption problem, but could be missing data in the images I was given. This issue exists in 1.11.0, both with and without the patch for issue #5555. An image which triggers this traceback is attached.
Attachments (1)
Change History (2)
by , 10 years ago
Attachment: | 00000008cu00g3.es1 added |
---|
comment:1 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is already a 3 band R,G,B image. So it is expected that pct2rgb.py will not work on it. Perhaps a more helpful message could be issued.
ECRG image which triggers the traceback