Ask Your Question

temp_user's profile - activity

2021-07-28 17:16:52 +0100 received badge  Popular Question (source)
2021-01-11 09:57:03 +0100 received badge  Famous Question (source)
2021-01-11 09:57:03 +0100 received badge  Notable Question (source)
2016-06-28 12:38:13 +0100 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 11:08:33 +0100 received badge  Student (source)
2016-06-28 11:03:26 +0100 asked a question Error on %attach for import __future__

Hi,

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/file.sageTVxNnD.py", 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-30 00:53:08 +0100 received badge  Popular Question (source)
2015-05-06 06:56:43 +0100 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 18:04:16 +0100 asked a question Cannot login into ask.sagemath and recovery does not work.

Hi,

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