From francis.bolduc at cm-labs.com Mon Aug 19 13:21:22 2013 From: francis.bolduc at cm-labs.com (Francis Bolduc) Date: Mon, 19 Aug 2013 07:21:22 -0400 Subject: [capi-sig] Fwd: Error embedding datetime in In-Reply-To: References: Message-ID: 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 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 > 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 > _______________________________________________ > capi-sig mailing list > capi-sig at 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 From abdul at riereta.net Mon Aug 19 14:30:38 2013 From: abdul at riereta.net (=?ISO-8859-1?Q?Abdul_Pallar=E9s?=) Date: Mon, 19 Aug 2013 14:30:38 +0200 Subject: [capi-sig] Fwd: Error embedding datetime in In-Reply-To: References: Message-ID: 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 > 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 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 > > 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 > > _______________________________________________ > > capi-sig mailing list > > capi-sig at 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 at python.org > http://mail.python.org/mailman/listinfo/capi-sig >