Re: [C++-sig] problem embedding python - very simple example

2012-11-06 Thread Stefan Seefeld
On 11/06/2012 02:40 PM, Cory Riddell wrote: > It prints "hello\nworld\n" then throws an exception executing the line > that creates the hello.txt file: > First-chance exception at 0x755ac41f in Test.exe: Microsoft C++ > exception: boost::python::error_already_set at memory location 0x0039fb60.. >

Re: [C++-sig] problem embedding python - very simple example

2012-11-06 Thread Cory Riddell
Argh! I didn't notice that the example code I was trying was using file() rather than open(). Sheeesh. After correcting this, I was able to get it to work successfully! Step one on the thousand mile journey is complete! Cory On 11/6/2012 1:40 PM, Cory Riddell wrote: > I downloaded and installed

[C++-sig] problem embedding python - very simple example

2012-11-06 Thread Cory Riddell
I downloaded and installed the 32-bit version of Python 3.3. I downloaded and compiled boost-1.52.0. I've been able to build and run the tutorial Python extension but haven't been able to get anything but the most trivial example of embedding to work. My code (which compiles with no warnings):