M2 icon indicating copy to clipboard operation
M2 copied to clipboard

strange error message when installing older package

Open mikestillman opened this issue 1 year ago • 11 comments

I am trying to resurrect some older packages to place into M2. The package format for this package is likely no longer correct (I'm not sure of this yet). But I get the following when trying to install:

i1 : installPackage "TowerRings"
stdio:1:1:(3): error: makeDocumentTag: package cannot be determined: (adjustComputation,Computation)

There is no adjustComputation method in this package.

I'm not yet sure what the problem is.

Along the way, I am getting a few other error messages I don't understand. When I switch to 1.24.01-dirty.... (pretty much the current development branch) from version 1.23, and try to start M2, I get the following error message. I had removed the local end encap directories in the Application Support Macaulay2 directory. Perhaps this should be another issue, not sure yet.

i1 : restart
Macaulay2, version 1.24.05-154-g97d787b49-dirty (development)
with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems, Isomorphism, LLLBases, MinimalPrimes, OnlineLookup,
               PrimaryDecomposition, ReesAlgebra, Saturation, TangentCone, Truncations, Varieties
../../../../../M2-current-branches/M2-development/M2/Macaulay2/m2/installPackage.m2:333:44:(1):[10]: error: can't read directory '/Users/mike/Library/Application Support/Macaulay2/local/share/doc/Macaulay2/' : No such file or directory
../../../../../M2-current-branches/M2-development/M2/Macaulay2/m2/installPackage.m2:333:44:(1):[10]: --entering debugger (type help to see debugger commands)
../../../../../M2-current-branches/M2-development/M2/Macaulay2/m2/installPackage.m2:333:43-333:57: --source code:
                        contents := select(readDirectory docdir, fn -> fn != "." and fn != ".." );

After removing the local and encap subdirectories, it starts fine. @d-torrance did the structure of the directory change from 1.23 to 1.24?

Anyway, after doing this, I get the following:

i1 : needsPackage "TowerRings"

o1 = TowerRings

o1 : Package

i2 : installPackage "TowerRings"
stdio:2:1:(3): error: makeDocumentTag: package cannot be determined: (adjustComputation,Computation)

@d-torrance @DanGrayson @mahrud Any ideas what the problem is? I'll keep looking at it, but at the least, we probably need better error messages.

mikestillman avatar Jun 16 '24 17:06 mikestillman