Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python C Api

"no Module Named '_'" When Importing A Swig Module With Embedded Python

I'm trying to use SWIG with embedded Python 3.5.2. The following is built as a Windows console … Read more "no Module Named '_'" When Importing A Swig Module With Embedded Python

Numpy/capi Error With Import_array() When Compiling Multiple Modules

I am trying to compile a C++ module to use in scipy.weave that is composed of several headers and s… Read more Numpy/capi Error With Import_array() When Compiling Multiple Modules

How To Create A Custom Python Exception Type In C Extension?

I'm writing a Python module in C. I need to report errors that can't be described by built-… Read more How To Create A Custom Python Exception Type In C Extension?

Including And Distributing Third Party Libraries With A Python C Extension

I'm building a C Python extension which makes use of a 'third party' library— in this c… Read more Including And Distributing Third Party Libraries With A Python C Extension

Pyarg_parsetuple Segfaults In Capi

I am writing a code, trying to get used to the C API of NumPy arrays. #include #include 'nump… Read more Pyarg_parsetuple Segfaults In Capi

Pyobject Segfault On Function Call

I'm trying to use Python to open a dialog to accept input into my C++ application. Here is a v… Read more Pyobject Segfault On Function Call

Pointer-type Mismatch With Pyarray_simplenew

I am creating a module for Python with Numpy using the C API and encounter weird incompatibilities … Read more Pointer-type Mismatch With Pyarray_simplenew

Implementing Nb_inplace_add Results In Returning A Read-only Buffer Object

I'm writing an implementation of the in-place add operation. But, for some reason, I sometimes … Read more Implementing Nb_inplace_add Results In Returning A Read-only Buffer Object

Python Works In C++ In Debug Mode, But Not In Exe File

I am working on a Python code embedding in c++ helloworld program, necessary additional include/li… Read more Python Works In C++ In Debug Mode, But Not In Exe File

Are There Any Datetime.tzinfo Implementations In C?

I've been working on a Python library that uses a C extension module to do ISO 8601 parsing. Pa… Read more Are There Any Datetime.tzinfo Implementations In C?

Printing A Variable In An Embedded Python Interpreter

I have written a small C program that embeds Python. I'm setting it up correctly using Py_Initi… Read more Printing A Variable In An Embedded Python Interpreter

Return List Of New Custom-class Objects In Python C Api

I need to create a new list via the python C API containing new copies of objects of a Quaternion c… Read more Return List Of New Custom-class Objects In Python C Api

Std::bad_alloc After Replacing Boost:python Function Wrapper With Python/c Api

I had a function in C which I used to extend python, previously using the BOOST_MODULE function to … Read more Std::bad_alloc After Replacing Boost:python Function Wrapper With Python/c Api

Python C-api And Unicode Strings

I need to convert between python objects and c strings of various encodings. Going from a c string … Read more Python C-api And Unicode Strings

Initializer Is Not A Constant, Error C2099, On Compiling A Module Written In C For Python

i tried to compile a python module called distance, whith c 'python setup.py install --with-c&#… Read more Initializer Is Not A Constant, Error C2099, On Compiling A Module Written In C For Python