Ask Your Question
0

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

asked 3 years ago

Md Kutubuddin Sardar gravatar image

updated 3 years ago

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?

Preview: (hide)

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 ( 3 years ago )

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 ( 3 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 3 years ago

eric_g gravatar image

updated 3 years ago

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....

Preview: (hide)
link

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: 3 years ago

Seen: 708 times

Last updated: Mar 15 '22