delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/06/22:34:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <mantemu AT terra DOT com DOT pe>
To: <cygwin AT cygwin DOT com>
Subject: I can't import pgdb modulo using Python
Date: Tue, 6 Jan 2004 22:34:38 -0500
MIME-Version: 1.0
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 "<stdin>", 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 "<stdin>", 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019