Skip to content

findFeaturesSegment.py - not working under latest version of isis #5725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lwellerastro opened this issue Feb 6, 2025 · 1 comment · Fixed by #5768
Closed

findFeaturesSegment.py - not working under latest version of isis #5725

lwellerastro opened this issue Feb 6, 2025 · 1 comment · Fixed by #5768
Assignees
Labels
bug Something isn't working

Comments

@lwellerastro
Copy link
Contributor

lwellerastro commented Feb 6, 2025

ISIS version(s) affected: 9.0.0-RC2 on local vm

Description

findFeaturesSegment.py algorithm=fast/brief maxthreads=7 workdir=MyWorkDir match=../Lev1/M108313384RE.lev1.cub fromlist=M108313384RE_fromlist_ff.lis fastgeom=true geomtype=camera maxpoints=10000 epitolerance=9.0 ratio=0.9 hmgtolerance=9.0 filter=sobel networkid=M108313384RE pointid='M108313384RE_ff_?????' onet=M108313384RE_ff.net tolist=M108313384RE_cubes_ff.lis tonotmatched=M108313384RE_notmatched_ff.lis description='Create image-image control network' debug=true debuglog=M108313384RE_ff.log

Traceback (most recent call last):
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0-RC2/bin/findFeaturesSegment.py", line 19, in <module>
    import plio
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0-RC2/lib/python3.11/site-packages/plio/__init__.py", line 17, in <module>
    from . import io
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0-RC2/lib/python3.11/site-packages/plio/io/__init__.py", line 23, in <module>
    from . import io_controlnetwork
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0-RC2/lib/python3.11/site-packages/plio/io/io_controlnetwork.py", line 10, in <module>
    from plio.io import ControlNetFileV0002_pb2 as cnf
  File "/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0-RC2/lib/python3.11/site-packages/plio/io/ControlNetFileV0002_pb2.py", line 9, in <module>
    from google.protobuf import runtime_version as _runtime_version
ImportError: cannot import name 'runtime_version' from 'google.protobuf' (/usgs/cpkgs/anaconda3_linux/envs/isis9.0.0-RC2/lib/python3.11/site-packages/google/protobuf/__init__.py)

Refer to similar posts (#5702) if data is needed.

This is a new post because the errors are somewhat different than under 9.0.0-RC1

@lwellerastro lwellerastro added the bug Something isn't working label Feb 6, 2025
@amystamile-usgs amystamile-usgs self-assigned this Apr 14, 2025
@amystamile-usgs amystamile-usgs moved this from Todo to In Progress in Astro Software Support Sprint Apr 14, 2025
@amystamile-usgs
Copy link
Contributor

Looks like there was an update to plio in November that generated new .proto files using protobuf version 5+. The Isis environment is only able to get to version 4.25 of protobuf due to other dependency restrictions. These errors are caused from the 4+ version of protobuf. Seems like there was a "workaround" with 9.0.0-RC1 in which a 5+ version of protobuf was installed through pip. I was able to do this for the RC2 as a quickfix to get around this error. But I am working on seeing if it is possible to install protobuf 5+ into isis or if we need to pin plio to version 1.5.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants