Import event from Indico 2.3 in 3.2

Is there an equivalent for indico 3.2?

I just tried to transfer an event from indico 2.3.4 to indico 3.2 on a different server.
I get an error, the meat of which seems to be:

(indico) [indico@localhost ~]$ indico event import /tmp/2277.ind 
Importing event...
Traceback (most recent call last):
  File "/opt/indico/.venv/lib/python3.9/site-packages/yaml/constructor.py", line 551, in find_python_name
    __import__(module_name)
ModuleNotFoundError: No module named 'indico.modules.events.logs'

You cannot import events from from 2.x in 3.x. Even within a major version (3.1 and 3.2) it likely fails (that’s why --force is needed when importing an event that was exported on a different version).

The way to go here is to migrate the 2.3.4 instance (or a copy of it) to 3.2, and then export the event.

Thanks. I did the migration, but some people didn’t follow instructions and created a couple extra events on the old instance after the migration. I was hoping I’d be able to just migrate those few events.

Easy solution: Take a DB dump (and copy of the file storage), run a VM (or container) where you import it, then install 3.2 in there, and run indico db upgrade to migrate the database. Then you can export the events and import them in your new instance.

1 Like