LocalRings Package -- "No Method For Adjacent Objects" error

378 views
Skip to first unread message

ashvin.anand...@gmail.com

unread,
Jul 28, 2018, 8:28:47 AM7/28/18
to Macaulay2
When I run the following code (taken straight from the Macaulay2 webpage on the "LocalRings" package),

%macaulay2

needsPackage "LocalRings";
R = ZZ/32003[a..d];
I = monomialCurveIdeal(R,{1,3,4})
C = res I
M = ideal"a,b,c,d"; "maximal ideal at the origin";
P = ideal"a,b,c"; "prime ideal";
RM = localRing(R, M)

I get an error saying 

stdio:37:6:(3): error: no method for adjacent objects: -- localRing (of class Symbol) -- SPACE (R, ideal (a, b, c, d)) (of class Sequence)

I find more generally that whenever I try to use the localRing function, I get this error suggesting that Macaulay2 doesn't recognize the function. Does anyone know how to fix this error?

Daniel R. Grayson

unread,
Jul 28, 2018, 8:31:22 AM7/28/18
to Macaulay2
Could you run M2 with the -q option and show us the entire interaction?

Ashvin Swaminathan

unread,
Jul 28, 2018, 8:37:38 AM7/28/18
to maca...@googlegroups.com
I'm not really sure how to include the -q option in my code. Could you please tell me how to do that?

(I'm not using a command line; I'm just using the online CoCalc interface)

--
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 post to this group, send email to maca...@googlegroups.com.
Visit this group at https://groups.google.com/group/macaulay2.
For more options, visit https://groups.google.com/d/optout.

Mike Stillman

unread,
Jul 28, 2018, 9:11:40 AM7/28/18
to maca...@googlegroups.com
Is CoCalc using the latest version of M2?  The local rings package has recently been extended by Mahrud Sayrafi.  But I think that CoCalc is using M2 version 1.10, which doesn’t include the newest local rings code (if I recall correctly).

— Mike

ashvin.anand...@gmail.com

unread,
Jul 29, 2018, 8:36:51 AM7/29/18
to Macaulay2
Finally, I managed to install a copy of Macaulay2 on my computer, and the LocalRings package works just fine! I guess CoCalc is indeed using an old version of Macaulay2.

Thanks for all your help!
Ashvin

Daniel R. Grayson

unread,
Jul 29, 2018, 1:00:36 PM7/29/18
to Macaulay2
Yes, cocalc is using M2 1.10 still.


On Saturday, July 28, 2018 at 9:11:40 AM UTC-4, mike stillman wrote:
Is CoCalc using the latest version of M2?  The local rings package has recently been extended by Mahrud Sayrafi.  But I think that CoCalc is using M2 version 1.10, which doesn’t include the newest local rings code (if I recall correctly).

— Mike

On Jul 28, 2018, at 8:37 AM, Ashvin Swaminathan <ashvin.anand.swaminathan@gmail.com> wrote:

I'm not really sure how to include the -q option in my code. Could you please tell me how to do that?

(I'm not using a command line; I'm just using the online CoCalc interface)

On Sat, Jul 28, 2018 at 8:31 AM Daniel R. Grayson <danielrichardgrayson@gmail.com> wrote:
Could you run M2 with the -q option and show us the entire interaction?

On Saturday, July 28, 2018 at 8:28:47 AM UTC-4, ashvin.anand.swaminathan@gmail.com wrote:
When I run the following code (taken straight from the Macaulay2 webpage on the "LocalRings" package),

%macaulay2

needsPackage "LocalRings";
R = ZZ/32003[a..d];
I = monomialCurveIdeal(R,{1,3,4})
C = res I
M = ideal"a,b,c,d"; "maximal ideal at the origin";
P = ideal"a,b,c"; "prime ideal";
RM = localRing(R, M)

I get an error saying 

stdio:37:6:(3): error: no method for adjacent objects: -- localRing (of class Symbol) -- SPACE (R, ideal (a, b, c, d)) (of class Sequence)

I find more generally that whenever I try to use the localRing function, I get this error suggesting that Macaulay2 doesn't recognize the function. Does anyone know how to fix this error?

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to maca...@googlegroups.com.
Visit this group at https://groups.google.com/group/macaulay2.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages