code-google-com / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

static linking won't help - still on ubuntu fails #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.6/src/Exception.o
build/temp.linux-x86_64-2.6/src/Context.o
build/temp.linux-x86_64-2.6/src/Engine.o
build/temp.linux-x86_64-2.6/src/Wrapper.o
build/temp.linux-x86_64-2.6/src/Debug.o
build/temp.linux-x86_64-2.6/src/Locker.o
build/temp.linux-x86_64-2.6/src/PyV8.o -L/devel/00-cvs/js/v8 -L/devel/lib
-lboost_python -lv8static -lrt -o build/lib.linux-x86_64-2.6/_PyV8.so -fPIC

./helloworld.py
Traceback (most recent call last):
  File "./helloworld.py", line 4, in <module>
    import PyV8
  File "./PyV8.py", line 8, in <module>
    import _PyV8
AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is
read-only

Original issue reported on code.google.com by Grzegorz...@gmail.com on 27 Apr 2010 at 4:22

GoogleCodeExporter commented 9 years ago
It is a known issue which caused by incompatible Python and boost version

http://code.google.com/p/pyv8/wiki/HowToBuild

Fail to load PyV8?.so with AttributeError? exception

If you got the exception "AttributeError?: 'Boost.Python.StaticProperty?' 
object 
attribute 'doc' is read-only", please check your Python version. The Python 
2.6.4 
introduce a known issue which will break boost 1.40 or earlier version. Please 
use 
Python 2.5.x/2.6.3, or upgrade your boost to 1.41 or later.

Original comment by flier...@gmail.com on 28 Apr 2010 at 1:12