Re: Error en Python con Postgres en: import pgdb

Lists: pgsql-es-ayuda
From: Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Error en Python con Postgres en: import pgdb
Date: 2007-06-03 03:50:39
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-es-ayuda

Hola: soy nuevo en esto de postgres y python ... estoy tratando de compilar
un codigo pero me genera un error al importar las librerias:
import pgdb
import pg

y el programa Dr. Python me marca el siguiente error:
/usr/bin/python -u "/home/jalitrox/interfaz/Codigofuente/interfaz.py"
sys:1: DeprecationWarning: Non-ASCII character '\xc3' in file
/home/jalitrox/interfaz/Codigofuente/interfaz.py on line 50, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details
Traceback (most recent call last):
File "/home/jalitrox/interfaz/Codigofuente/interfaz.py", line 9, in ?
import pgdb
ImportError: No module named pgdb

ojala me puedan ayudar

muchas gracias!!

_________________________________________________________________
MSN Latino: el sitio MSN para los hispanos en EE.UU. http://latino.msn.com/


From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Error en Python con Postgres en: import pgdb
Date: 2007-06-03 04:36:38
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-es-ayuda

On 6/3/07, Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com> wrote:
> Hola: soy nuevo en esto de postgres y python ... estoy tratando de compilar
> un codigo pero me genera un error al importar las librerias:
> import pgdb
> import pg
>

que libreria de python estas usando para conectarte a postgres?

--
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook


From: Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com>
To: systemguards(at)gmail(dot)com
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Error en Python con Postgres en: import pgdb
Date: 2007-06-03 05:06:47
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-es-ayuda

Este es una interfaz para conectar a la BD... Muestro el codigo:

"""
nombre del modulo : conectarMd.py
descripcion : ventana, ingreso de datos de la conexiòn
entrada : None
salida : valorRetorno(string de conexiòn)

"""
########################################################################################
# librerias modulo conexiòn
########################################################################################
from Tkinter import *
from string import split, strip, join,upper#librerias de tratamiento
string
from Dialog import Dialog
import tkMessageBox#libreria para mensajes similar a msgbox
import pgdb#libreria de conexion a la base de datos, para crear BD
import pg#libreria de conexion a la base de datos, utilizada para funciones
con BD
########################################################################################

########################################################################################
########################################################################################
#funcion que crea la ventana de conexion,
#entrada
#salida
#descripcion
########################################################################################
def FuncGL_conectar(Vent_Principal):
global
Vent_ConectarBaseDatos,Entr_ServidorBaseDatosConexion,Entr_LoginBaseDatosConexion
global
Entr_PasswordBaseDatosConexion,Entr_NombreBaseDatosConexion,Entr_PuertoBaseDatosConexion
global valorRetorno
global vntConectar
global cancel

cancel = -1
vntConectar=Toplevel(Vent_Principal)
vntConectar.transient(Vent_Principal)
vntConectar.grab_set()
vntConectar.geometry("+350+250")
vntConectar.maxsize(width=310,height=165)
vntConectar.minsize(width=310,height=165)
vntConectar.iconname('pepito')

Fram_Linea=Frame(vntConectar,borderwidth=2)
Fram_Linea.pack(side=TOP,expand=YES,fill=X)

Canv_Linea=Canvas(Fram_Linea,width="5i",height="0",bg="#A8A5A6",bd=1)
Canv_Linea.pack(side=TOP)

Fram_ServidorBaseDatosConexion=Frame(vntConectar)
Fram_ServidorBaseDatosConexion.pack(side=TOP, expand=YES, fill=X)

Labl_ServidorBaseDatosConexion=Label(Fram_ServidorBaseDatosConexion,text='Servidor',width=13)
Labl_ServidorBaseDatosConexion.pack(side=LEFT)

Entr_ServidorBaseDatosConexion=Entry(Fram_ServidorBaseDatosConexion,width=28)
Entr_ServidorBaseDatosConexion.pack(side=LEFT)
Entr_ServidorBaseDatosConexion.focus_set()
Entr_ServidorBaseDatosConexion['font']=('helvetica','12','bold')

Entr_ServidorBaseDatosConexion.bind('<KeyPress>',FuncLC_ValidarEnterConectarBaseDatos)

Fram_NombreBaseDatosConexion = Frame(vntConectar)
Fram_NombreBaseDatosConexion.pack(side=TOP, expand=YES, fill=X)
Labl_NombreBaseDatosConexion =
Label(Fram_NombreBaseDatosConexion,text=' Base de Datos ',width=13)
Labl_NombreBaseDatosConexion.pack(side=LEFT)
Entr_NombreBaseDatosConexion =
Entry(Fram_NombreBaseDatosConexion,width=28)
Entr_NombreBaseDatosConexion.pack(side=LEFT)
Entr_NombreBaseDatosConexion['font']=('helvetica','12','bold')

Entr_NombreBaseDatosConexion.bind('<KeyPress>',FuncLC_ValidarEnterConectarBaseDatos)

Fram_PuertoBaseDatosConexion = Frame(vntConectar)
Fram_PuertoBaseDatosConexion.pack(side=TOP, expand=YES, fill=X)
Labl_PuertoBaseDatosConexion =
Label(Fram_PuertoBaseDatosConexion,text='Puerto',width=13)
Labl_PuertoBaseDatosConexion.pack(side=LEFT)
Entr_PuertoBaseDatosConexion = Entry(Fram_PuertoBaseDatosConexion,
width=10)
Entr_PuertoBaseDatosConexion.pack(side=LEFT)
Entr_PuertoBaseDatosConexion['font']=('helvetica','12','bold')

Entr_PuertoBaseDatosConexion.bind('<KeyPress>',FuncLC_ValidarEnterConectarBaseDatos)

Fram_LoginBaseDatosConexion=Frame(vntConectar)
Fram_LoginBaseDatosConexion.pack(side=TOP,expand=YES,fill=X)

Labl_LoginBaseDatosConexion=Label(Fram_LoginBaseDatosConexion,text='Login',width=13)
Labl_LoginBaseDatosConexion.pack(side=LEFT)

Entr_LoginBaseDatosConexion=Entry(Fram_LoginBaseDatosConexion,width=28)
Entr_LoginBaseDatosConexion.pack(side=LEFT)
Entr_LoginBaseDatosConexion['font']=('helvetica','12','bold')

Entr_LoginBaseDatosConexion.bind('<KeyPress>',FuncLC_ValidarEnterConectarBaseDatos)

Fram_PasswordBaseDatosConexion=Frame(vntConectar)
Fram_PasswordBaseDatosConexion.pack(side=TOP,expand=YES,fill=X)

Labl_PasswordBaseDatosConexion=Label(Fram_PasswordBaseDatosConexion,text='Password',width=13)
Labl_PasswordBaseDatosConexion.pack(side=LEFT)

Entr_PasswordBaseDatosConexion=Entry(Fram_PasswordBaseDatosConexion,width=28,show="*")
Entr_PasswordBaseDatosConexion.pack(side=LEFT)
Entr_PasswordBaseDatosConexion['font']=('helvetica','12','bold')

Entr_PasswordBaseDatosConexion.bind('<KeyPress>',FuncLC_ValidarEnterConectarBaseDatos)

Fram_Botones=Frame(vntConectar)
Fram_Botones.pack(side=TOP,expand=YES,fill=X)
Labl_Espacio=Label(Fram_Botones,width=18,text=' ')
Labl_Espacio.pack(side=LEFT)

def FuncLC_conectar(vntConectar=vntConectar):
global valorRetorno
valorRetorno=FuncLC_ConectarBaseDatosSQL()
if valorRetorno<>[]:
vntConectar.quit()

def FuncLC_cancel(vntConectr=vntConectar):
global valorRetorno
valorRetorno = cancel
vntConectar.quit()


Btn_ConectarBaseDatosConexion=Button(Fram_Botones,text="Conectar",width=8,command=FuncLC_conectar)
Btn_ConectarBaseDatosConexion.pack(side=LEFT,anchor=SE)

Btn_CancelarBaseDatosConexion=Button(Fram_Botones,text="Cancelar",width=8,command=FuncLC_cancel)
Btn_CancelarBaseDatosConexion.pack(side=LEFT,anchor=SE)

try:
Arch_DatosConexion=open("datos_conexion","r")
Str_ServidorConexion=str(Arch_DatosConexion.readline())

Str_ServidorConexion=Str_ServidorConexion[0:len(Str_ServidorConexion)-1]
Entr_ServidorBaseDatosConexion.insert(0,Str_ServidorConexion)
Str_NombreBaseDatosConexion=Arch_DatosConexion.readline()

Str_NombreBaseDatosConexion=Str_NombreBaseDatosConexion[0:len(Str_NombreBaseDatosConexion)-1]

Entr_NombreBaseDatosConexion.insert(0,Str_NombreBaseDatosConexion)
Str_PuertoConexion=Arch_DatosConexion.readline()

Str_PuertoConexion=Str_PuertoConexion[0:len(Str_PuertoConexion)-1]
Entr_PuertoBaseDatosConexion.insert(0,Str_PuertoConexion)
Str_UsuarioConexion=Arch_DatosConexion.readline()

Str_UsuarioConexion=Str_UsuarioConexion[0:len(Str_UsuarioConexion)-1]
Entr_LoginBaseDatosConexion.insert(0,Str_UsuarioConexion)
Arch_DatosConexion.close()
except:
Arch_DatosConexion=open("datos_conexion","a")
Arch_DatosConexion.close
if Entr_ServidorBaseDatosConexion.get()!='':
Entr_PasswordBaseDatosConexion.focus_set()

Btn_ConectarBaseDatosConexion.mainloop()
vntConectar.destroy()
return valorRetorno

#captura los valores ingresados en la ventana "conexion", para armar el
string de conexion
#entrada
#salida
#descripcion
def FuncLC_ValidarEnterConectarBaseDatos(evento):
global valorRetorno
if evento.keycode==36 or evento.keycode==108:
valorRetorno=FuncLC_ConectarBaseDatosSQL()
if valorRetorno<>[]:
vntConectar.quit()

def FuncLC_ConectarBaseDatosSQL():

global
cursor,conexion,base_datos,usuario,grupo,conexion,tablas,explorador,vista,Bool_Conectado
global
Str_LoFuncLC_ConectarBaseDatosSQLginBaseDatos,Str_PasswordBaseDatos,Str_NombreBaseDatos,Str_Host,Str_Puerto
global sqlfinal

global vntConectar
sqlfinal=[]
if strip(Entr_ServidorBaseDatosConexion.get())=='':
vntConectar.bell() #advertencia
tkMessageBox.showerror("Conectar Base de Datos", "Ingresar el
Servidor de la Base de Datos",parent=vntConectar)
Entr_ServidorBaseDatosConexion.focus_set()
return sqlfinal
elif strip(Entr_NombreBaseDatosConexion.get())=='':
vntConectar.bell() #advertencia
tkMessageBox.showerror("Conectar Base de Datos", "Ingresar el
Nombre de la Base de Datos",parent=vntConectar)
Entr_NombreBaseDatosConexion.focus_set()
return sqlfinal
elif strip(Entr_PuertoBaseDatosConexion.get())=='':
vntConectar.bell()
tkMessageBox.showerror("Conectar Base de Datos", "Ingresar el
Puerto de conexion a la Base de Datos",parent=vntConectar)
Entr_PuertoBaseDatosConexion.focus_set()
return sqlfinal
elif strip(Entr_LoginBaseDatosConexion.get())=='':
vntConectar.bell() #advertencia
tkMessageBox.showerror("Conectar Base de Datos","Ingresar el
Nombre del Usuario de la Base de Datos",parent=vntConectar)
Entr_LoginBaseDatosConexion.focus_set()
return sqlfinal
elif strip(Entr_PasswordBaseDatosConexion.get())=='':
vntConectar.bell() #advertencia
tkMessageBox.showerror("Conectar Base Datos","Ingresar la
Password de Usuario de la Base de Datos",parent=vntConectar)
Entr_PasswordBaseDatosConexion.focus_set()
return sqlfinal

Str_LoginBaseDatos=strip(Entr_LoginBaseDatosConexion.get())
Str_PasswordBaseDatos=strip(Entr_PasswordBaseDatosConexion.get())
Str_NombreBaseDatos=strip(Entr_NombreBaseDatosConexion.get())
Str_Host=strip(Entr_ServidorBaseDatosConexion.get())
Str_Puerto=strip(Entr_PuertoBaseDatosConexion.get())

sqlfinal.append(Str_Host+':'+Str_Puerto)
sqlfinal.append(Str_LoginBaseDatos)
sqlfinal.append(Str_PasswordBaseDatos)
sqlfinal.append(Str_NombreBaseDatos)

sqlfinal.append(Str_Host)
sqlfinal.append(Str_Puerto)

try:
conexion=pgdb.connect(host=sqlfinal[0]
,user=sqlfinal[1],password=sqlfinal[2] ,database=sqlfinal[3])
cursor=conexion.cursor()

Arch_DatosConexion=open("datos_conexion","w")
Arch_DatosConexion.write(Str_Host+"\n")
Arch_DatosConexion.write(Str_NombreBaseDatos+"\n")
Arch_DatosConexion.write(Str_Puerto+"\n")
Arch_DatosConexion.write(Str_LoginBaseDatos+"\n")
Arch_DatosConexion.close()

except:
tkMessageBox.showerror("Conectar Base Datos","Error en datos de
conexion",parent=vntConectar)
sqlfinal=[]
return sqlfinal

return sqlfinal

if __name__ == '__main__':
File()

>From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
>To: "Alejandro Sepúlveda Sotomayor" <jalitrox(at)msn(dot)com>
>CC: pgsql-es-ayuda(at)postgresql(dot)org
>Subject: Re: [pgsql-es-ayuda] Error en Python con Postgres en: import pgdb
>Date: Sun, 3 Jun 2007 04:36:38 +0000
>
>On 6/3/07, Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com> wrote:
>>Hola: soy nuevo en esto de postgres y python ... estoy tratando de
>>compilar
>>un codigo pero me genera un error al importar las librerias:
>>import pgdb
>>import pg
>>
>
>que libreria de python estas usando para conectarte a postgres?
>
>--
>Atentamente,
>Jaime Casanova
>
>"Programming today is a race between software engineers striving to
>build bigger and better idiot-proof programs and the universe trying
>to produce bigger and better idiots.
>So far, the universe is winning."
> Richard Cook
>
>---------------------------(fin del mensaje)---------------------------
>TIP 3: si publicas/lees desde Usenet, por favor envía "subscribe-nomail"
> a majordomo(at)postgresql(dot)org para que tus mensajes puedan llegar
> a los suscriptores de la lista

_________________________________________________________________
MSN Latino: el sitio MSN para los hispanos en EE.UU. http://latino.msn.com/


From: "Mario Gonzalez" <gonzalemario(at)gmail(dot)com>
To: Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Error en Python con Postgres en: import pgdb
Date: 2007-06-03 05:15:37
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-es-ayuda

On 02/06/07, Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com> wrote:
> /usr/bin/python -u "/home/jalitrox/interfaz/Codigofuente/interfaz.py"
> sys:1: DeprecationWarning: Non-ASCII character '\xc3' in file
> /home/jalitrox/interfaz/Codigofuente/interfaz.py on line 50, but no encoding
> declared; see http://www.python.org/peps/pep-0263.html for details
> Traceback (most recent call last):
> File "/home/jalitrox/interfaz/Codigofuente/interfaz.py", line 9, in ?
> import pgdb
> ImportError: No module named pgdb
>

Ese es el error, python no puede encontrar el modulo pgdb sin
embargo te recomiendo que uses otro modulo llamado psycopg para
conectarte a postgres.

Recuerda ademas que la forma que python se conecta a una DB es a
traves de una DB-API, lo que quiere decir que siempre los metodos van
a ser iguales y solo el driver es el que cambiara. Ej:

1- import psicopg as driver
2- con = driver.connect("host=1.2.3.4 dbname="db")
3- cursor = con.cursor()
4- cursor.execute("SELECT * FROM pg_shadow")
5- values = cursor.dicfetchall()

Entonces la linea 1 va a cambiar.

>

--
http://www.advogato.org/person/mgonzalez/


From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Error en Python con Postgres en: import pgdb
Date: 2007-06-03 05:49:57
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-es-ayuda

On 6/3/07, Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com> wrote:
> Este es una interfaz para conectar a la BD... Muestro el codigo:
>

obviamente no me hice entender, lo que queria saber es el nombre del
driver (psycopg2 o pygresql)

pero ya encontre que es pygresql asi que te recomendaria que leas aca:
http://www.pygresql.org/install.html

entre otras cosas ahi dice:
"
PyGreSQL will be installed as three modules, a dynamic module called
_pg.pyd, and two pure Python wrapper modules called pg.py and pgdb.py.
All three files will be installed directly into the Python
site-packages directory. To uninstall PyGreSQL, simply remove these
three files again.
"

asi que yo revisaria que en el directorio site-packages de tu
instalacion de python esten esos 3 archivos y que la variable de
ambiente PYTHONDIR (aso creo que se llama) este seteada

--
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook


From: Alejandro Sepúlveda Sotomayor <jalitrox(at)msn(dot)com>
To: systemguards(at)gmail(dot)com
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Error en Python con Postgres en: import pgdb
Date: 2007-06-03 20:55:15
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-es-ayuda

<html><div style='background-color:'><P>muchas gracias, finalmente tan solo con el sinaptics instale el phyton-<FONT size=2>pygresql&nbsp; y asi pude probra el codigo q tenia.</FONT><BR><BR>adios!!!!</P>
<DIV>------------------------------------------------------&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <IMG height=16 src="http://graphics.hotmail.com/emarrow_right.gif" width=16><EM><STRONG><FONT face="Lucida Handwriting, Cursive">Alejandro Sepúlveda Sotomayor&nbsp;<BR></FONT></STRONG></EM><FONT color=#996666>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <IMG height=16 src="http://graphics.hotmail.com/emwww_link.gif" width=16><A href="http://www.jalitrox.cl.kz/"><FONT color=#006666>http://www.jalitrox.cl.kz</FONT></A></FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=12 src="http://graphics.hotmail.com/ememail.gif" width=12> <FONT face="Garamond, Times, Serif" color=#0000cc><A href="mailto:jalitrox(at)msn(dot)com">jalitrox(at)msn(dot)com</A></FONT></DIV>
<DIV><FONT face=Garamond color=#0000cc>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=19 src="http://graphics.hotmail.com/i.p.emphone.gif" width=19>&nbsp;&nbsp;08 - 4895394</FONT></DIV>
<DIV><FONT face=Garamond color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
From: <I>"Jaime Casanova" &lt;systemguards(at)gmail(dot)com&gt;</I><BR>To: <I>"Alejandro Sepúlveda Sotomayor" &lt;jalitrox(at)msn(dot)com&gt;</I><BR>CC: <I>pgsql-es-ayuda(at)postgresql(dot)org</I><BR>Subject: <I>Re: [pgsql-es-ayuda] Error en Python con Postgres en: import pgdb</I><BR>Date: <I>Sun, 3 Jun 2007 05:49:57 +0000</I><BR>MIME-Version: <I>1.0</I><BR>Received: <I>from postgresql.org ([200.46.204.71]) by bay0-mc8-f12.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Sat, 2 Jun 2007 22:51:41 -0700</I><BR>Received: <I>from localhost (maia-4.hub.org [200.46.204.183])by postgresql.org (Postfix) with ESMTP id 6BD4E9FB66D;Sun, 3 Jun 2007 02:51:40 -0300 (ADT)</I><BR>Received: <I>from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 75077-01; Sun, 3 Jun 2007 02:51:39 -0300 (ADT)</I><BR>Received: <I>from postgresql.org (postgresql.org
[200.46.204.71])by postgresql.org (Postfix) with ESMTP id C98729FB56C;Sun, 3 Jun 2007 02:51:38 -0300 (ADT)</I><BR>Received: <I>from localhost (maia-5.hub.org [200.46.204.182])by postgresql.org (Postfix) with ESMTP id 18C149FB53Afor &lt;pgsql-es-ayuda-postgresql(dot)org(at)postgresql(dot)org&gt;; Sun, 3 Jun 2007 02:50:04 -0300 (ADT)</I><BR>Received: <I>from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 52977-08 for &lt;pgsql-es-ayuda-postgresql(dot)org(at)postgresql(dot)org&gt;; Sun, 3 Jun 2007 02:49:58 -0300 (ADT)</I><BR>Received: <I>from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250])by postgresql.org (Postfix) with ESMTP id 740D99FB528for &lt;pgsql-es-ayuda(at)postgresql(dot)org&gt;; Sun, 3 Jun 2007 02:49:59 -0300 (ADT)</I><BR>Received: <I>by an-out-0708.google.com with SMTP id c36so256104ana for
&lt;pgsql-es-ayuda(at)postgresql(dot)org&gt;; Sat, 02 Jun 2007 22:49:58 -0700 (PDT)</I><BR>Received: <I>by 10.100.209.10 with SMTP id h10mr1904696ang.1180849797741; Sat, 02 Jun 2007 22:49:57 -0700 (PDT)</I><BR>Received: <I>by 10.100.153.6 with HTTP; Sat, 2 Jun 2007 22:49:57 -0700 (PDT)</I><BR>&gt;On 6/3/07, Alejandro Sepúlveda Sotomayor &lt;jalitrox(at)msn(dot)com&gt; wrote:<BR>&gt;&gt;Este es una interfaz para conectar a la BD... Muestro el codigo:<BR>&gt;&gt;<BR>&gt;<BR>&gt;obviamente no me hice entender, lo que queria saber es el nombre del<BR>&gt;driver (psycopg2 o pygresql)<BR>&gt;<BR>&gt;pero ya encontre que es pygresql asi que te recomendaria que leas <BR>&gt;aca:<BR>&gt;http://www.pygresql.org/install.html<BR>&gt;<BR>&gt;entre otras cosas ahi dice:<BR>&gt;"<BR>&gt;PyGreSQL will be installed as three modules, a dynamic module called<BR>&gt;_pg.pyd, and two pure Python wrapper modules called
pg.py and <BR>&gt;pgdb.py.<BR>&gt;All three files will be installed directly into the Python<BR>&gt;site-packages directory. To uninstall PyGreSQL, simply remove these<BR>&gt;three files again.<BR>&gt;"<BR>&gt;<BR>&gt;asi que yo revisaria que en el directorio site-packages de tu<BR>&gt;instalacion de python esten esos 3 archivos y que la variable de<BR>&gt;ambiente PYTHONDIR (aso creo que se llama) este seteada<BR>&gt;<BR>&gt;--<BR>&gt;Atentamente,<BR>&gt;Jaime Casanova<BR>&gt;<BR>&gt;"Programming today is a race between software engineers striving to<BR>&gt;build bigger and better idiot-proof programs and the universe trying<BR>&gt;to produce bigger and better idiots.<BR>&gt;So far, the universe is winning."<BR>&gt; Richard Cook<BR>&gt;<BR>&gt;---------------------------(fin del <BR>&gt;mensaje)---------------------------<BR>&gt;TIP 1: para suscribirte y desuscribirte, visita
<BR>&gt;http://archives.postgresql.org/pgsql-es-ayuda<BR></FONT></BLOCKQUOTE></div><br clear=all><hr>Consigue aquí las mejores y mas recientes ofertas de trabajo EE.UU. <a href="http://g.msn.com/8HMBESUS/2737??PS=47575" target="_top">Clic aquí</a> </html>

Attachment Content-Type Size
unknown_filename text/html 5.4 KB