Skip site navigation (1) Skip section navigation (2)

Problems with Python 3.2.

From: Nicklas Börjesson <Nicklas(dot)Borjesson(at)ws(dot)se>
To: <psycopg(at)postgresql(dot)org>
Subject: Problems with Python 3.2.
Date: 2011-09-25 21:25:16
Message-ID: B73E4E48704A3A43B786A9078FF1BC6D02756FAB@wsmail01.ws.se (view raw or flat)
Thread:
Lists: psycopg
Hi all,
My name is Nicklas, new to the list.

Well I'll get to it, I try and import psycopg2 using Python 3.2, and then I get this error:
  File "/test.py", line 46, in ConnectToDB
    import psycopg2
  File "/usr/local/lib/python3.2/dist-packages/psycopg2/__init__.py", line 67, in <module>
    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: /usr/local/lib/python3.2/dist-packages/psycopg2/_psycopg.so: undefined symbol: _Py_ZeroStruct

Since i have multiple python versions, I have simply build the package(python setup.py build) and copied the contents to the place where packages seem to end up(/usr/local/lib/python3.2/dist-packages/).

I am having a similar problem with pyodbc.

//Nicklas Börjesson


Responses

psycopg by date

Next:From: Daniele VarrazzoDate: 2011-09-26 05:13:45
Subject: Re: Problems with Python 3.2.
Previous:From: OswaldoDate: 2011-09-17 11:25:11
Subject: Re: Notices during execution

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group