Opened 7 years ago

Closed 5 years ago

#6239 closed defect (worksforme)

gdal_calc error with 64 bit python 3.43, Python int too large to convert to C long

Reported by: osgeoap Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords: gdal_calc, 64 bit incompatability
Cc:

Description (last modified by osgeoap)

Traceback (most recent call last):

File "C:\p\app1\lib\gdal\gdal_calc.py", line 329, in <module>

main()

File "C:\p\app1\lib\gdal\gdal_calc.py", line 326, in main

doit(opts, args)

File "C:\p\app1\lib\gdal\gdal_calc.py", line 173, in doit

for i in range(1,allBandsCount+1):

OverflowError: Python int too large to convert to C long

Change History (3)

comment:1 by osgeoap, 7 years ago

Description: modified (diff)
Summary: gdal_calc error with 64 bit python 3.43gdal_calc error with 64 bit python 3.43, Python int too large to convert to C long

comment:2 by Even Rouault, 7 years ago

can you add a print(allBoundsCount, type(allBoundsCount)) statement before line 173 ?

comment:3 by Even Rouault, 5 years ago

Resolution: worksforme
Status: newclosed

Closing due to lack of feedback from reporter

Note: See TracTickets for help on using tickets.