This line of the messages shows your problem:
Using database URI postgres://[EMAIL PROTECTED]/celpebras
You need to set a username and hostname in the URI. Although you
might find that postgres:///celpebras 'just works' (assuming celpebras
is your db. Note the three slashes).
Ed
On 4/4/07, Bruno Nascimento <[EMAIL PROTECTED]> wrote:
>
> Oi
> I am trying to use postgres in my application...but is occurring a
> stranger problem...
> what kind error is this?
>
> Thanks
> Bruno Nascimento
>
> It follows the generated message:
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> C:\Python24\Scripts\celpebras>tg-admin sql create
> win32api not installed
> Using database URI postgres://[EMAIL PROTECTED]/celpebras
> Traceback (most recent call last):
> File "C:\Python24\Scripts\celpebras\tg-admin-script.py", line 7,
> in ?
> sys.exit(
> File "C:\Python24\lib\site-packages\turbogears-1.0.1-py2.4.egg
> \turbogears\comm
> and\base.py", line 389, in main
> command.run()
> File "C:\Python24\lib\site-packages\turbogears-1.0.1-py2.4.egg
> \turbogears\comm
> and\base.py", line 144, in run
> command.the_runner.run(sys.argv)
> File "C:\Python24\lib\site-packages\sqlobject-0.7.2-py2.4.egg
> \sqlobject\manage
> r\command.py", line 102, in run
> runner.run()
> File "C:\Python24\lib\site-packages\sqlobject-0.7.2-py2.4.egg
> \sqlobject\manage
> r\command.py", line 233, in run
> self.command()
> File "C:\Python24\lib\site-packages\sqlobject-0.7.2-py2.4.egg
> \sqlobject\manage
> r\command.py", line 556, in command
> exists = soClass._connection.tableExists(soClass.sqlmeta.table)
> File "C:\Python24\lib\site-packages\sqlobject-0.7.2-py2.4.egg
> \sqlobject\postgr
> es\pgconnection.py", line 176, in tableExists
> result = self.queryOne(query)
> File "C:\Python24\lib\site-packages\sqlobject-0.7.2-py2.4.egg
> \sqlobject\dbconn
> ection.py", line 350, in queryOne
> return self._runWithConnection(self._queryOne, s)
> File "C:\Python24\lib\site-packages\sqlobject-0.7.2-py2.4.egg
> \sqlobject\dbconn
> ection.py", line 219, in _runWithConnection
> conn = self.getConnection()
> File "C:\Python24\lib\site-packages\sqlobject-0.7.2-py2.4.egg
> \sqlobject\dbconn
> ection.py", line 230, in getConnection
> conn = self.makeConnection()
> File "C:\Python24\lib\site-packages\sqlobject-0.7.2-py2.4.egg
> \sqlobject\postgr
> es\pgconnection.py", line 112, in makeConnection
> raise self.module.OperationalError("%s; used connection string %r"
> % (e, sel
> f.dsn))
> psycopg2.OperationalError: could not translate host name "hostname" to
> address:
> Unknown host
> ; used connection string 'dbname=celpebras user=username host=hostname'
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---