Re: [capi-sig] Fwd: Error embedding datetime in
Hi Francis,
Thanks for the response, it is a problem of the Ubuntu package for Python-dev package after compiling python it works properly
Thanks again Abdul
2013/8/19 Francis Bolduc <francis.bolduc@cm-labs.com>
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
capi-sig mailing list capi-sig@python.org http://mail.python.org/mailman/listinfo/capi-sig
participants (1)
-
Abdul Pallarés