Ask Your Question
0

Why is .sage file not running from terminal on Ubuntu 20.04?

asked 2022-03-15 12:58:06 +0200

updated 2022-03-15 14:33:43 +0200

I have successfully run myFile.sage script file from terminal in Ubuntu 14.04, just typing the command sage myFile.sage, but this is not working on Ubuntu 20.04 Terminal. Shows error : ModuleNotFoundError: No module named 'sage'. Sage is installed in OS. How can I solve this issue?

edit retag flag offensive close merge delete

Comments

HI @Md Kutubuddin Sardar

What is the SageMath version ?

First of all could you try the simple sage command cd sage then ./sage and tell us what happens?

ortollj gravatar imageortollj ( 2022-03-15 13:54:02 +0200 )edit

I am using Sage 9.0. I have used your code cd sage, it gives

 hp_user@aa-hp-laptop:~$ cd sage
bash: cd: sage: No such file or directory

and ./sage gives:

hp_user@aa-hp-laptop:~$ ./sage
bash: ./sage: No such file or directory
Md Kutubuddin Sardar gravatar imageMd Kutubuddin Sardar ( 2022-03-15 14:29:49 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-03-15 15:35:56 +0200

eric_g gravatar image

updated 2022-03-15 15:37:41 +0200

The error message that you get is the same as that discussed in https://ask.sagemath.org/question/34416. So maybe your issue has to do with a path added in your .bashrc file by Anaconda...

You may also consider to install the latest stable version of SageMath (9.5), instead of the pretty old 9.0 version which is shipped with Ubuntu 20.04. To do so, remove the Ubuntu package sagemathand follow https://sagemanifolds.obspm.fr/instal....

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-03-15 12:58:06 +0200

Seen: 305 times

Last updated: Mar 15 '22