error: expected first parameter to be a hash table

19 views
Skip to first unread message

Federico Galetto

unread,
Jun 24, 2025, 1:48:17 PMJun 24
to Macaulay2
Hello.

I am trying to install one of my packages from a local file and I am having some issues. The offending lines are:

action = method(TypicalValue=>Action,
    Options=>{Sub=>true,Semidirect=>(bracketize,identity)})

action(ChainComplex,List,List,ZZ) := ActionOnComplex => op -> (C,l,l0,i) -> (
........

The error is:

error: expected first parameter to be a hash table

Sorry for the limited context, but I do not understand what the problem might be. Any thoughts?

Thank you,
Fred

Mahrud Sayrafi

unread,
Jun 24, 2025, 6:21:19 PMJun 24
to maca...@googlegroups.com
The first parameter, ChainComplex, is no longer exported from Core, so if your package depends on it you must add "OldChainComplexes" to the PackageExports list, or you can transition to using the Complex type and add "Complexes" to that list instead.

Mahrud

--
You received this message because you are subscribed to the Google Groups "Macaulay2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macaulay2+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/macaulay2/1d59ce6c-609d-4b9c-a104-7641c0d124ffn%40googlegroups.com.

Federico Galetto

unread,
Jun 24, 2025, 7:19:26 PMJun 24
to Macaulay2
Great, thank you so much! Exporting "Complexes" and changing all instances of ChainComplex to Complex did the trick.
Reply all
Reply to author
Forward
0 new messages