pudwerkin / python-spidermonkey

Automatically exported from code.google.com/p/python-spidermonkey
0 stars 0 forks source link

Build fails for a wrong variable name (could find a workaround) #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.) replaced "import pyrex" by "import Cython"
2.) execute python setup.py build

What is the expected output? What do you see instead?
1.) extension should be built
error:) build fails

errormessage:
=============
cythoning spidermonkey.pyx to spidermonkey.c

Error converting Pyrex file to C:
------------------------------------------------------------
...
cdef Context runtime_get_context(Runtime self, JSContext *ccx):
    cdef Context cx

    for cx in self._cxs:
        if ccx == cx.cx:
            return cx
    raise ValueError("JSContext not found in Runtime '%s'" % rt)
                                                              ^
------------------------------------------------------------

/home/timo/System/Python/python-spidermonkey/spidermonkey.pyx:481:63:
undeclared name not builtin: rt

=====================
 end of error message

What version of the product are you using? On what operating system?
The current SVN trunk (2009-08-11 08:44)

Please provide any additional information below.
Workaround:) I could fix it by replacing "rt" with "self" (attached)

Original issue reported on code.google.com by timo.st...@googlemail.com on 11 Aug 2009 at 6:46

Attachments: