Questions tagged [pybindgen]
8 questions
3
votes
0 answers
How to write custom typehandlers in PyBindGen?
Documentation of PyBindGen says that it is easy to write custom typehandlers for your own data types. However, I didn't find any good examples of writing them. Examples, which are supplied with pybindgen are too basic to understand the details and…

yesint
- 145
- 9
2
votes
0 answers
waf error when building pybindgen on Mac OS 10.7
I am trying to build Pybindgen on Mac OS 10.7. Lion Everything works fine on Ubuntu to compare but...
On OS X the waf installer (Pybindgen uses waf to build and install) chokes on this:
Checking for program python : ok /usr/bin/python…

kosta5
- 1,129
- 3
- 14
- 36
1
vote
1 answer
How to get the PyBindGen PyObject for a given C++ pointer?
Given the PyObject created by PyBindGen, it's easy to get the pointer to the wrapped C++ object, just use the obj member in the struct:
typedef struct {
PyObject_HEAD
MyWrappedClass *obj;
PyObject *inst_dict;
PyBindGenWrapperFlags…

Walter Nissen
- 16,451
- 4
- 26
- 27
1
vote
2 answers
Where Should Shared Object Files Be Placed?
I am venturing into the land of creating C/C++ bindings for Python using pybindgen. I've followed the steps outlined under "Building it ( GCC instructions )" to create bindings for the sample files:…

JeremyFromEarth
- 14,344
- 4
- 33
- 47
1
vote
1 answer
PyBindGen with callback
I am trying to use PyBindGen to create a python extension module for my C library which has a callback. Even though PyBindGen frontpage says that callbacks are a missing feature, the current source code and this discussion and archive have examples…

Paul Grinberg
- 1,184
- 14
- 37
1
vote
1 answer
Can't pybindgen to work with gccxml
I have a C++ library I would like to bind to Python. I began using Pybindgen, and it is really easy to use, but manually adding functions and namespaces will take a long time considering the size of my C++ library. I've read through the…

Paolo Mazzon
- 41
- 3
1
vote
1 answer
Is it possible to get jedi autocomplete for a C++ library binded to python?
I am using vim with jedi-vim to edit some python code. However, some libraries we use are C++ shared libraries for which we generated python bindings using pybindgen. When using jedi-vim, I do not get signature for any of the classes and methods,…

Urukann
- 475
- 4
- 10
0
votes
2 answers
Errors when trying to auto generate my library for c++ interop
I'm using pybindgen to create the link code between python and c++. Or at least I would be if I could get it to work with my code. The python file when run produces the following errors. Any way by which I could satisfy pybindgen or resolve these…

ceorron
- 1,230
- 1
- 17
- 28