Re: Test changing the backend / export - import
Ralf Schlatterbeck <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Nov 03, 2021 at 10:04:53AM +0000, SCHLEMMER Norbert wrote:
> Please find below the listing :
[...]
> newid = eval_import(proplist[propnames.index("id")])
> IndexError: list index out of range
this looks like something in the data you're importing is very wrong.
What version of roundup are you *exporting* from? What version are you
using for *importing*?
Note that exporting/importing with different roundup versions is not
supported. It may work occasionally but is not the recommended way to
migrate a database to another backend.
In my code (HEAD) the code-line above is not in the line indicated by
your traceback. And my code checks if the 'id' property is in the
export-dump and only computes propnames.index if 'id' is indeed in the
propnames:
rdbms_common.py line 3153:
if not "id" in propnames:
newid = self.db.newid(self.classname)
else:
newid = eval_import(proplist[propnames.index("id")])
So in newer code you should never see the traceback you're getting.
(but the id should always be in the exported properties!)
Ralf
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting www: www.runtux.com
Reichergasse 131, A-3411 Weidling email: [email protected]