postgres - python
christianjcj
christianjcj en iem.umsa.bo
Lun Ene 17 23:07:43 CET 2005
Saludos Estimados.
Perdon por la falta de detalle del mensaje enviado mil disculpas a los que
respondieron
y gracias por las respuestas//....:0
El SO que estoy usando es Knoppix 3.1
El programa que estoy tratando de correr es prueva2.py:
from _pg import *
db = _pg.connect("estadistica","localhost")
print db.query("SELECT * FROM z_personascj")
db.close
------
tengo los siguentes errores
root@:/dir/migracion# python prueba2.py
Traceback (most recent call last):
File "prueba2.py", line 2, in ?
from _pg import *
ImportError: No module named _pg
---------------
Cuando trato de instalar con:: apt-get install python-dev
Tengo el siguente error::
root@:/dir/migracion# apt-get install python-dev
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
php4-cli: Depends: php4-common (= 4:4.3.9-1) but it is not going to be installed
php4-pear: Depends: php4-common (>= 4:4.3.9-1) but it is not going to be installed
python-dev: Depends: python2.3-dev (>= 2.3.4-8) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a
solution).
root@:/dir/migracion#
--------------------------------------------
Y cuando trato de instalar el python-pygresql tengo el siguente problema ::
root@:~# apt-get -f install python-pygresql
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
php4-cli: Depends: php4-common (= 4:4.3.9-1) but it is not going to be installed
php4-pear: Depends: php4-common (>= 4:4.3.9-1) but it is not going to be installed
python-pygresql: Depends: python2.3-pygresql but it is not going to be installed
Depends: python-egenix-mxdatetime but it is not going to be
installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a
solution).
root@:~#
Por lo que veo en la lista son muy buenos por los temas que manejan.. ...
Realmente son brillantes ,, por favor espero una ayuda ...:)
Atte. Christianjcj
Más información sobre la lista de distribución Python-es