Tagged Questions
2
votes
1answer
39 views
Building Boost Python Debug
I am definitely not a bjam expert, so pardon my ignorance if it's something really stupid.
I am trying to build a debug version of boost::python using this tutorial.
I have built Python 3.3.0 in my ...
1
vote
0answers
43 views
Easiest and Fastest way to Embed a Python Script into C?
I have been looking at the Python/C API for embedding my python script into C. I want to know if there is an easy (or simpler) way to embed my python script without having to get too involved in the ...
0
votes
0answers
15 views
Embedded Python in C++ DialogBoxes created by Tkinter
i have successfully embedded python into my c++ application, which runs mfc and is compiled in visual studio 2010.
Python Version I have embedded is:
2.7.3 (default, Apr 10 2012, 23:31:26) [MSC ...
4
votes
2answers
134 views
Python code in C++
I want to use some Python code in my C++ framework to plot some statistics. I have already found the following posting (about how to embedd python in c++) but following the instructions did not lead ...
2
votes
1answer
58 views
Why does PyImport_Import fail to load a module from the current directory?
I'm trying to run the embedding example and I can't load a module from the current working directory unless I explicitly add it to sys.path then it works:
PyRun_SimpleString("import sys");
...
1
vote
1answer
75 views
Embedding Python 3 - no builtins?
After much hair loss, I'm looking for help.
I'm embedding Python 3.3 into a simple app. One unusual aspect is Python isn't on the path, but it all seems to load OK. But for some reason, nothing can ...
0
votes
0answers
63 views
Avoid duplication of msvcr90.dll in application with embedded Python + C extensions?
I'm distributing a Windows application that embeds Python 2.7 (technique: include python27.dll + 'Python27' directory with DLLs and Lib folder, alongside my .exe). I'm also including a custom Python ...
0
votes
1answer
50 views
C++ and boost::python
Can I embed python into my app using only boost:python? Will I need any additional libraries to bring with my app?
Or is there any embeddable language which natively supports unicode chars and does ...
0
votes
1answer
98 views
Possible memory leaks
Could someone check if there is an memory leak? I am confused.
PyObject * somefunc(int function_id, int num_params, int * params){
PyObject * params_list=PyList_New(0);
for(int i=0; i ...
0
votes
1answer
51 views
How to convert PyFrameObject to PyObject
Maybe I'm missing something, but here is a problem:
I'm tracing python code by C extensions and my trace function got PyFrameObject* frame. Now I want to process the frame by Python code(embedded or ...
0
votes
1answer
224 views
Running Python from Visual C++ code (Embedded Python)
I have this Visual C++ code, plus Python embedded in it, when I try to run external Python code using the below code, I get the error in the Debug mode:
Unhandled exception at 0x77cf15de in ...
5
votes
1answer
525 views
how to pass command-line arguments as a string to an embedded Python script executed from C++?
I have a C++ program which exposes a Python interface to execute users' embedded Python scripts.
The user inserts the path of the Python script to run and the command-line arguments.
Then the script ...
0
votes
0answers
144 views
OpenCV - Getting incorrect SURF descriptors when running python code embedded into C++
I'm working on an image matcher that utilises depth information from the Kinect. I have already written quite a lot of code that does standard image matching in Python using OpenCV, however to make ...
2
votes
2answers
75 views
(Python C API) PyRun_StringFlags missing builtin functions?
I am trying to embed some python in my pet project. I have reduced my problem to the following code:
#include <Python.h>
#include "iostream"
int main(int argc, char *argv[])
{
...
8
votes
2answers
235 views
Embedding python in multithreaded C application
I'm embedding the python interpreter in a multithreaded C application and I'm a little confused as to what APIs I should use to ensure thread safety.
From what I gathered, when embedding python it is ...