Dear Fredrik:

Thanks very much for your reply. I'm trying to install the software now, 
but am having a bit of trouble. In particular I get a large error message, 
which I'm copying below. Any advice would be appreciated. This is after I 
run 

sage setup.py develop

Best,
Brandon

[ 8/52] Cythonizing psage/function_fields/function_field_element.pyx

Error compiling Cython file:
------------------------------------------------------------
...
        cdef FunctionFieldElement left = <FunctionFieldElement>self
        cdef FunctionFieldElement right = <FunctionFieldElement>other
        c = cmp(left._parent, right._parent)
        return c or cmp(left._x, right._x)

    cpdef ModuleElement _add_(self, ModuleElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:300:10: Signature not 
compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef getattr_from_category(self, name)

    cpdef _act_on_(self, x, bint self_on_left)
    cpdef _acted_upon_(self, x, bint self_on_left)

    cdef _add_(self, other)
              ^
------------------------------------------------------------

/Applications/SageMath-7.4.app/Contents/Resources/sage/src/sage/structure/element.pxd:180:15:
 
Previous declaration is here

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x + (<FunctionFieldElement>right)._x
        return res

    cpdef ModuleElement _sub_(self, ModuleElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:312:10: Signature not 
compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
cdef class ModuleElement(Element)       # forward declaration

cdef class RingElement(ModuleElement)   # forward declaration

cdef class ModuleElement(Element):
    cpdef _sub_(self, right)
               ^
------------------------------------------------------------

/Applications/SageMath-7.4.app/Contents/Resources/sage/src/sage/structure/element.pxd:200:16:
 
Previous declaration is here

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x - (<FunctionFieldElement>right)._x
        return res

    cpdef RingElement _mul_(self, RingElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:324:10: Signature not 
compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef _add_(self, other)
    cdef _sub_(self, other)
    cdef _neg_(self)
    cdef _add_long(self, long n)

    cdef _mul_(self, other)
              ^
------------------------------------------------------------

/Applications/SageMath-7.4.app/Contents/Resources/sage/src/sage/structure/element.pxd:185:15:
 
Previous declaration is here

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = (self._x * (<FunctionFieldElement>right)._x) % 
self._parent.polynomial()
        return res

    cpdef RingElement _div_(self, RingElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:336:10: Signature not 
compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...

cdef class AdditiveGroupElement(ModuleElement):
    pass

cdef class RingElement(ModuleElement):
    cpdef _div_(self, right)
               ^
------------------------------------------------------------

/Applications/SageMath-7.4.app/Contents/Resources/sage/src/sage/structure/element.pxd:218:16:
 
Previous declaration is here

Error compiling Cython file:
------------------------------------------------------------
...
        cdef FunctionFieldElement left = <FunctionFieldElement>self
        cdef FunctionFieldElement right = <FunctionFieldElement>other
        c = cmp(left._parent, right._parent)
        return c or cmp(left._x, right._x)

    cpdef ModuleElement _add_(self, ModuleElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:458:10: Signature not 
compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef getattr_from_category(self, name)

    cpdef _act_on_(self, x, bint self_on_left)
    cpdef _acted_upon_(self, x, bint self_on_left)

    cdef _add_(self, other)
              ^
------------------------------------------------------------

/Applications/SageMath-7.4.app/Contents/Resources/sage/src/sage/structure/element.pxd:180:15:
 
Previous declaration is here

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x + (<FunctionFieldElement>right)._x
        return res

    cpdef ModuleElement _sub_(self, ModuleElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:470:10: Signature not 
compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
cdef class ModuleElement(Element)       # forward declaration

cdef class RingElement(ModuleElement)   # forward declaration

cdef class ModuleElement(Element):
    cpdef _sub_(self, right)
               ^
------------------------------------------------------------

/Applications/SageMath-7.4.app/Contents/Resources/sage/src/sage/structure/element.pxd:200:16:
 
Previous declaration is here

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x - (<FunctionFieldElement>right)._x
        return res

    cpdef RingElement _mul_(self, RingElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:483:10: Signature not 
compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef _add_(self, other)
    cdef _sub_(self, other)
    cdef _neg_(self)
    cdef _add_long(self, long n)

    cdef _mul_(self, other)
              ^
------------------------------------------------------------

/Applications/SageMath-7.4.app/Contents/Resources/sage/src/sage/structure/element.pxd:185:15:
 
Previous declaration is here

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x * (<FunctionFieldElement>right)._x
        return res

    cpdef RingElement _div_(self, RingElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:495:10: Signature not 
compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...

cdef class AdditiveGroupElement(ModuleElement):
    pass

cdef class RingElement(ModuleElement):
    cpdef _div_(self, right)
               ^
------------------------------------------------------------

/Applications/SageMath-7.4.app/Contents/Resources/sage/src/sage/structure/element.pxd:218:16:
 
Previous declaration is here
Traceback (most recent call last):
  File 
"/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py",
 
line 1055, in cythonize_one_helper
    return cythonize_one(*m)
  File 
"/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py",
 
line 1037, in cythonize_one
    raise CompileError(None, pyx_file)
CompileError: psage/function_fields/function_field_element.pyx
[ 9/52] Cythonizing psage/functions/inc_gamma.pyx
Traceback (most recent call last):
  File "setup.py", line 126, in <module>
    run_cythonize()
  File "setup.py", line 121, in run_cythonize
    'profile': profile,
  File 
"/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py",
 
line 906, in cythonize
    result.get(99999)  # seconds
  File 
"/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python/multiprocessing/pool.py",
 
line 567, in get
    raise self._value
Cython.Compiler.Errors.CompileError: 
psage/function_fields/function_field_element.pyx

On Friday, October 7, 2016 at 10:13:10 AM UTC-7, Fredrik Strömberg wrote:
>
> Indeed, I do not read it every day but fortunately someome was kind enough 
> to email me. 
> The code in question (developed by me, Nils Skoruppa and Stephan Ehlen) be 
> found in my psage clone on GitHub: https://github.com/fredstro/psage 
>
> Let me know if you have any questions about installing it. 
>
> Best, 
> Fredrik 
>
>  On Friday, October 7, 2016 at 9:02:25 AM UTC+1, John Cremona wrote: 
> > Try emailing him directly in case he does not read sage-support? 
> > 
> > On 6 October 2016 at 22:50, Brandon Rayhaun <brandon...@gmail.com 
> <javascript:>> wrote: 
> > > Hello all, 
> > > 
> > > I would like to ask Sage to compute matrix elements of the Weil 
> > > representation, as in the main theorem of this paper: 
> > > 
> > > http://www.maths.ed.ac.uk/~aar/papers/stromberg.pdf 
> > > 
> > > In the paper, Stromberg mentions that it has already been implemented 
> in 
> > > Sage. Does anyone know where I can find the documentation on this? 
> > > 
> > > Thanks very much, 
> > > Brandon 
> > > 
> > > -- 
> > > 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...@googlegroups.com <javascript:>. 
> > > To post to this group, send email to sage-s...@googlegroups.com 
> <javascript:>. 
> > > Visit this group at https://groups.google.com/group/sage-support. 
> > > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to