Comment by [email protected]:

Hello all,

I downloaded and I am trying to get xpra to run on my SLES11 box under s/390x, and I am running into a problem that I can’t figure out. I got all the dependencies installed, and do-build doesn’t complain anymore, but when I try to run it, I get:

copying xpra/scripts/__init__.py -> build/lib.linux-s390x-2.6/xpra/scripts
copying xpra/scripts/server.py -> build/lib.linux-s390x-2.6/xpra/scripts
copying xpra/scripts/main.py -> build/lib.linux-s390x-2.6/xpra/scripts
running build_ext
building 'wimpiggy.lowlevel.bindings' extension
/usr/lib64/python2.6/site-packages/Pyrex/Compiler/Scanning.py:38: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib64/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message
/root/parti-all-0.0.6/wimpiggy/lowlevel/wimpiggy.lowlevel.bindings.pyx:114:10: Expected an identifier or literal

After looking up that file, this is where the “error” is:

###################################
# Simple speed-up code
###################################

def premultiply_argb_in_place(buf):
# b is a Python buffer object, containing non-premultiplied ARGB32 data in
    # native-endian.
    # We convert to premultiplied ARGB32 data, in-place.
    cdef int * cbuf
    cdef Py_ssize_t cbuf_len
    cdef int a, r, g, b
    assert sizeof(int) == 4
    PyObject_AsWriteBuffer(buf, <void **>&cbuf, &cbuf_len)
    cdef int i
   for 0 <= i < cbuf_len / 4:
        a = (cbuf[i] >> 24) & 0xff
        r = (cbuf[i] >> 16) & 0xff
        r = (r * a) / 255
        g = (cbuf[i] >> 8) & 0xff
        g = g * a / 255
        b = (cbuf[i] >> 0) & 0xff
        b = b * a / 255
        cbuf[i] = (a << 24) | (r << 16) | (g << 8) | (b << 0)

It’s the line:  for 0 <= i < cbuf_len / 4:

This line looks fine to me, what am I doing wrong?  Did I miss something?

Does the mailing list still work? I tried to send this to the list, but it kicked the email back saying it was undeliverable. Sorry if this isn't the best place to ask for help, I couldn't find anything else... Help!

Thanks!

Donald Harris

For more information:
http://code.google.com/p/partiwm/wiki/xpra
_______________________________________________
Parti-discuss mailing list
[email protected]
http://lists.partiwm.org/cgi-bin/mailman/listinfo/parti-discuss

Reply via email to