Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <000701c3d4cf$2ebc0a60$020aa8c0@alejo> From: "Manuel Tejada" To: Subject: I can't import pgdb modulo using Python Date: Tue, 6 Jan 2004 22:34:38 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Hello Everybody: I am using Cygwin on Windows ME. When I had Python 2.3.2 installred I tried to import pgdb module to make a connection to PostgreSQL 7.4 but never made a succeed importing "pgdb". See in the next lines why: -------------------------- >>> import pgdb Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.3/site-packages/pgdb.py", line 56, in ? ImportError: No module named _pg >>> ------------------------------ I looked for "/usr/lib/python2.3/site-packages/pgdb.py" but my "/usr/lib" directory is empty. Besides I don't have the pgdb.py file, I only have pgdb.pyc file located in "/lib/python2.3/site-packages" directory. I can open the pgdb.pyc but I can't read it. Really I don't know why I get this message and I don't know what to do. Recently I upgraded to Python 2.3.3 and I thought that now It was possible to import the pgdb module. But again the ouptput is the same: -------------------------- >>> import pgdb Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.3/site-packages/pgdb.py", line 56, in ? ImportError: No module named _pg >>> ------------------------------ The comments I made lines up, about the existence of pgdb.py and the llocation of pgdb.pyc, etc, can be applied here. Does anyone tell me what must I do? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/