Boost C++ Libraries: Ticket #1379: Failing import_ test https://svn.boost.org/trac10/ticket/1379 <p> Windows embedded Python doesn't set up sys.path correctly, as described in <a class="ext-link" href="http://thread.gmane.org/gmane.comp.python.general/544986"><span class="icon">​</span>http://thread.gmane.org/gmane.comp.python.general/544986</a>. That causes Boost.Python's import_ test to fail. We need a workaround. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1379 Trac 1.4.3 Dave Abrahams Thu, 25 Oct 2007 23:15:46 GMT status changed; cc set https://svn.boost.org/trac10/ticket/1379#comment:1 https://svn.boost.org/trac10/ticket/1379#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">seefeld@…</span> added </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Dave Abrahams Thu, 25 Oct 2007 23:19:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1379#comment:2 https://svn.boost.org/trac10/ticket/1379#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/40468" title="Closes #1379. It would be good to have a much more principled ...">[40468]</a>) Closes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1379" title="#1379: Bugs: Failing import_ test (closed: fixed)">#1379</a>. It would be good to have a much more principled approach; see comments in the diffs for details. </p> Ticket Dave Abrahams Sun, 28 Oct 2007 17:51:57 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/1379#comment:3 https://svn.boost.org/trac10/ticket/1379#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Still failing. I'm pretty sure this is because when I tested my fix, I was running it from the same directory as the import_.py file. When it's not in the current directory, its directory needs to be added to the PYTHONPATH if it is to be found. </p> Ticket Dave Abrahams Sun, 28 Oct 2007 19:22:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1379#comment:4 https://svn.boost.org/trac10/ticket/1379#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/40535" title="Closes #1379, really this time. The old code would sandwich argv[1] ...">[40535]</a>) Closes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1379" title="#1379: Bugs: Failing import_ test (closed: fixed)">#1379</a>, really this time. The old code would sandwich argv<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> between quotes and interpret it as a string, so backslashes in windows paths were interpreted as escape sequences. </p> Ticket Stefan Seefeld Sun, 28 Oct 2007 19:26:12 GMT <link>https://svn.boost.org/trac10/ticket/1379#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1379#comment:5</guid> <description> <p> Oh ! So the sys.path setting didn't see a valid directory. Thanks for debugging this ! </p> </description> <category>Ticket</category> </item> </channel> </rss>