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

Emergent v1.4.31 seems to break Leabra #30

Open
bdknguyen opened this issue May 2, 2024 · 0 comments
Open

Emergent v1.4.31 seems to break Leabra #30

bdknguyen opened this issue May 2, 2024 · 0 comments

Comments

@bdknguyen
Copy link

Hi there,

I'm currently setting up a new model in a separate directory outside the main Leabra folder. When I initially tried to compile it, I got these errors:

# github.com/emer/leabra/leabra
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:167:45: not enough arguments in call to ly.LeabraLay.UnitVal1D
        have (int, int)
        want (int, int, int)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:190:37: not enough arguments in call to ly.LeabraLay.UnitVal1D
        have (int, int)
        want (int, int, int)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:232:37: not enough arguments in call to ly.LeabraLay.UnitVal1D
        have (int, int)
        want (int, int, int)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:250:38: not enough arguments in call to ly.LeabraLay.UnitVal1D
        have (int, int)
        want (int, int, int)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:360:26: cannot use ly (variable of type *Layer) as emer.Layer value in argument to emer.SendNameTry: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:363:30: cannot use ly (variable of type *Layer) as emer.Layer value in argument to emer.SendNameTypeTry: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:366:26: cannot use ly (variable of type *Layer) as emer.Layer value in argument to emer.RecvNameTry: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:369:30: cannot use ly (variable of type *Layer) as emer.Layer value in argument to emer.RecvNameTypeTry: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\network.go:43:9: cannot use &Layer{} (value of type *Layer) as emer.Layer value in return statement: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\network.go:48:9: cannot use &Prjn{} (value of type *Prjn) as emer.Prjn value in return statement: *Prjn does not implement emer.Prjn (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\network.go:48:9: too many errors

The go.mod file that I initially generated set the required Emergent version to v1.4.31, but the compilation errors went away when I set it back to v1.3.53 (the version specified in the Leabra repository's go.mod file). This was just something I tried randomly, and I'm not sure why it worked.

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

1 participant