Ask Your Question
1

What does the [ File " " , Line 1, in < module > ] error mean?

asked 2019-02-04 17:14:04 +0100

mehr gravatar image

updated 2019-02-05 09:28:39 +0100

I entered:

e, s, t= var('e s t')

and Sage returned

File " " , Line 1, in <module>

what does it mean and how can I correct it?

edit retag flag offensive close merge delete

Comments

Welcome to Sage and to Ask Sage!

slelievre gravatar imageslelievre ( 2019-02-04 17:26:10 +0100 )edit

I can not reproduce your problem, perhaps did you type a special character instead of a space somewhere. Try to retype everything, and do not put any space before your command.

tmonteil gravatar imagetmonteil ( 2019-02-04 17:26:15 +0100 )edit

What operating system? What version of Sage? How was it installed? How are you using it: terminal, Jupyter notebook, other? What is the complete error message?

slelievre gravatar imageslelievre ( 2019-02-04 17:27:51 +0100 )edit

thank you @slelievre and @tmonteil . I use it in Oracle VM VirtualBox. I wanted to paste the codes and the errors here but it could not be pasted and I do not know why!!!!!!!! Do you know how it works? Is there another way of "copping and pasting"?

mehr gravatar imagemehr ( 2019-02-05 08:00:53 +0100 )edit

Maybe try a screenshot instead. Please also answer the other questions of @slelievre, so that you can be helped.

rburing gravatar imagerburing ( 2019-02-05 08:18:41 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2019-02-05 21:00:00 +0100

FrédéricC gravatar image

This looks like the error that appears when calling "var" inside python, not inside sage..

edit flag offensive delete link more

Comments

As Frédéric suggests, you need to run Sage and not Python. If you are using the terminal, run sage; if you are using the SageNB notebook, select Sage mode.

slelievre gravatar imageslelievre ( 2019-02-05 23:01:11 +0100 )edit

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: 2019-02-04 17:13:07 +0100

Seen: 272 times

Last updated: Feb 05 '19