Closed dpmayerUSGS closed 3 years ago
David, thanks. I put a fix in https://github.com/NeoGeographyToolkit/StereoPipeline/commit/4416fe53bb7fbeb246202d14889b1c5ddbbde3ae which will hopefully work with both Python 2 and 3. Seems to work based on a quick test, and if tonight's regression agrees, it will be part of tomorrow's build.
It appears that a few Python scripts in ASP use the
basestring
built-in abstract type. This was removed upon the transition from Python 2 to 3, and users are supposed to usestr
instead.The use of
basestring
inparallel_stereo
caused the script to fail with an error when I ran the following command:The error message is
I'm running Python version 3.8.3. I've found the bug in both the latest 2.7.0 release and the daily build from 14 October 2020.
When I replace
basestring
withstr
on the following line,parallel_stereo
runs as expected: https://github.com/NeoGeographyToolkit/StereoPipeline/blob/3a2b03cebd8373da37fa28cb2da4f7e177e8093a/src/asp/Tools/parallel_stereo#L784A quick search reveals
basestring
is also present inasp_geo_utils.py
andasp_string_utils.py
. It looks like it occurs as part of a function to provide Python 2 and 3 compatibility inasp_string_utils.py
, but the occurrence inasp_geo_utils.py
could also throw an error.I'm surprised I haven't run into this issue before running ASP and Python 3.