Symbol conflict upon package install

12 views
Skip to first unread message

Federico Galetto

unread,
Dec 18, 2025, 3:38:23 PM (10 days ago) Dec 18
to Macaulay2
Hello M2 community,

I am making some changes to my BettiCharacters package which exports the symbol "Labels". When I try to install the package, I get the following error which I have not encountered before.

stdio:1:14:(3): error: can't convert symbol 'Labels' to external string because it is shadowed by 'Labels' and there is no synonym
/usr/share/Macaulay2/SimplicialComplexes/Code.m2:551:33-551:39: here is the first use of 'Labels'
null: here is the first use of 'Labels'

Any suggestion on how to resolve this?

Thank you,
Fred

Doug Torrance

unread,
Dec 19, 2025, 2:13:20 PM (9 days ago) Dec 19
to Macaulay2
Have you added SimplicialComplexes (or another package that depends on it) to PackageImports?  I was able to reproduce the error when I did that.

If that's the case, then instead of exporting "Labels" inside "export", you can use "exportFrom", e.g.,:

exportFrom(SimplicialComplexes, "Labels")

Federico Galetto

unread,
Dec 20, 2025, 10:07:05 AM (8 days ago) Dec 20
to Macaulay2
Spot on! Thank you, Doug.

I started importing Permutations, which exports Posets, which exports SimplicialComplexes. I would not have figured this one out by myself!

Cheers,
Fred

Reply all
Reply to author
Forward
0 new messages