A crash happens when running this management command in the Command Line/Terminal:
kolibri manage importcontent network 1ceff53605e55bef987d88e0908658c5This sample content is for the Khan Academy (English). Here's the user guide for reference: Import Content from Internet.
Here's the output:
user@ubuntu:~$ kolibri manage importcontent network 1ceff53605e55bef987d88e0908658c5
INFO Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO Invoking command importcontent network 1ceff53605e55bef987d88e0908658c5
Traceback (most recent call last):
File "/usr/bin/kolibri", line 11, in <module>
load_entry_point('kolibri==0.13.2b1', 'console_scripts', 'kolibri')()
File "/usr/lib/python3/dist-packages/kolibri/dist/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/kolibri/dist/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/kolibri/dist/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/kolibri/utils/cli.py", line 243, in invoke
return super(KolibriDjangoCommand, self).invoke(ctx)
File "/usr/lib/python3/dist-packages/kolibri/dist/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/kolibri/dist/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/kolibri/dist/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3/dist-packages/kolibri/utils/cli.py", line 641, in manage
execute_from_command_line(["kolibri manage"] + ctx.args)
File "/usr/lib/python3/dist-packages/kolibri/dist/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/kolibri/dist/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/kolibri/dist/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/kolibri/dist/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/kolibri/core/tasks/management/commands/base.py", line 102, in handle
return self.handle_async(*args, **options)
File "/usr/lib/python3/dist-packages/kolibri/core/content/management/commands/importcontent.py", line 439, in handle_async
renderable_only=options["renderable_only"],
File "/usr/lib/python3/dist-packages/kolibri/core/content/management/commands/importcontent.py", line 159, in download_content
renderable_only=renderable_only,
File "/usr/lib/python3/dist-packages/kolibri/core/content/management/commands/importcontent.py", line 257, in _transfer
total=total_bytes_to_transfer + dummy_bytes_for_annotation
File "/usr/lib/python3/dist-packages/kolibri/core/tasks/management/commands/base.py", line 115, in start_progress
total=total, level=level, update_callback=self._update_all_progress
File "/usr/lib/python3/dist-packages/kolibri/core/tasks/management/commands/base.py", line 38, in __init__
self.progressbar = click.progressbar(length=total, width=0)
File "/usr/lib/python3/dist-packages/kolibri/dist/click/termui.py", line 351, in progressbar
width=width, color=color)
File "/usr/lib/python3/dist-packages/kolibri/dist/click/_termui_impl.py", line 81, in __init__
iterable = range_type(length)
TypeError: 'float' object cannot be interpreted as an integer
user@ubuntu:~$
No crash should happen and that the Channel content is imported successfully.
kolibri manage importchannel network 1ceff53605e55bef987d88e0908658c5 - ignore the warningkolibri manage importcontent network 1ceff53605e55bef987d88e0908658c5 - notice the crash.This is a regression introduced by a bug fix in the 0.13.2 milestone, so we should fix this before release.
Most helpful comment
This is a regression introduced by a bug fix in the 0.13.2 milestone, so we should fix this before release.