This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rinatous
Recipients rinatous
Date 2013-10-03.16:36:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380818213.13.0.0445211197564.issue19153@psf.upfronthosting.co.za>
In-reply-to
Content
I have same error as here described http://bugs.python.org/issue4434

I made everythings according this article http://docs.python.org/2/extending/embedding.html#compiling-and-linking-under-unix-like-systems and more but when i try to call interpriter from C++ it fails with errors

python_support::pre_process_payment() failed
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<hidden-path>/payments/__init__.py", line 1, in <module>
    from .factory import *
  File "<hidden-path>/payments/factory.py", line 7, in <module>
    import psycopg2
  File "/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py", line 50, in <module>
    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: /usr/local/lib/python2.7/dist-packages/psycopg2/_psycopg.so: undefined symbol: PyExc_SystemError
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 16, in <module>
    from xml.parsers.expat import ExpatError
  File "/usr/lib/python2.7/xml/parsers/expat.py", line 4, in <module>
    from pyexpat import *
ImportError: /usr/lib/python2.7/lib-dynload/pyexpat.so: undefined symbol: _Py_ZeroStruct

Original exception was:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<hidden-path>/payments/__init__.py", line 1, in <module>
    from .factory import *
  File "<hidden-path>/payments/factory.py", line 7, in <module>
    import psycopg2
  File "/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py", line 50, in <module>
    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: /usr/local/lib/python2.7/dist-packages/psycopg2/_psycopg.so: undefined symbol: PyExc_SystemError


Environment
3.2.0-54-generic-pae #82-Ubuntu (12.04)
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Boost.Python 1.48
Python 2.7.3 (default, Sep 26 2013, 20:08:41) 
[GCC 4.6.3] on linux2

No custom builds. Every package from ubuntu repository. Psycopg2 installed by pip

Project is big so i can't to provide code
History
Date User Action Args
2013-10-03 16:36:53rinatoussetrecipients: + rinatous
2013-10-03 16:36:53rinatoussetmessageid: <1380818213.13.0.0445211197564.issue19153@psf.upfronthosting.co.za>
2013-10-03 16:36:53rinatouslinkissue19153 messages
2013-10-03 16:36:52rinatouscreate