python - No module named sqlite3 exception -
i'm using boost::python
in visual c++ application , have script wants connect sqlite database , read data it.
in script, imported sqlite3
, works fine when run python idle but, when runs inside visual c++ application, exception:
no module named _sqlite3
can tell me why happens? did miss here?
even line in code returns same exception:
boost::python::object objsqlite3 = boost::python::import("sqlite3");
i found problem!!!
i install python
via inno setup
in silent mode. first time since there no python
on system libraries copy if u again since try install python
again (/i)
, how mess library sqlite3
.
so u need change inno setup
script reinstall python
if exists (/a)
.
ps : if have problem , don't use inno setup
reinstall python
fix problem.
best regards
Comments
Post a Comment