Groups 187 of 99+ julia-users › MethodError closest candidate is same as no matching method method 5 posts by 2 authors michael Jun 12 I am using a fork of Nemo I modified to support a fork of FLINT so I could use the function snf_with_transform. The Julia script I'm using works great in some cases. I'm scheduling it with Slurm and using ClusterManagers and addprocs_slurm. The scripts work when I request one node and 24 tasks and use addprocs, but not addprocs_slurm. I am trying to use more than one node and addprocs_slurm works when I request two nodes and two tasks. I'm not sure at how many tasks it stops working, but seemingly somewhere between 2 and 24 I get a strange method error that doesn't make any sense. MethodError: `snf_with_transform` has no method matching snf_with_transform ::Nemo.fmpz_mat Closest candidates are: snf_with_transform ::Nemo.fmpz_mat Does anyone know why I would get this or seen anything like this before? Toivo Henningsson Jun 14 Could it be that you happened to reload Nemo after using importing it? This kind of thing can happen when there are two live instances of the same module and your code happens to combine types functions from both. 2 0 This message has been deleted. michael Jun 15 That would almost definitely be it. I had been using everywhere using Nemo as a hacky way of dealing with types not being defined on other processes. I've read the documentation where it gives the example DummyModule and talks about the scope but I've never really grasped the correct way to create an object of custom type on multiples processes. If I wanted to have an object S of type MatrixSpace on all processes it seems like it should be something like for i 1:nprocs S RemoteRef i put! S, MatrixSpace ZZ, 3, 3 end and then I could use S inside an parallel loop? I'm sure something with my syntax is off but is that the correct idea or am I off-base? On Tuesday, June 14, 2016 at 5:46:50 AM UTC-5, Toivo Henningsson wrote: Could it be that you happened to reload Nemo after using importing it? This kind of thing can happen when there are two live instances of the same module and your code happens to combine types functions from both. 0 0 michael Jun 24 I finally realized what I should have done and felt like an idiot for taking so long on this. S MatrixSpace ZZ, 3, 3 eval everywhere S $S 0 0