Skip to content

Error importing jsonschema in Python 2.7 #763

@norseman99

Description

@norseman99

From what I was able to understand jsonschema 3.2.0 is using a lib called pyrsistent that uses Python 3 synthax, which makes jsonschema not able to work in python 2.7.

Traceback (most recent call last):
  File "schema_validator.py", line 3, in <module>
    import jsonschema
  File "/.../Python/2.7/lib/python/site-packages/jsonschema/__init__.py", line 21, in <module>
    from jsonschema._types import TypeChecker
  File "/.../Python/2.7/lib/python/site-packages/jsonschema/_types.py", line 3, in <module>
    from pyrsistent import pmap
  File "/.../Python/2.7/lib/python/site-packages/pyrsistent/__init__.py", line 3, in <module>
    from pyrsistent._pmap import pmap, m, PMap
  File "/.../Python/2.7/lib/python/site-packages/pyrsistent/_pmap.py", line 98
    ) from e

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