Skip to content

Imagematch not compatible with newer python versions #1

@samgrund

Description

@samgrund

I tried running this with python3.12 and auto-resolved dependencies, but ran into a few issues:

  • sometrue has been deprecated from numpy. This can be resolved by simply replacing with np.any()
  • After matching images I get following error:
Traceback (most recent call last):
  File "/Users/samuel/Developer/imagematch/.venv/bin/ImageMatch", line 241, in <module>
    [observation.GoCatGo(Master,verb=verb,rev=rev,xwin=xwin,ywin=ywin,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/samuel/Developer/imagematch/.venv/lib/python3.12/site-packages/imagematch/ImageMatching_scalerot.py", line 1664, in GoCatGo
    self.mkmatch(preserve,quick_convolve=quick_convolve)
  File "/Users/samuel/Developer/imagematch/.venv/lib/python3.12/site-packages/imagematch/ImageMatching_scalerot.py", line 1374, in mkmatch
    imbases[y0:y1,x0:x1] = bases[imb1,::-1,::]
                           ~~~~~^^^^^^^^^^^^^^
IndexError: index 2 is out of bounds for axis 0 with size 2

I suspect this is because of broadcasting differences in newer versions of the different library dependencies.

Could you let me know exactly which python version and library versions you are able to use the code with? Thanks!

/ Samuel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions