Skip to content

ModuleNotFoundError: No module named 'jsonschema' #63

Description

@moi90

I installed singularity-compose using pip install --user -U singularity-compose.

When running singularity-compose check, I get:

$ singularity-compose check
Traceback (most recent call last):
  File "/home/guest/sischr001/.local/bin/singularity-compose", line 8, in <module>
    sys.exit(start())
  File "/home/guest/sischr001/.local/lib/python3.8/site-packages/scompose/client/__init__.py", line 252, in start
    from scompose.client.check import main
  File "/home/guest/sischr001/.local/lib/python3.8/site-packages/scompose/client/check.py", line 13, in <module>
    from scompose.config.schema import validate_config
  File "/home/guest/sischr001/.local/lib/python3.8/site-packages/scompose/config/schema.py", line 14, in <module>
    from jsonschema.exceptions import ValidationError
ModuleNotFoundError: No module named 'jsonschema'

After pip install --user -U jsonschema, it works:

$ singularity-compose check
singularity-compose.yml is valid.

It seems that jsonschema should be included in INSTALL_REQUIRES (/scompose/version.py).

Activity

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

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