loadlj / python-spidermonkey

Automatically exported from code.google.com/p/python-spidermonkey
GNU General Public License v2.0
0 stars 0 forks source link

Pyrex-0.9.9 __new__ method of extension type will change semantics in a future version of Pyrex. Use __cinit__ instead. #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
#python setup.py build
running build
running build_ext
cat: ../../dist/Linux_All_DBG.OBJ/nspr/Version: No such file or directory
cd editline; make -f Makefile.ref all
make[1]: Entering directory 
`/home/zhaozhenyu/zzy/python-spidermonkey/trunk/js/src/editline'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/zhaozhenyu/zzy/python-spidermonkey/trunk/js/src/editline'
make -f Makefile.ref  Linux_All_DBG.OBJ/libjs.a Linux_All_DBG.OBJ/libjs.so 
Linux_All_DBG.OBJ/js  Linux_All_DBG.OBJ/jsautocfg.h Linux_All_DBG.OBJ/jscpucfg 
Linux_All_DBG.OBJ/jscpucfg.o
cat: ../../dist/Linux_All_DBG.OBJ/nspr/Version: No such file or directory
make[1]: Entering directory 
`/home/zhaozhenyu/zzy/python-spidermonkey/trunk/js/src'
make[1]: Circular jscpucfg.h <- Linux_All_DBG.OBJ/jsautocfg.h dependency 
dropped.
make[1]: Circular Linux_All_DBG.OBJ/jsautocfg.h <- 
Linux_All_DBG.OBJ/jsautocfg.h dependency dropped.
make[1]: `Linux_All_DBG.OBJ/libjs.a' is up to date.
make[1]: `Linux_All_DBG.OBJ/libjs.so' is up to date.
make[1]: `Linux_All_DBG.OBJ/js' is up to date.
make[1]: `Linux_All_DBG.OBJ/jsautocfg.h' is up to date.
make[1]: `Linux_All_DBG.OBJ/jscpucfg' is up to date.
make[1]: `Linux_All_DBG.OBJ/jscpucfg.o' is up to date.
make[1]: Leaving directory 
`/home/zhaozhenyu/zzy/python-spidermonkey/trunk/js/src'
pyrexc spidermonkey.pyx --> spidermonkey.c
/home/zhaozhenyu/zzy/python-spidermonkey/trunk/spidermonkey.pyx:456:4: __new__ 
method of extension type will change semantics in a future version of Pyrex. 
Use __cinit__ instead.
/home/zhaozhenyu/zzy/python-spidermonkey/trunk/spidermonkey.pyx:497:4: __new__ 
method of extension type will change semantics in a future version of Pyrex. 
Use __cinit__ instead.
/home/zhaozhenyu/zzy/python-spidermonkey/trunk/spidermonkey.pyx:698:4: __new__ 
method of extension type will change semantics in a future version of Pyrex. 
Use __cinit__ instead.
/home/zhaozhenyu/zzy/python-spidermonkey/trunk/spidermonkey.pyx:497:22: 
Warning: 'not None' will become the default in a future version of Pyrex. Use 
'or None' to allow passing None.
building 'spidermonkey' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -fPIC -DXP_UNIX -I/usr/include/python2.6 -Ijs/src 
-Ijs/src/Linux_All_DBG.OBJ -c spidermonkey.c -o 
build/temp.linux-i686-2.6/spidermonkey.o
spidermonkey.c:1:2: error: #error Do not use this file, it is the result of a 
failed Pyrex compilation.
error: command 'gcc' failed with exit status 1

Original issue reported on code.google.com by darknigh...@gmail.com on 8 Jul 2010 at 7:26

GoogleCodeExporter commented 9 years ago
I got the same error with Pyrex-0.9.9 I'm not sure what the source of the error 
is, but I tried Pyrex-0.9.8.1 and it worked.

Original comment by kar...@gmail.com on 11 Feb 2011 at 4:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Do you have specific instructions on how you got it to work? I still get the 
same error... Thanks in advance

Original comment by miguel.r...@gmail.com on 20 Mar 2011 at 12:12

GoogleCodeExporter commented 9 years ago
See this page:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/changes-0.9.6.html

patch attached

Original comment by raphael....@gmail.com on 3 Aug 2011 at 5:20

Attachments: