Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3722140
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:47:49+00:00 2026-05-19T05:47:49+00:00

Am I alone who tried to use following combination: boost_1_45_0, MSVC 10, Python31 ?

  • 0

Am I alone who tried to use following combination:
boost_1_45_0, MSVC 10, Python31 ?

I have discovered that basic sample from boost (boost_1_45_0\libs\python\example\quickstart\embedding.cpp) Neither compiled (I found how to fix it see below) nor works.
Compile time problem:

if (PyImport_AppendInittab("embedded_hello", initembedded_hello) == -1)
  throw std::runtime_error("Failed to add embedded_hello to the interpreter's "
             "builtin modules");

I have discovered that correct name is not initembedded_hello but init_module_embedded_hello. So my first question am I right about this renaming?

The second problem is SystemError: NULL result without error in PyObject_Call when importing my declared module:

from embedded_hello import *

Commenting out importing shows that internal python’s modules (like a io) works fine. So the second question what the problem with importing?

Any help would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T05:47:50+00:00Added an answer on May 19, 2026 at 5:47 am

    Use PyInit_embedded_hello instead of initembedded_hello for Python 3. Works for me with msvc9.

    Apparently quickstart\embedding.cpp has not been updated for Python 3. Take a look at pyhon/test/exec.cpp, which is similar and up to date.

    Msvc10 uses a different C runtime library than Python, which might lead to runtime crashes. The recommended compiler for building Python 2.6, 2.7, 3.1, and 3.2 extensions is msvc9, or a compiler that links against vc90crt.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been inspired by yehuda katz ( http://yehudakatz.com/2010/07/29/everyone-who-tried-to-convince-me-to-use-vim-was-wrong/ ) to start using Vi (or
Is there a stand-alone GUI designer that can read and write the .form files
I have created a great stand-alone web form in asp.net utilizing many jQuery features
Do you know any stand-alone client or web tool (like grc ) that could
Lets say I have a C++ program and I want to call functions from
I have the following scenario. A cube created in SSAS 2008. I can connected
I am developing an Android app and have already found out that different Android
I'm trying to pull back a list of items that have a specific type
Well, I am not alone who is being sick of magical strings which are
I think this question may be fairly evident from the title alone: I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.