Easyinstallerbuilder error

Hi!

I followed the guide for easyinstallerbuilder.
The syntax described in the knowledge-base is outdated and the script seems buggy.
When calling like this:

docker run -it --rm -v $(pwd)/fs:/builder/fs -v $(pwd)/output:/builder/output torizon/ostree-easy-installer-builder:latest easyinstallerbuilder -V -m apalis-imx8 -i torizon-core-docker -r http://feeds.toradex.com/ostree/torizoncore-master/nightly -b torizon/torizon-core-docker -s /builder/fs -o /builder/output

the command results in a traceback:

Unexpected error
Traceback (most recent call last):
  File "/builder/easyinstallerbuilder", line 562, in <module>
    generateTeziImage(args.module, args.image, args.repo, args.branch, args.srcdir, args.outputdir, args.version)
  File "/builder/easyinstallerbuilder", line 328, in generateTeziImage
    imagename, imagejson = getTeziImagePath(module, image, version)
  File "/builder/easyinstallerbuilder", line 138, in getTeziImagePath
    _, imageversion = imagenamenoprefix.split("_")
ValueError: too many values to unpack (expected 2)

This can be fixed in easyinstallerbuilder:138 by changing the line to:
imageversion = imagenamenoprefix.split(“_”)[-1]

Still the script fails with:

Pulling remote http://feeds.toradex.com/ostree/torizoncore-master/nightly/apalis-imx8 torizon/torizon-core-docker
Unexpected error
Traceback (most recent call last):
  File "/builder/easyinstallerbuilder", line 565, in <module>
    generateTeziImage(args.module, args.image, args.repo, args.branch, args.srcdir, args.outputdir, args.version)
  File "/builder/easyinstallerbuilder", line 387, in generateTeziImage
    repo, srcdir, remote, branch, branchname, finalname, ostreeutils.changed)
  File "/builder/ostreeutils.py", line 199, in mergeChanges
    pullRemote(repo, remote, remoteBranch, changed)
  File "/builder/ostreeutils.py", line 65, in pullRemote
    if not repo.pull_with_options("origin", options, progress=asyncprogress):
gi.repository.GLib.GError: g-io-error-quark: No such branch 'torizon/torizon-core-docker' in repository summary (0)

Please update the knowledge-base article how to use this command.

Thank you,
Peter

Greetings @v2c2,

Thank you for your feedback, that article was originally written when Torizon was still unavailable on Toradex Easy Installer and therefore needed a method to create an easy installer package. Nowadays it’s available on our feeds and through other methods.

However thank you again for pointing this article out so that we may either update it or edit it to be more appropriate with how Torizon is used today.

Best Regards,
Jeremias