Ask Your Question
1

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

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

mehr gravatar image

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

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 +0200 )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 +0200 )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 +0200 )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 +0200 )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 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

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

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 +0200 )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 +0200

Seen: 223 times

Last updated: Feb 05 '19