Boost C++ Libraries: Ticket #5643: Python 3.2 compiling error ( PyUnicodeUCS2_AsWideChar ) https://svn.boost.org/trac10/ticket/5643 <p> ibs\python\src\converter\builtin_converters.cpp(436) : error C2664: 'PyUnicodeUCS2_AsWideChar' : cannot convert parameter 1 from '<a class="missing wiki">PyUnicodeObject</a> *' to '<a class="missing wiki">PyObject</a> *' </p> <blockquote> <p> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast </p> </blockquote> <p> Solution: change libs\python\src\converter\builtin_converters.cpp(436) </p> <blockquote> <p> int err = PyUnicode_AsWideChar( </p> <blockquote> <p> /*(<a class="missing wiki">PyUnicodeObject</a> *)*/intermediate <em> change this line, comment out the C style cast!!! </em></p> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5643 Trac 1.4.3 pelotoescogorciao@… Sat, 25 Jun 2011 18:43:15 GMT <link>https://svn.boost.org/trac10/ticket/5643#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5643#comment:1</guid> <description> <p> Btw, that's in VS2010 SP1. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Sun, 16 Oct 2011 18:12:29 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/5643#comment:2 https://svn.boost.org/trac10/ticket/5643#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Ralf W. Grosse-Kunstleve</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">Python</span> </li> </ul> Ticket Ralf W. Grosse-Kunstleve Mon, 17 Oct 2011 04:57:21 GMT owner changed https://svn.boost.org/trac10/ticket/5643#comment:3 https://svn.boost.org/trac10/ticket/5643#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Ralf W. Grosse-Kunstleve</span> to <span class="trac-author">Stefan Seefeld</span> </li> </ul> <p> Stefan, are you set up to test against Python 3? If not, please re-assign to me and I'll see what I can do (I don't normally use Python 3). </p> Ticket anonymous Mon, 17 Oct 2011 13:34:00 GMT <link>https://svn.boost.org/trac10/ticket/5643#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5643#comment:4</guid> <description> <p> Ralf, </p> <p> I may be able to help, but right now I'm getting stuck in a bunch of errors, so I'm not sure how much effort it will take to get started. I just fixed a Python3 compatibility bug in bootstrap.sh, but there appears to be more. After bootstrapping with <code>--with-python=/usr/bin/python3</code>, I see compilation lines with '-I/usr/include/python3.2', resulting in errors like 'pyconfig.h: No such file or directory'. And indeed, on my system (Fedora 15) there is a '/usr/include/python3.2mu/pyconfig-64.h', which means that both the build system as well as the boost.python headers need to be adjusted. (Note that this is the first time I attempt to build boost.python with Python3.) </p> <p> This looks like there is quite a bit more to fix than a single test failure, and I'm not sure I'll have enough time to address this. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Stefan Seefeld</dc:creator> <pubDate>Mon, 17 Oct 2011 13:34:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5643#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5643#comment:5</guid> <description> <p> (sorry, that comment was from me. I hadn't realized I wasn't logged in.) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Mon, 17 Oct 2011 23:31:34 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5643#comment:6 https://svn.boost.org/trac10/ticket/5643#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Looks like this is a dup of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4994" title="#4994: Patches: Fix compile error with Python 3.2 (closed: fixed)">#4994</a>, fixed already in April 2011: </p> <p> % svn log -v -c71050 </p> <hr /> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/71050" title="libs/python/src/converter/builtin_converters.cpp: Python 3.2 ...">r71050</a> | rwgk | 2011-04-06 14:32:59 -0700 (Wed, 06 Apr 2011) | 1 line Changed paths: </p> <blockquote> <p> M /trunk/libs/python/src/converter/builtin_converters.cpp </p> </blockquote> <p> libs/python/src/converter/builtin_converters.cpp: Python 3.2 compatibility, based on patch by Matthew Bradbury, fixes issue <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4994" title="#4994: Patches: Fix compile error with Python 3.2 (closed: fixed)">#4994</a> </p> <hr /> Ticket