[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid |
Date: |
Wed, 16 Jun 2010 00:03:08 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Helly Evgeny,
thanks for your report !
> please excuse me if I mail this to the wrong place, but I was advised
> to email about this in comments to the post at
> http://gnumed.blogspot.com/2010/05/gnumed-072-on-ubuntu.html and this
> list is the only address I have found that looks relevant.
>
> What I'm trying to do is install GNUmed 13.4 (that is, the current in
> PPA) onto an Ubuntu Lucid machine. gm-server_bootstrap keeps failing
> with obscure error message, and I didn't succeed in googling for any
> clue. The system is just basic Ubuntu Lucid (with Russian locale set
> as default), everything is done as close as I got to guides on wiki
> (there's no particular guide for Lucid, so I may have made some
> mistake).
>
> As advised in the aforementioned comment, I attach
> gm-bootstrap-latest.log in hope someone could tell what is it I'm
> doing wrong.
Yes, the log helps.
This ...
> Traceback (most recent call last):
> File "./bootstrap_gm_db_system.py", line 1123, in bootstrap
> database(aDB_alias = database_alias)
> File "./bootstrap_gm_db_system.py", line 547, in __init__
> if not self.__bootstrap():
> File "./bootstrap_gm_db_system.py", line 603, in __bootstrap
> if not _import_schema(group=self.section, schema_opt='superuser schema',
> conn=self.conn):
> File "./bootstrap_gm_db_system.py", line 1276, in _import_schema
> if psql.run(the_file) == 0:
> File "/var/lib/gnumed/Gnumed/pycommon/gmPsql.py", line 235, in run
> _log.debug(self.fmt_msg(error))
> File "/var/lib/gnumed/Gnumed/pycommon/gmPsql.py", line 54, in fmt_msg
> tmp = u"%s:%d: %s" % (self.filename, self.lineno-1, aMsg)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 45:
> ordinal not in range(128)
... is (I believe) a known error in Python.
I have improved our code to work around this problem.
If you feel adventurous you can go find the file
pycommon/gmPsql.py
on your system and search for
def fmt_msg(self, aMsg):
Then change the lines inside that function to look like this:
def fmt_msg(self, aMsg):
try:
tmp = u"%s:%d: %s" % (self.filename, self.lineno-1,
aMsg)
tmp = tmp.replace(u'\r', u'')
#tmp = string.replace("%s:%d: %s" % (self.filename,
self.lineno-1, aMsg), '\r', '')
tmp = tmp.replace(u'\n', u'')
except UnicodeDecodeError:
tmp = u"%s:%d: <cannot unicode(msg), printing on
console>" % (self.filename, self.lineno-1)
try:
print aMsg
except: pass
return tmp
After that the actual error will be shown on the console
where you started gm-bootstrap_server and you could report
that to us (here on this list).
Or you can wait for 0.7.6 which will contain the above lines
-- but it will take up to two weeks.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
- [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Евгений Кузнецов, 2010/06/15
- Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid,
Karsten Hilbert <=
- Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Евгений Кузнецов, 2010/06/16
- Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Sebastian Hilbert, 2010/06/17
- Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Karsten Hilbert, 2010/06/17
- Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Евгений Кузнецов, 2010/06/17
- Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Karsten Hilbert, 2010/06/17
- Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Sebastian Hilbert, 2010/06/17
- Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Karsten Hilbert, 2010/06/17
Re: [Gnumed-devel] Bootstrap fails on Ubuntu Lucid, Sebastian Hilbert, 2010/06/17