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

While running tests: ImportError while loading conftest #2

Closed
ryangalamb opened this issue Mar 31, 2021 · 2 comments
Closed

While running tests: ImportError while loading conftest #2

ryangalamb opened this issue Mar 31, 2021 · 2 comments

Comments

@ryangalamb
Copy link

This happens when I run via tox or inside a tox devenv.

OS: NixOS
tox version: 3.19.0

ImportError while loading conftest '/home/rjmill/Development/open-source/jschon/tests/conftest.py'.
tests/__init__.py:4: in <module>
    jsonschema_2019_09.initialize()
jschon/catalogue/jsonschema_2019_09.py:98: in initialize
    Catalogue.create_metaschema(
jschon/catalogue/__init__.py:65: in create_metaschema
    metaschema_doc = cls.load_json(metaschema_uri)
jschon/catalogue/__init__.py:43: in load_json
    return load_json(filepath.with_suffix('.json'))
jschon/utils.py:26: in load_json
    with open(filepath) as f:
E   FileNotFoundError: [Errno 2] No such file or directory: '/home/rjmill/Development/open-source/jschon/jschon/catalogue/json-schema-spec-2019-09/schema.json'
@ryangalamb
Copy link
Author

Oh duh, looks like the JSON schema test suite is in a git submodule. I'll bring that in and see if that fixes it.

@ryangalamb
Copy link
Author

Fixed after running

git submodule update --init --recursive

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

No branches or pull requests

1 participant