[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-bugs] Problem bootstrapping v19 from scratch - handled excep
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-bugs] Problem bootstrapping v19 from scratch - handled exception updating v6 to v7 |
Date: |
Thu, 7 Nov 2013 16:29:56 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Nov 05, 2013 at 07:34:01PM +0000, Jim Busser wrote:
> however I could not succeed to do
>
> sh upgrade-db.sh 18 19
>
> The log complaining thus
>
> 2013-11-05 07:39:53 INFO gm.bootstrapper
> (./bootstrap_gm_db_system.py::main() #1557): initial config file:
> update_db-v18_v19.conf
> 2013-11-05 07:39:53 INFO gm.cfg
> (/private/tmp/gnumed-server.19.0/Gnumed/pycommon/gmCfg2.py::add_file_source()
> #445): file source "file": update_db-v18_v19.conf (utf8)
> 2013-11-05 07:39:53 DEBUG gm.cfg
> (/private/tmp/gnumed-server.19.0/Gnumed/pycommon/gmCfg2.py::parse_INI_stream()
> #274): parsing INI-style data stream [<open file 'update_db-v18_v19.conf',
> mode 'rb' at 0x101725030>]
> 2013-11-05 07:39:53 ERROR gm.cfg
> (/private/tmp/gnumed-server.19.0/Gnumed/pycommon/gmCfg2.py::add_stream_source()
> #434): error parsing source <file> from [<open file
> 'update_db-v18_v19.conf', mode 'rb' at 0x101725030>]
> Traceback (most recent call last):
> File "/private/tmp/gnumed-server.19.0/Gnumed/pycommon/gmCfg2.py",
> line 432, in add_stream_source
> data = parse_INI_stream(stream = stream)
> File "/private/tmp/gnumed-server.19.0/Gnumed/pycommon/gmCfg2.py",
> line 318, in parse_INI_stream
> name, remainder = regex.split('\s*[=:]\s*', line, maxsplit = 1)
> ValueError: need more than 1 value to unpack
> 2013-11-05 07:39:53 ERROR gm.bootstrapper
> (./bootstrap_gm_db_system.py::<module>() #1627): unhandled exception caught
> Traceback (most recent call last):
> File "./bootstrap_gm_db_system.py", line 1620, in <module>
> main()
> File "./bootstrap_gm_db_system.py", line 1562, in main
> file = cfg_file
> File "/private/tmp/gnumed-server.19.0/Gnumed/pycommon/gmCfg2.py",
> line 466, in add_file_source
> self.add_stream_source(source = source, stream = cfg_file)
> File "/private/tmp/gnumed-server.19.0/Gnumed/pycommon/gmCfg2.py",
> line 432, in add_stream_source
> data = parse_INI_stream(stream = stream)
> File "/private/tmp/gnumed-server.19.0/Gnumed/pycommon/gmCfg2.py",
> line 318, in parse_INI_stream
> name, remainder = regex.split('\s*[=:]\s*', line, maxsplit = 1)
> ValueError: need more than 1 value to unpack
This means that the code tried to split a string into
two parts separted by "=" or ":". Said string did not
contain two parts, however, despite it being required
to contain two parts (an option in a config file).
Let me guess: you uncommented
#password
but did not set a value (or omitted the "=") ?
Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346