Closed schrauf closed 3 years ago
For what it's worth, I don't get the error if I trim the query to just one process from the presentation:
q = @query TrainDB() (im_train, nn_trained) where
(nn, im_train, nn_trained, md) begin
train(nn, im_train, nn_trained, md)
end
Also, I'm using a fresh environment with just AlgebraicRelations v0.2.0 installed in Julia v1.5.1:
] activate .
] add AlgebraicRelations
Yes that error message is combing from deep inside Catlab.jl. We have to make error messages better in general. I think @bosonbaas can help you out in the meantime.
It looks like the whole file functor.jl
, which is where the error is coming from, is going to get nuked in the hierarchical_queries
branch. So, Andrew can confirm, but maybe this problem will be fixed when that branch is merged?
Thanks for catching that, it looks like I haven't updated the code in functor.jl
with the syntax changes in Catlab.
As epatters said, functor.jl
will be removed when the hierarchical_queries
branch is merged in, but I'll go ahead and update the syntax in functor.jl
on Monday so that it can be working before that merge happens.
This issue should be fixed by PR #16. I have merged this PR and registered a new minor version of AlgebraicRelations (v0.2.1), so updating the library should fix this issue for you. Thanks again for catching that bug!
That's fantastic, it works perfectly now! Thanks for the early fix.
I wonder why this wasn't caught by the "Generate SQL Queries" testset in test/Queries.jl
.
Glad to hear it!
After doing some investigation, it looks like it was getting caught by that test case, but the Github CI hadn't been run on master since the change in Catlab (and the branch I've been working on has completely removed the functor.jl
file)
Hi, thanks for the package, it looks great and I'm very enthusiastic to use it.
I'm just having problems when I build the queries with the macro, I get a method error which I can't humanly parse.
I was following this blog post, but I get the same error when running the code from the ml demo: