boost-python Questions
2
I have a module written in python. this module is sort of an interface to many different functionalities I implemented in Python:
EmbeddingInterface.py simply imports this module and creates an in...
Denominationalism asked 7/9, 2016 at 18:7
3
Solved
I want to know if there is any way to expose a C++ class to Python but without building an intermediate shared library.
Here is my desirable scenario. For example I have following C++ class:
class ...
Luxurious asked 26/8, 2013 at 10:53
1
I have a package I would like to document with sphinx. The package consists of a few native modules (generated using boost-python) and an __init__.py
The __init__.py does a bunch of (documented) m...
Shurwood asked 20/11, 2016 at 17:25
4
Solved
I am looking for a simple way to expose a C++ class instance to a python embedded interpreter.
I have a C++ library. This library is wrapped (using swig for the moment) and I am able to use it fro...
Barbera asked 22/11, 2011 at 11:19
3
Solved
By default, libboostpython.a is compiled without -fPIC. But I have to make a python extension and it is a dynamic library with -fPIC that links to static libraries.
How can I compile a static libra...
Convert asked 14/9, 2012 at 5:51
3
Solved
Firstly, my thanks to all of you for trying to resolve this doubt of mine. I am working on converting a minimal C++ project to be used in Python. The real reason behind this effort is for speed.
I ...
Slosh asked 24/9, 2017 at 9:51
2
Solved
I am using Boost.Python to embed an interpreter in my C++ executable and execute some prewritten scripts. I have got it working so that I can call functions in the python file but the python code I...
Tingey asked 14/2, 2012 at 22:49
3
Solved
First off: I looked at the related questions, but they are not very helpful unfortunately. I'm trying to wrap an enum and a class from an external library.
#include <Python.h>
#include <b...
Popularize asked 6/12, 2011 at 12:56
8
Solved
How does boost.python deal with Python 3? Is it Python 2 only?
Russon asked 4/4, 2011 at 13:58
6
Solved
I am currently writing a C++ extension for Python using Boost.Python. A function in this extension may generate an exception containing information about the error (beyond just a human-readable str...
Virtue asked 14/2, 2010 at 16:47
5
Solved
I want to embed python in my C++ application. I'm using Boost library - great tool. But i have one problem.
If python function throws an exception, i want to catch it and print error in my applic...
Photocopier asked 13/9, 2009 at 15:36
3
Solved
Update
I'm not going to add this as an answer, since I still haven't technically solved the problem. But since I've now spent 2.5 days trying to get things to work with boost-python3, I've lost th...
Bailey asked 15/2, 2019 at 11:41
4
Solved
I am writing a thin wrapper around ArUco augmented reality library (which is based on OpenCV). An interface I am trying to build is very simple:
Python passes image to C++ code;
C++ code detects ...
Bridgman asked 20/4, 2015 at 21:22
3
I am trying to build the boost python library on my ubuntu. However, when I execute
./b2 --with-python
It always returns me errors related to
./boost/python/detail/wrap_python.hpp:57:11: fatal...
Inkstand asked 28/7, 2019 at 20:19
0
I've been trying import a Module using:
import pyexiv2
which yields an error
Aruns-MacBook-Air:scripts arun$ python3 99-new-camera.py crop_field
Traceback (most recent call last):
File "99-n...
Methinks asked 28/1, 2021 at 11:23
2
Solved
I am trying to build this simple boost python demo from this link on my MacOS High Sierra.
Following is the hello_ext.cpp:
#include <boost/python.hpp>
char const* greet()
{
return "hello,...
Thicket asked 9/5, 2019 at 21:1
2
Solved
I want to pass callback from my python code to c++
I want my code look something like this:
In C++ :
typedef void (*MyCallback_t) (CallbackInfo);
class MyClass
{...
void setcallback(MyCallback_...
Fane asked 26/8, 2011 at 12:32
2
Solved
Several newbie questions about coexistence of Homebrew and pyenv on MacOSX Yosemite. These are the things that I am still confused about after applying my level of google-fu to the subject. Sorry f...
Concentre asked 14/8, 2015 at 21:34
1
Solved
Does pybind11 work for C++14 and C++17 seamlessly ?
I'm planning to use Boost.python for my project which is currently in C++11. In future I may have to upgrade to C++14 or C++17. So I wanted to un...
Adele asked 1/9, 2020 at 7:2
1
I have written a program that mixes Python 3 and C++. I am using boost-python 1.62 and mingw on Windows. I have compiled the C++ python libs on many, many machines so far and it has always worked w...
Steamboat asked 16/7, 2020 at 8:32
1
Suppose I have the following two C++ classes (which I can't modify):
struct A
{
// stuff
};
struct B
{
// B will internally hold a reference to a
B(A& a, some_cpp_only_type arg);
};
I am...
Statampere asked 5/7, 2016 at 8:50
7
Solved
Having some issues, now I have read the following:
hello world python extension in c++ using boost?
I have tried installing boost onto my desktop, and, done as the posts suggested in terms of lin...
Fascicle asked 6/11, 2013 at 11:30
0
I want to enable type hints for my C++ code in Python.
using boost::python;
BOOST_PYTHON_MODULE(foo)
{
docstring_options doc_options;
doc_options.disable_all();
doc_options.enable_user_defined(...
Freaky asked 1/5, 2020 at 12:35
3
I have Python3 installed via brew install python3. However, cmake cannot find PythonLibs 3. Here's the header of my CMakeLists.txt.
cmake_minimum_required(VERSION 3.0)
find_package(PythonLibs 3 RE...
Coin asked 25/3, 2015 at 0:39
1
Solved
I'm developing a Python binding for a C++ library using Boost Python, for Linux and Windows (Visual Studio).
In Windows, the static Boost Python library has a dependency against Python (this is mo...
Puebla asked 27/6, 2019 at 21:6
1 Next >
© 2022 - 2024 — McMap. All rights reserved.