Another option might have been to preparse separately (using "sage 
-preparse matp11n2.sage" at the shell prompt) and then load the resulting 
Python file.

  John

On Friday, April 2, 2021 at 12:02:38 PM UTC-7 Luis Finotti wrote:

> The solution I found was to increase the recursion limit: I did 
>
> sys.setrecursionlimit(4500)
>
> It was enough for this.
> On Friday, April 2, 2021 at 7:51:42 AM UTC-4 Luis Finotti wrote:
>
>> I produced a very large text file (139MB) containing some input for Sage.
>>
>> The problem is that when I try to load it, I get:
>>
>>
>> sage: load('matp11n2.sage') 
>>
>> --------------------------------------------------------------------------- 
>> RecursionError                            Traceback (most recent call 
>> last) 
>> <ipython-input-2-92a91ed98544> in <module> 
>> ----> 1 load('matp11n2.sage') 
>>
>> ~/src/sage-9.2/local/lib/python3.8/site-packages/sage/misc/persist.pyx 
>> in sage.misc.persist.load (build/cythonized/sage/misc/persis
>> t.c:2558)() 
>>    141 
>>    142     if sage.repl.load.is_loadable_filename(filename): 
>> --> 143         sage.repl.load.load(filename, globals()) 
>>    144         return 
>>    145 
>>
>> ~/src/sage-9.2/local/lib/python3.8/site-packages/sage/repl/load.py in 
>> load(filename, globals, attach) 
>>    270                 add_attached_file(fpath) 
>>    271             with open(fpath) as f: 
>> --> 272                 exec(preparse_file(f.read()) + "\n", globals) 
>>    273     elif ext == '.spyx' or ext == '.pyx': 
>>    274         if attach: 
>>
>> RecursionError: maximum recursion depth exceeded during compilation
>>
>> Any ideas on how I could load such file?
>>
>

-- 
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/ae9d3d68-6318-4aea-8cf2-ce29ef2687a3n%40googlegroups.com.

Reply via email to