On Mar 18, 2007, at 2:21 PM, Mike Hansen wrote:

>
>> That really shouldn't be happening.  It looks like Worker 1 and
>> Worker 14 are getting the same job which is definitely not right.
>> Your job database might have gotten screwed up.  I think the easiest
>> thing to try right now is to remove the $HOME/.sage/dsage/db and
>> $HOME/.sage/dsage/tmp_worker_files directory and try again.
>
> This happens even after wiping .sage/dsage and running dsage.setup().
>
>> Are you trying to run DSAGE between different versions of SAGE?  The
>> way that jobs are handled changed quite a bit, which is why it
>> complains about some attributes not being there.  Try it again using
>> sage-2.3 throughout.
>
> I've been tesitng with two separate DSAGE instances so that there is
> no talking between different versions of DSAGE.  It works fine on my
> local machine with 2.1.4, but gives the Job attribute when I try just
> running it the 2.3 install.  This is the job method that I'm using:
>
>     def t32_job(self, i):
>         job = Job(file="""
> %s
>
> h_basis = load_da_basis(%s)
> k_basis = load_da_basis(%s)
> pairs = %s
> result = map(lambda x: theorem32(h_basis[x[0]], k_basis[x[1]], %s),  
> pairs)
> save(result, 'result')
> DSAGE_RESULT = 'result.sobj'
>
>         """ % (self.file_text,  str(self.h), str(self.k),
> str(self.p_pairs[i]), str(self.rep) ) , name='t32')
>         job.i = i
>         return job
>
> Is there something obvious that I'm missing with it?
Mike and I figured this one out over google talk.  It appears that  
the problem was with setting the attribute 'job.i'.  For some reason,  
setting that attribute caused unpickling the Job object on the  
otherside to fail.  Changing that one line to 'job.n = i' fixed the  
problem.

Cheers,
Yi




--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to