Re: Test changing the backend / export - import
SCHLEMMER Norbert <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Please find below the listing using -V
root@roundup ~# roundup-admin -V import imports/myExport
Enter tracker home: /var/lib/roundup/tracker
Importing issue - 1Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/roundup/admin.py", line 1658, in run_command
ret = function(args[1:])
File "/usr/local/lib/python3.7/dist-packages/roundup/admin.py", line 1405, in do_import
nodeid = cl.import_list(file_props, r)
File "/usr/local/lib/python3.7/dist-packages/roundup/backends/rdbms_common.py", line 3034, in import_list
newid = eval_import(proplist[propnames.index("id")])
IndexError: list index out of range
root@roundup /# find . -name rdbms_common.py
./home/roundup/.local/lib/python3.7/site-packages/roundup/backends/rdbms_common.py
File rdbms_common.py can be modified using nano
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Gesendet: Mittwoch, 03. November 2021 14:13
An: SCHLEMMER Norbert <[email protected]>
Cc: Ralf Schlatterbeck <[email protected]>; [email protected]
Betreff: Re: [Roundup-users] Test changing the backend / export - import
*EXTERNAL source*
In message <[email protected]>,
SCHLEMMER Norbert writes:
>The "exporting" roundup is running 2.1.0
>
>The "importing" roundup is on 2.0.0
>https://www.turnkeylinux.org/updates/new-turnkey-roundup-version-161
>
>List of dump directory:
[...]
>
>The error
>> newid = eval_import(proplist[propnames.index("id")])
>> IndexError: list index out of range
Can you run your import using -V (capital V). That should enable verbose mode for import and allow us to get at least a class that's being imported.
Then look at the [classname].csv file and make sure that the csv is sane. There should be an id column and each row should have am id that can be interpreted as a number. Also each row must have the same number of fields. My guess is one of the CSV files has a short row.
Also, can you edit the files in the image? If so we can modify rdbms_common.py to get more debugging info if we need it.
--
-- rouilj John Rouillard ===========================================================================
My employers don't acknowledge my existence much less my opinions.