From abdulet at gmail.com Mon Jul 22 08:40:36 2013 From: abdulet at gmail.com (=?ISO-8859-1?Q?Abdul_Pallar=E9s?=) Date: Mon, 22 Jul 2013 06:40:36 -0000 Subject: [capi-sig] Fwd: Error embedding datetime in In-Reply-To: References: Message-ID: 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 import sqlite3 ', ' File "/usr/lib/python2.7/sqlite3/__init__.py", line 24, in from dbapi2 import * ', ' File "/usr/lib/python2.7/sqlite3/dbapi2.py", line 24, in 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 From abdul at riereta.net Thu Jul 18 13:58:43 2013 From: abdul at riereta.net (=?ISO-8859-1?Q?Abdul_Pallar=E9s?=) Date: Thu, 18 Jul 2013 11:58:43 -0000 Subject: [capi-sig] Error embedding datetime in Message-ID: 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 import sqlite3 ', ' File "/usr/lib/python2.7/sqlite3/__init__.py", line 24, in from dbapi2 import * ', ' File "/usr/lib/python2.7/sqlite3/dbapi2.py", line 24, in 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