The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
28 views

Typecasting to a struct after python embedding

I have a small python script embedded in a C++ program. After exposing the python object to C++ program and copying the value to a C++ variable, i try to typecast it to a struct, but i do not get the ...
0
votes
0answers
24 views

Python embedding-taking input from C++ and passing it to interpreter [closed]

Ok I am re writing my whole question.I am using pystring_simplestring for embedding python and running simple commands.However,what I really want to do is to pass two integers to the python ...
0
votes
1answer
54 views

embedded python in c++, do i need python installed

when embedding python in a c++ application using #include "python2.6/Python.h" and linking -lpython2.6 does the target computer (computer running the final compiled program) need to have python ...
1
vote
1answer
66 views

second python execution fails

i'm having a problem embedding the python 3 engine for an app that need to run custom scripts in python. Since the scripts might be completely different, and sometimes user provided, I am trying to ...
0
votes
1answer
36 views

Add C object to Python List & return the list of C objects to python

I am writing C extensions for python. I want to know how to add a C object to python list using PyList_SetItem. For example, I have a C object. Atom *a = (Atom *)(PyTuple_GET_ITEM(tmp2, 0)); I ...
0
votes
1answer
499 views

Embedding Python in Qt 5

I would like to embed Python interpreter in to a Qt 5 application. I have a working application in Qt 5 but when I put #include <Python.h> at the top (below Qt headers) the compilation ...
0
votes
1answer
61 views

PyRun_SimpleString fails for def foo():

I could not get PyRun_SimpleFile to work (FILE* compatibility issue) for files that have unicode (widechar) in their name/path and hence this question! So, I decided to open the python script myself ...
3
votes
1answer
439 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 ...
0
votes
0answers
97 views

Embedding Python in Visual C++ and runtime error R6034

So over the past week or so I have been experimenting with embedding a python script into C. I have done this in successive stages. For one of my first attempts I would call my python script from C ...
1
vote
0answers
71 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
57 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
208 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
325 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
214 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 ...
1
vote
0answers
117 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 ...

1 2 3 4 5
15 30 50 per page