Ask Your Question

temp_user's profile - activity

2016-06-28 05:38:13 -0500 commented answer Error on %attach for import __future__

That's bad since it first takes a long while to load a bigger script and second there is no automatic reloading if I read the doc correctly. But it'll have to do now.

2016-06-28 04:08:33 -0500 received badge  Student (source)
2016-06-28 04:03:26 -0500 asked a question Error on %attach for import __future__


using sagemath version 7.0 and 7.2, I tried to attach a file with %attach file.sage. The first line in the file is

from __future__ import division

which results in

sage: %attach file.sage
File "/home/user/.sage/temp/host/25397/", line 6
from __future__ import division
SyntaxError: from __future__ imports must occur at the beginning of the file

The error message is modified to hide user/host/... info

There is a older question on ask.sagemath /question/9071/future-import-fails-in-loading-external-cython-file/ which is addressing the same problem from 2012 on SageMath version 5.0 but there is no answer. I'm baffled that the error occurs in line 6 since the import statement is in the first line in the attached file.

Any ideas how to fix this?

2015-09-29 17:53:08 -0500 received badge  Popular Question (source)
2015-05-05 23:56:43 -0500 commented question Cannot login into ask.sagemath and recovery does not work.

yeah, I checked. It worked for the newer account, the account with the non-google-adress did not work. Even after now several days, nothing in the regular inbox or the spam folder.

2015-05-04 11:04:16 -0500 asked a question Cannot login into ask.sagemath and recovery does not work.


I wanted to login today with OpenID with google and the website asked me to complete the registration. Blind as I was, I entered a new user name and therefore could't login into my old account. After some googling I couldn't even login into my new account. The old account was connected to an email adress which is not my google adress.

The problem now is, that the recovery function does not work for both accounts. Any ideas how to fix this problem? Thanks in advance