[sage-support] Re: Problem with load in sagemath 9.0 on ubuntu 20.04

2020-10-19 Thread Matthias Koeppe
On Monday, October 19, 2020 at 10:36:05 AM UTC-7, Carl Eberhart wrote:
>
> I can't load a sage file in either the notebook or terminal version of Sage
>   File "", line 121
> if s<>_sage_const_0 :
>  ^
> SyntaxError: invalid syntax
>

The syntax <> for "not equal"  is no longer valid in Python 3. Use != 
instead.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/da812ca0-a143-4c8e-b2ee-62056a3e61a7o%40googlegroups.com.


Re: [sage-support] Problem with load in sagemath 9.0 on ubuntu 20.04

2020-10-19 Thread Dima Pasechnik
On Mon, Oct 19, 2020 at 6:36 PM Carl Eberhart  wrote:
>
> I can't load a sage file in either the notebook or terminal version of Sage
> Here is my last (of many) attempts.
> sage: load("/home/carl/Notebooks/quadrisection/orthogtraps19.sage")
> Traceback (most recent call last):
>
>   File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", 
> line 3331, in run_code
> exec(code_obj, self.user_global_ns, self.user_ns)
>
>   File "", line 1, in 
> load("/home/carl/Notebooks/quadrisection/orthogtraps19.sage")
>
>   File "sage/misc/persist.pyx", line 144, in sage.misc.persist.load 
> (build/cythonized/sage/misc/persist.c:2538)
> sage.repl.load.load(filename, globals())
>
>   File "/usr/lib/python3/dist-packages/sage/repl/load.py", line 272, in load
> exec(preparse_file(f.read()) + "\n", globals)
>
>   File "", line 121
> if s<>_sage_const_0 :
>  ^
> SyntaxError: invalid syntax

it is certainly possible to create a (broken) Sage file that would not
work. Perhaps it's one of such errors?
Could you reproduce this on a file you are willing to post here?
E.g. something very short, preferably.


>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/33b51a9f-ca07-4c03-9d68-25fb085d6d14n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq3F_fctY%3DQ8K%2BS6bfC0mgrx4daCg8SoG%2BjD4me6xtQjYQ%40mail.gmail.com.


[sage-support] Problem with load in sagemath 9.0 on ubuntu 20.04

2020-10-19 Thread Carl Eberhart
I can't load a sage file in either the notebook or terminal version of Sage
Here is my last (of many) attempts.
sage: 
load("/home/carl/Notebooks/quadrisection/orthogtraps19.sage") 
Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", 
line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

  File "", line 1, in 
load("/home/carl/Notebooks/quadrisection/orthogtraps19.sage")

  File "sage/misc/persist.pyx", line 144, in sage.misc.persist.load 
(build/cythonized/sage/misc/persist.c:2538)
sage.repl.load.load(filename, globals())

  File "/usr/lib/python3/dist-packages/sage/repl/load.py", line 272, in load
exec(preparse_file(f.read()) + "\n", globals)

  File "", line 121
if s<>_sage_const_0 :
 ^
SyntaxError: invalid syntax

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/33b51a9f-ca07-4c03-9d68-25fb085d6d14n%40googlegroups.com.