Re: [pypy-dev] Problems in connecting C++ and python with cppyy

2013-05-24 Thread Xia Xin
Hi, Sorry, I did not find any mistakes except that AttributeError. So I think maybe there are some problems in my OS. Thanks for your help. if you like, I can also give you an acess to my PC(Newly installed, no secret. :D). Best regards, Xia Xin 2013/5/25 : > Hi, > > >> All needed libraries e

Re: [pypy-dev] Problems in connecting C++ and python with cppyy

2013-05-24 Thread wlavrijsen
Hi, All needed libraries exist. Errors occur only when I try to use automatic class loader. puzzling ... Only thing I can think of is to use LD_DEBUG=files (or with LD_DEBUG=symbols) and see whether either gives an indication as to what is wrong (a library or directory not being considered for

Re: [pypy-dev] Problems in connecting C++ and python with cppyy

2013-05-24 Thread Xia Xin
Hi, I am sure /home/GeV/work/hello/v1/src is the current and only work directory. $ ldd libMyClassDict.so linux-vdso.so.1 => (0x7fff9e598000) libReflex.so.0 => /opt/root/lib/root/libReflex.so.0 (0x7f7f2e4ec000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x7f7f2e1d000

Re: [pypy-dev] Problems in connecting C++ and python with cppyy

2013-05-24 Thread wlavrijsen
Hi, 1. $ echo $LD_LIBRARY_PATH /home/GeV/work/hello/v1/src:/opt/root/lib/root $ ls /home/GeV/work/hello/v1/src libMyClassDict.rootmap libMyClassDict.so MyClass.h MyClass_rflx.cpp import cppyy myinst = cppyy.gbl.MyClass(42) Traceback (most recent call last): File "", line 1, in A

Re: [pypy-dev] Problems in connecting C++ and python with cppyy

2013-05-24 Thread Xia Xin
Hi, Wim I tried, but when I use the automatic class loader, the problem still exists. HERE is the error. 1. $ echo $LD_LIBRARY_PATH /home/GeV/work/hello/v1/src:/opt/root/lib/root $ ls /home/GeV/work/hello/v1/src libMyClassDict.rootmap libMyClassDict.so MyClass.h MyClass_rflx.cpp >>>

Re: [pypy-dev] Problems in connecting C++ and python with cppyy

2013-05-24 Thread wlavrijsen
Hi, On Fri, May 24, 2013 at 8:45 AM, Xia Xin wrote: I believe that you need to say "./libMyClassDict.so". Otherwise it's searching for the .so in the system's standard places, which do not include ".". yes, or add '.' to LD_LIBRARY_PATH. The call is basically just a dlopen: internally, it us

Re: [pypy-dev] Problems in connecting C++ and python with cppyy

2013-05-24 Thread Armin Rigo
Hi, On Fri, May 24, 2013 at 8:45 AM, Xia Xin wrote: > cppyy.load_reflection_info("libMyClassDict.so") I believe that you need to say "./libMyClassDict.so". Otherwise it's searching for the .so in the system's standard places, which do not include ".". A bientôt, Armin. __