Re: [capi-sig] Fwd: Error embedding datetime in
Does your C++ application link to the right version of the Python .so file (ldd yourapp) ?
On Mon, Jul 22, 2013 at 2:39 AM, Abdul Pallarés <abdulet@gmail.com> wrote:
Hi All
I'm trying to import sqlite3 in a program embedded in an c++ ecap module. Everithing goes well when running from python, but when running from C++ I get this exception:
'Traceback (most recent call last): ', ' File "/usr/local/squid/bin/putAdds.py", line 4, in <module> import sqlite3 ', ' File "/usr/lib/python2.7/sqlite3/__init__.py", line 24, in <module> from dbapi2 import * ', ' File "/usr/lib/python2.7/sqlite3/dbapi2.py", line 24, in <module> import datetime ', 'ImportError: /usr/lib/python2.7/lib-dynload/datetime.i386-linux-gnu.so: undefined symbol: PyExc_SystemError
Any ideas on how to solve that? must I compile the datetime module with some special feature
I'm running this in a Ubuntu 13.04 machine
Thanks in advance Abdul
capi-sig mailing list capi-sig@python.org http://mail.python.org/mailman/listinfo/capi-sig
-- Francis Bolduc, B.Sc. Software developper | Développeur logiciel CM Labs Simulations, Inc. p: +1 514 287-1166 x287 | www.vxsim.com
participants (1)
-
Francis Bolduc