[C++-sig] [Py++] Generate Python code for ctypes?

Roman Yakovenko roman.yakovenko at gmail.com
Sun Dec 13 07:33:59 CET 2009

On Sun, Dec 13, 2009 at 4:54 AM, Nikolaus Rath <Nikolaus at rath.org> wrote:
> Roman Yakovenko <roman.yakovenko at gmail.com> writes:
>> You can take a look on gmplib example:
>> http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/examples/gmplib_dev/
>> It is fully working.
> I downloaded Pyplusplus 1.0 from
> http://sourceforge.net/projects/pygccxml/files/, but when I try to run
> the code, I get
> $ python generate_code.py
> /home/nikratio/.local/lib/python2.6/site-packages/pygccxml/parser/declarations_cache.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead
>  import md5
> Traceback (most recent call last):
>  File "generate_code.py", line 9, in <module>
>    from pyplusplus.module_builder import ctypes_module_builder_t
> ImportError: cannot import name ctypes_module_builder_t
> Do I need the CVS version?

Yes. The version, which contains ctypes code generator, was not released yet.

Roman Yakovenko
C++ Python language binding

More information about the Cplusplus-sig mailing list