Skip to content

.imscc to common cartridge issue #81

Description

@bryansweeney

Trying to convert a common cartridge exported from moodle (in .imscc format) to a Canvas common cartridge. When running through CLI

moodle2cc migrate ./ff1.imscc ./

Traceback (most recent call last):
	8: from /Users/me/.rbenv/versions/2.6.3/bin/moodle2cc:23:in `<main>'
	7: from /Users/me/.rbenv/versions/2.6.3/bin/moodle2cc:23:in `load'
	6: from /Users/me/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/moodle2cc-0.2.41/bin/moodle2cc:6:in `<top (required)>'
	5: from /Users/me/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
	4: from /Users/me/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
	3: from /Users/me/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
	2: from /Users/me/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
	1: from /Users/me/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/moodle2cc-0.2.41/lib/moodle2cc/cli.rb:11:in `migrate'
/Users/me/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/moodle2cc-0.2.41/lib/moodle2cc/migrator.rb:36:in `imscc_path': undefined method `imscc_path' for nil:NilClass (NoMethodError)

I get the same issue when I try to do the same with a .zip extension for the cartridge file. This command works for small cartridges that are exported to the .mbz format from moodle.

I have verified that this is not related to the the path parameters that I am passing, because it works for .mbz file as explained above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions