So I found an easy exemple:

Script.py contains:

def f(n):
    return n*n
_________

D=dsage.start_all()

from Script import *

R=D.eval_function(f,((4,{}), job_name='square')

This give me the exact same error, what should I do?



On 13 fév, 12:08, ThePriest <jeanphilippela...@gmail.com> wrote:
> D=dsage.start_all()
>
> from TCantor import * # file includes a class and multiple functions
>
> List=Liste_Infimum_LQ(4,2) # This returns a list of lists
>
> R=D.map(Trouver_Repr_Classe_LQ,List) # Trouve_... take a list for a
> argument
>
> In my web view, I have this message in the "output" box for all the
> job sent, which all fail.
>
> execfile('/.sage/dsage/tmp_worker_files/CWgJVZ0S8s/
> Trouver_Repr_Classe_LQ.py')  r e Traceback (most recent call last):
> File "", line 1, in File "/.sage/dsage/tmp_worker_files/CWgJVZ0S8s/
> Trouver_Repr_Classe_LQ.py", line 8, in f = unpickle_function(p_f)
> NameError: name 'p_f' is not defined
>
> p_f seems not to be attached to the job properly...
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to