Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1379 closed Bugs (fixed)

Failing import_ test

Reported by: Dave Abrahams Owned by: Dave Abrahams
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc: seefeld@…

Description

Windows embedded Python doesn't set up sys.path correctly, as described in http://thread.gmane.org/gmane.comp.python.general/544986. That causes Boost.Python's import_ test to fail. We need a workaround.

Change History (5)

comment:1 by Dave Abrahams, 15 years ago

Cc: seefeld@… added
Status: newassigned

comment:2 by Dave Abrahams, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [40468]) Closes #1379. It would be good to have a much more principled approach; see comments in the diffs for details.

comment:3 by Dave Abrahams, 15 years ago

Resolution: fixed
Status: closedreopened

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.

comment:4 by Dave Abrahams, 15 years ago

Resolution: fixed
Status: reopenedclosed

(In [40535]) Closes #1379, really this time. The old code would sandwich argv[1] between quotes and interpret it as a string, so backslashes in windows paths were interpreted as escape sequences.

comment:5 by Stefan Seefeld, 15 years ago

Oh ! So the sys.path setting didn't see a valid directory. Thanks for debugging this !

Note: See TracTickets for help on using tickets.