Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cekit test fails with Exception ModuleNotFoundError: No module named 'lxml' #63

Closed
vorburger opened this issue Feb 13, 2019 · 3 comments

Comments

@vorburger
Copy link
Contributor

according to https://cekit.readthedocs.io/en/develop/test.html, cekit test should test this project? NOK:

$ sudo dnf install python3-behave
$ cekit test                     
2019-02-13 04:58:49,862 cekit        INFO     Generating files for docker engine.
2019-02-13 04:58:49,872 cekit        INFO     Initializing image descriptor...
2019-02-13 04:58:49,873 cekit        INFO     Preparing resource 'cct_module'
2019-02-13 04:58:50,708 cekit        WARNING  The way of defining repository 'jboss-os' is deprecated. Convert it to an URL based repository object. Consult Cekit docs, for more details.
2019-02-13 04:58:50,941 cekit        INFO     Fetching common steps from 'https://github.com/cekit/behave-test-steps.git'.
2019-02-13 04:58:51,441 cekit        INFO     Tests collected!
Exception ModuleNotFoundError: No module named 'lxml'
2019-02-13 04:58:51,615 cekit        ERROR    An error occurred while executing tests
2019-02-13 04:58:51,615 - cekit - ERROR - An error occurred while executing tests

I'm guessing I'm missing whatever lxml is... cekit/cekit#381 would be cool.

@vorburger
Copy link
Contributor Author

Oh... installing python3-lxml, as per https://lxml.de/installation.html, fixes above:

sudo dnf install python3-lxml

https://github.com/cekit/behave-test-steps says that "This information will let Cekit check at runtime if requirements are met and if not, user will be notified. If you are running on a known platform, in case a depenency is missing, you will be provided with a hint what to install to satisfy the requirement." but this didn't seem to work here? FYI @dbecvarik @goldmann.

@goldmann
Copy link
Member

Which version of Cekit you use. This is true for Cekit 3.0 as I mentioned in my previous comments.

@vorburger
Copy link
Contributor Author

Oh... installing python3-lxml, as per https://lxml.de/installation.html, fixes above:

so let's document this, see #66

Which version of Cekit you use. This is true for Cekit 3.0 as I mentioned in my previous comments.

I have no idea (and shouldn't have to?), I just cekit test in this project... 😸

I mean no disrespect - just put yourself into the shoes of someone just wanting to build this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants