我是否曾試圖使用以下組合: boost_1_45_0,MSVC 10,Python31? (boost_1_45_0 \ libs \ python \ example \ quickstart \ embedding.cpp)既沒有編譯(我發現如何修復它,見下文),也沒有工作。 編譯時間問題:提升Python示例失敗兩次
if (PyImport_AppendInittab("embedded_hello", initembedded_hello) == -1)
throw std::runtime_error("Failed to add embedded_hello to the interpreter's "
"builtin modules");
我發現,正確的名稱是不是initembedded_hello但init_module_embedded_hello。所以我的第一個問題是關於這個重命名的問題嗎?
第二個問題是SystemError: NULL result without error in PyObject_Call
導入我的聲明模塊時:
from embedded_hello import *
註釋掉進口表明,內部Python的模塊(如IO)工作正常。那麼第二個問題是什麼問題導入?
任何幫助,將不勝感激!
一切都建成64位/ 32位? – GWW 2011-01-11 16:24:59
@GWW - 這是32 – Dewfy 2011-01-12 12:30:32