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

PackageManager appears to interfere with LoadPackage called in a loop #106

Closed
dimpase opened this issue Nov 4, 2022 · 2 comments
Closed

Comments

@dimpase
Copy link
Member

dimpase commented Nov 4, 2022

In a custom installation of GAP 4.12.1, I have a problem calling LoadAllPackages() (taken from gap-packages/crypting#21 (comment)):

A bit of debugging reveals the following:

gap> r:=RecNames( GAPInfo.PackagesInfo );
[ "autpgrp", "format", "repndecomp", "permut", "singular", "aclib", "alnuth", "atlasrep", "io", "autodoc", "cohomolo", "corelg", 
  "crime", "crisp", "crypting", "cryst", "crystcat", "ctbllib", "datastructures", "design", "digraphs", "factint", "fga", 
  "gapdoc", "gbnp", "genss", "grape", "guava", "hap", "hapcryst", "hecke", "images", "irredsol", "laguna", "liealgdb", "liepring", 
  "liering", "loops", "mapclass", "nq", "orb", "packagemanager", "polenta", "polycyclic", "polymaking", "primgrp", "qpa", 
  "quagroup", "radiroot", "repsn", "resclasses", "semigroups", "sla", "smallgrp", "sonata", "sophus", "tomlib", "toric", 
  "transgrp", "utils" ]
gap> SetUserPreference("InfoPackageLoadingLevel", 4);
gap> for p in r do if not IsPackageLoaded(p) then LoadPackage(p); fi; od;
...
Loading  MapClass 1.4.6 (A Package For Mapping Class Orbit Computation)
by Adam James,
   Kay Magaard,
   Sergey Shpectorov (https://web.mat.bham.ac.uk/S.Shpectorov/index.html), and
   Helmut Volklein.
maintained by:
   Sergey Shpectorov (https://web.mat.bham.ac.uk/S.Shpectorov/index.html).
Homepage: https://gap-packages.github.io/MapClass
Report issues at https://github.com/gap-packages/MapClass/issues
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `Filename' on 2 arguments
The 1st argument is 'fail' which might point to an earlier problem
 at /home/scratch/scratch2/dimpase/sage/sagetrac-mirror/local/share/gap/lib/methsel2.g:249 called from
<function "HANDLE_METHOD_NOT_FOUND">( <arguments> )
 called from read-eval loop at /home/scratch/scratch2/dimpase/sage/sagetrac-mirror/local/lib/gap/pkg/packagemanager/gap/PackageManager.gd:295
type 'quit;' to quit to outer loop
brk> 

What is PackageManager doing here?

@antonio-rojas
Copy link

This is the same as #105

@dimpase
Copy link
Member Author

dimpase commented Nov 4, 2022

A very juicy bug indeed :-)

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