Re: help on python SWIG C++ extension

2008-09-17 Thread RLC
verticesindices(3) print a.getpolygonverticesindices(4) print a.getpolygonverticesindices(5) del a Thanks again. Have a good day!!! Regards Roger On Sep 17, 8:16 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > RLC <[EMAIL PROTECTED]> wrote: > > >I am new to python SWIG. Recently I wrote a small

Re: help on python SWIG C++ extension

2008-09-16 Thread Tim Roberts
RLC <[EMAIL PROTECTED]> wrote: > >I am new to python SWIG. Recently I wrote a small program trying to >import collada files(using colladadom) into python so I could use >python cgkit to render them. However, during the progressing, I got >some problems. Every time I quit

Re: help on python SWIG C++ extension

2008-09-16 Thread Diez B. Roggisch
RLC schrieb: Hello I am new to python SWIG. Recently I wrote a small program trying to import collada files(using colladadom) into python so I could use python cgkit to render them. However, during the progressing, I got some problems. Every time I quit from Python, I get a segmentation fault

python/swig

2008-05-13 Thread gianluca
Hy, I need help indeed, about python/swig C wrapper. Exactly, I've built a python library from C library and it seem works. Unfortunatly, a gruop of function that requred pointer to pointer parmeters give me a exception like this: "TypeError: in method 'BestRules', argument 1

AIX Subversion Python Swig Bindings fix for core dump

2007-12-05 Thread Reedick, Andrew
If you're on AIX and Python immediately dumps core when trying to import any SVN module, then adding "-Wl,-brtl" to LINKFORSHARED in the Makefile seems to fix the problem. Bad: > LINKFORSHARED=-Wl,-bE:Modules/python.exp -lld Good: < LINKFORSHARED=-Wl,-bE:Modules/python.exp -lld

[Python-SWIG-C++] one question about wrapper interface files

2007-10-11 Thread [EMAIL PROTECTED]
Dear All, I am new to Python and SWIG, and I tried to search the SWIG mailinglist for my specific question, but I did not find it. And for a simple one c++ file, I can handle it successfully. Now I have a small project including several C files, file1.C file2.C file3.C file2.h file3.h , file1.C i

Re: Python,SWIG and libjvm

2007-09-20 Thread Graham Dumpleton
On Sep 21, 9:00 am, sapsi <[EMAIL PROTECTED]> wrote: > Hello, > I'm not sure if this the correct list but here goes (and sorry for the > noise). I've been attempting to wrap python around libhdfs. > So far so good (i've attached the SWIG template at the end). The > compilation works without errors

Re: Python,SWIG and libjvm

2007-09-20 Thread sapsi
On Sep 20, 8:22 pm, sapsi <[EMAIL PROTECTED]> wrote: > On Sep 20, 7:00 pm, sapsi <[EMAIL PROTECTED]> wrote: > > > Hello, > > I'm not sure if this the correct list but here goes (and sorry for the > > noise). I've been attempting to wrap python around libhdfs. > > So far so good ( > > I should point

Re: Python,SWIG and libjvm

2007-09-20 Thread sapsi
On Sep 20, 7:00 pm, sapsi <[EMAIL PROTECTED]> wrote: > Hello, > I'm not sure if this the correct list but here goes (and sorry for the > noise). I've been attempting to wrap python around libhdfs. > So far so good ( I should point out that libhdfs is a c library to Hadoop Distributed FileSystem.

Python,SWIG and libjvm

2007-09-20 Thread sapsi
Hello, I'm not sure if this the correct list but here goes (and sorry for the noise). I've been attempting to wrap python around libhdfs. So far so good (i've attached the SWIG template at the end). The compilation works without errors and the shared objects do have references to all the functions.

Calling cpp from python/SWIG

2007-03-13 Thread Frank
Hi, I have the following problem: I want to parse an array M1 from python to a cpp function fct which returns an array M2. How can I do this best? Is SWIG appropriate or is there something else? If someone could give some code example or a link to a page with examples, that would be great! Tha

Re: Calling cpp from python/SWIG

2007-03-12 Thread Gabriel Genellina
En Tue, 13 Mar 2007 03:33:43 -0300, Frank <[EMAIL PROTECTED]> escribió: > I want to parse an array M1 from python to a cpp function fct which > returns an array M2. > > How can I do this best? Is SWIG appropriate or is there something > else? If you're going to call a single function, declare it

Calling cpp from python/SWIG

2007-03-12 Thread Frank
Hi, I have the following problem: I want to parse an array M1 from python to a cpp function fct which returns an array M2. How can I do this best? Is SWIG appropriate or is there something else? If someone could give some code example or a link to a page with examples, that would be great! Tha

Calling cpp from python/SWIG

2007-03-12 Thread Frank
Hi, I have the following problem: I want to call a cpp program from python. Let's call this cpp program fct. The problem is that I will parse a large array, say M1, to fct and also receive a large array, say M2 back (each about 1000 x 1000). Normally, I would write M1 to a file, call fct via sub

help python swig problem

2005-11-30 Thread [EMAIL PROTECTED]
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg. /* File : example.c */ #include double My_variable = 3.0; int fact(int n) { if (n <= 1) return 1; else return

Nice documentation Python / SWIG / C++

2005-04-25 Thread Alexander Eisenhuth
Hi alltogether, I found a nice and useful article for extenting python with C++ using SWIG. It describe from the scratch especially for Windows. Maybe this can be included somewhere on www.python.org. Here is the link: http://www.geocities.com/foetsch/python/extending_python.htm Alexander