Skip to content
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

Error when running go script #5

Open
qkgia opened this issue Sep 16, 2022 · 2 comments
Open

Error when running go script #5

qkgia opened this issue Sep 16, 2022 · 2 comments

Comments

@qkgia
Copy link

qkgia commented Sep 16, 2022

Dear authors,

I got the following error when running
go run scripts/preprocess-matches.go mot17 /home/ubuntu/data/

/home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:16:2: cannot use rect (type rtreego.Rect) as type *rtreego.Rect in return argument /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:38:52: cannot use RtreegoRect(rect) (type *rtreego.Rect) as type rtreego.Rect in argument to rtree.tree.SearchIntersect /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:41:25: impossible type assertion: *edgeSpatial does not implement rtreego.Spatial (wrong type for Bounds method) have Bounds() *rtreego.Rect want Bounds() rtreego.Rect /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:49:33: cannot use edgeSpatial literal (type *edgeSpatial) as type rtreego.Spatial in argument to rtree.Insert: *edgeSpatial does not implement rtreego.Spatial (wrong type for Bounds method) have Bounds() *rtreego.Rect want Bounds() rtreego.Rect

Thanks

@fedyhajali
Copy link

I had the same error, has a solution been found by anyone?
@uakfdotb Could you help us ?

@uakfdotb
Copy link
Member

uakfdotb commented Oct 11, 2022

It may be due to new version of github.com/dhconnelly/rtreego with different API. If you go to your GOPATH and then src/github.com/dhconnelly/rtreego/ then you can run git checkout v1.1.0 and it should work. Alternatively you can use a go.mod file to specify the version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants