SupposeNot / RAMP

Research Assistant for Maps and Polytopes
4 stars 0 forks source link

Barry load bug #161

Closed SupposeNot closed 2 years ago

SupposeNot commented 2 years ago

Barry installed release 0.6.2b, and the following occurred during his session:

gap> # Gap is working;
gap> Order(Group((1,2,4)));
3
gap> LoadPackage("RAMP");
─────────────────────────────────────────────────────────────────────────────────────
Loading  GRAPE 4.8.3 (GRaph Algorithms using PErmutation groups)
by Leonard H. Soicher (http://www.maths.qmul.ac.uk/~lsoicher/).
Homepage: https://gap-packages.github.io/grape
Report issues at https://github.com/gap-packages/grape/issues
─────────────────────────────────────────────────────────────────────────────────────
Error, List Element: <list> must be a list (not the value 'fail')
not in any function at /opt/gap-4.11.1/pkg/RAMP-0.6.2b/lib/utils.gi:13
type 'quit;' to quit to outer loop
brk> quit;
gap> Cube(3);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `Cube' on 1 arguments at /opt/gap-4.11.1/lib/methsel2.g:249 called from
<function "HANDLE_METHOD_NOT_FOUND">( <arguments> )
 called from read-eval loop at *stdin*:4
type 'quit;' to quit to outer loop
brk> quit;
gap> LoadPackage("RAMP");
true
gap> # OK on the second attempt but:
gap> Cube(3);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `Cube' on 1 arguments at /opt/gap-4.11.1/lib/methsel2.g:249 called from
<function "HANDLE_METHOD_NOT_FOUND">( <arguments> )
 called from read-eval loop at *stdin*:6
type 'quit;' to quit to outer loop
brk> quit;
gap> ?cube
gap> # That seemd to work.
gap> quit;

I have a sneaking suspicion there may be a conflict between some of his existing functions that he autoloads, and something in the language of RAMP, but could also be something buggy about the version of GAP he's running or that he's on linux.

Will work with him on it.

CunningGabe commented 2 years ago

I think I see how to fix this - should be a quick fix I hope.

CunningGabe commented 2 years ago

OK, it might be fixed now in 4c98de09538fb548f6ca2d570a2e0be2535ffdc4. At least, I tried to address the loading error on line 13 of utils.gi. Can you have him try with this new version?

SupposeNot commented 2 years ago

What does the fix do?

CunningGabe commented 2 years ago

The error was on the definition of RampPath, which is used in spots where we want to load a file - RampPath was supposed to be a system-independent way of saying "this is where Ramp is". Turns out, that functionality already exists in GAP, and what I was using didn't work for Barry.

If he still has a problem, then it's probably related to the fact that the ramp folder is ramp-0.62-stuff. Ping me and I'll take another look.

SupposeNot commented 2 years ago

Update fixed problem.