Ask Your Question
1

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

asked 2019-02-04 10:14:04 -0500

mehr gravatar image

updated 2019-02-05 02:28:39 -0500

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 10:26:10 -0500 )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 10:26:15 -0500 )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 10:27:51 -0500 )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 01:00:53 -0500 )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 01:18:41 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2019-02-05 14:00:00 -0500

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 16:01:11 -0500 )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 10:13:07 -0500

Seen: 87 times

Last updated: Feb 05