Something wrong kept happening , pls help

173 views
Skip to first unread message

Cassidy Taylor

unread,
Mar 27, 2024, 5:12:00 AM3/27/24
to sage-devel
Everytime I tried to download Sagemath in the conda environment I created on Ubuntu , the terminal kept showing this error(fig.1) . It shows that there is something wrong with the download of gmp-6.2.1(fig.2) , seemed like it is my C++ compiler not available. 
微信图片_20240327153329.png

微信图片_20240327153257.png

​BUT I have searched for so many days and so many ways , and I have checked that my C++ compiler is already downloaded(fig.3) god knows how many times, besides I also downloaded gmp-6.2.1.tar.zst on my ubuntu system. 

微信图片_20240327153307.png
Pls reply ASAP , this really set back my postgraduate career...
Looking forward to your answering , thank you !

Dima Pasechnik

unread,
Mar 27, 2024, 5:42:28 AM3/27/24
to sage-...@googlegroups.com
Hello,

your installation shows sage 9.6, but conda carries sage 10.2 now:

That's one you should be getting if you follow

Could it be that your conda environment needs an update?

HTH
Dima



--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/e6cad138-72a3-4406-b951-6b5ec4c40ed8n%40googlegroups.com.

Dima Pasechnik

unread,
Mar 28, 2024, 2:27:42 PM3/28/24
to Cassidy Taylor, sage-devel


On Thu, Mar 28, 2024 at 2:08 PM Cassidy Taylor <luzha...@gmail.com> wrote:
Happy to hear you back! 😄
I have two questions want to ask now , first one is why I couldnt see my reply on Google Group sage-devel in our conversation? Seems like I can only start a conversation but cannot reply anyone?🤔

you can use either a desktop/laptop browser to assess Google Group interface - there you can reply.

Or you can use email interface  - sending emails and replies to sage-...@googlegroups.com.
(I cc this message there)



And the second one is kinda interesting which is the code I want to reproduce named AgentNet is "another" AgentNet , it is launched in 2023 on ICLR with full name "AGENT-BASED GRAPH NEURAL NETWORKS" and the author is Karolis Martinkus, the screenshot of this code is fig.1.

it seems to be using Sage in a very restricted way - using it to  generate some particular graphs.
You cam remove the dependence on sage with a little work (adapting Sage's code to using networkx's graphs instead)

Otherwise you could try removing fixed version constraints in AgentNet's environment.yml, in hope that then Conda will be able to resolve the
environment.

HTH
Dima
 

Dima Pasechnik <dim...@gmail.com> 于2024年3月28日周四 20:34写道:


On Thu, Mar 28, 2024 at 3:54 AM Cassidy Taylor <luzha...@gmail.com> wrote:
Thank you for your reply! 
However I cant change or update my conda environment cause the code I want to reproduce (which is called  AgentNet) have already  specified restrictions on conda environment and other required library versions.
But I wil try to download sage 10.2 on my conda-11.3 environment.

AgentNet has not been updated for 7 years, and its GitHub repo is "archived"
Getting it to work in 2024 might need more work - or, perhaps, using a different tool all together.


 
Anyway, thank you again and wish you have a great day!

Cassidy Taylor

unread,
Mar 28, 2024, 11:50:23 PM3/28/24
to sage-devel

Thank you for your reply!
However I cant change or update my conda environment cause the code I want to replicate (which called AgentNet)  have already specified restrictions on conda environment and other needed library versions such as pytorch 1.11.0.
But I will try to download sage 10.2 on my present conda 11.3 environment.
Anyway , thank you again and wish you have a great day!
在2024年3月27日星期三 UTC+8 17:42:28<Dima Pasechnik> 写道:

Dima Pasechnik

unread,
Mar 29, 2024, 6:44:37 AM3/29/24
to sage-devel
On Friday, March 29, 2024 at 3:50:23 AM UTC Cassidy Taylor wrote:

Thank you for your reply!
However I cant change or update my conda environment cause the code I want to replicate (which called AgentNet)  have already specified restrictions on conda environment and other needed library versions such as pytorch 1.11.0.
But I will try to download sage 10.2 on my present conda 11.3 environment.


I am not entirely sure what the problem is. I am not sure why you ended up with errors building GMP.
Please explain exactly what you did.
I suppose you
1) installed Conda (on a Linux box or a Linux VM)
3) ran "conda env create -f environment.yml"

None of this should involve any compilation - as it's meant to use pre-built Conda packages.

Cassidy Taylor

unread,
Apr 9, 2024, 12:09:57 AM4/9/24
to sage-...@googlegroups.com
Hi , first I did run the command " conda env create -f environment.yml  ".
However maybe it is because I am in China which cannot directly access foreign websites (resolve this problem by change the source website to the mirror website) ,the download cannot be successful , so I decided to download the libraries one by one .When it comes to the last one --sage , the wrong I mentioned happened .
Good news is that my tutor did not require me to run this code successfully ,only to understand its theory is enough.
But I will still try to fix this problem cause sage is a quite important library as to GNN .
thank you for your reply!
Best wishes,
Lily

Dima Pasechnik <dim...@gmail.com> 于2024年3月29日周五 18:44写道:
Reply all
Reply to author
Forward
0 new messages