Problem:Command Line Importer Fails With "No 'school' was specified"


Your import on the command line fails with the following error:

2020-10-19 08:45:11 ERROR cmdline.setup_config:122  Error setting up or checking the configuration: No 'school' was specified in the configuration.
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ucsschool/importer/frontend/", line 120, in setup_config
    self.config = setup_configuration(configs, **self.args.settings)
  File "/usr/lib/pymodules/python2.7/ucsschool/importer/", line 63, in setup_configuration
  File "/usr/lib/pymodules/python2.7/ucsschool/importer/utils/", line 126, in run_configuration_checks
  File "/usr/share/ucs-school-import/checks/", line 44, in test_00_required_config_keys
    raise InitialisationError("No {!r} was specified in the configuration.".format(attr))
InitialisationError: No 'school' was specified in the configuration.


With the same configuration the import through the web interface (UMC) runs fine without any errors.


The UMC import takes the school into account and therefore does not need this value in the configuration.
The command line import does not know the scholl by default and therefore complains about the missing school
As a workaround you want to pass the "-s " parameter to the importer.
Note: Web-Import and command line import are acting at least partially different. The configurations can not be used for both.