Skip to content

Error running Kodex from release bin file #11

@DinisTrigo

Description

@DinisTrigo

When trying to run Kodex from the release bin file I was unable to.

When running the first command

kodex blueprints download

I got the error:

ERRO[0000] no blueprint paths specified 

So I tried specifying the path, according to the documentation and run

kodex blueprints download https://my.blueprints/repo.zip

and got the same error.

Then, I tried to access the URL in a browser and got an error since the domain could not be found.

So I decided to download the blueprints manually from your Blueprints repository as listed on the documentation.

I placed the blueprints and the yaml file inside a folder, under the kodex bin file. When running the command

kodex run pseudonymization/examples/data-types/pseudonymize

I got the error

ERRO[0000] stat pseudonymization/examples/data-types/pseudonymize.yml: no such file or directory 
ERRO[0000] blueprint 'pseudonymization/examples/data-types/pseudonymize.yml' with version '' not found 

Then I placed the blueprints at the same directory level as the kodex bin executable file and while running the same command, I got the error

ERRO[0000] stat home/dinis/Desktop/kodex-tags/latest-bin/pseudonymization/examples/data-types/input.json: no such file or directory 

The path of the blueprints, relative to the kodex bin file is

pseudonymization/examples/data-types/input.json

It appears kodex has resolved the path to the absolute path, which, in my system is

home/dinis/Desktop/kodex-tags/latest-bin/pseudonymization/examples/data-types/input.json

However, kodex didn't include the / at the beginning, therefore trying to access that absolute path as a relative path, which will obviously not work. I checked that by placing the missing / at the beginning, the problem is fixed and the file is accessible from other programs. I cannot understand why kodex would try to access an absolute path as a relative path, when I have never specified that path on any configuration.

How can I solve this problem to be able to run kodex?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions