Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR: 2017-10-31 17:11:54,152 {common.py:288}: Exception message: {'required': ['jsonClass'], 'properties': {'names': {'type': 'array', 'items': {'required': ['jsonClass'], 'properties': {'script_renderings': {'type': 'array', 'minItems': 1, 'items': {'required': ['jsonClass', 'text'], 'properties': {'jsonClass': {'enum': ['ScriptRendering'], 'type': 'string'}, 'encoding_scheme': {'type': 'string'}, 'text': {'type': 'string'}}, 'type': 'object'}}, 'jsonClass': {'enum': ['Text'], 'type': 'string'}, 'language_code': {'type': 'string'}}, 'type': 'object'}, 'minItems': 1}, 'jsonClass': {'enum': ['NamedEntity'], 'type': 'string'}}, 'type': 'object'} is not valid under any of the given schemas
- ERROR: 2017-10-31 17:11:54,155 {common.py:289}: Schema is: {"description": "A BookPortion could represent a Book or a chapter or a verse or a half-verse or a sentence or any such unit.", "properties": {"base_data": {"enum": ["image", "text"], "type": "string"}, "creation_details": {"properties": {"authors": {"items": {"properties": {"jsonClass": {"enum": ["NamedEntity"], "type": "string"}, "names": {"items": {"properties": {"jsonClass": {"enum": ["Text"], "type": "string"}, "language_code": {"type": "string"}, "script_renderings": {"items": {"properties": {"encoding_scheme": {"type": "string"}, "jsonClass": {"enum": ["ScriptRendering"], "type": "string"}, "text": {"type": "string"}}, "required": ["jsonClass", "text"], "type": "object"}, "minItems": 1, "type": "array"}}, "required": ["jsonClass"], "type": "object"}, "minItems": 1, "type": "array"}}, "required": ["jsonClass"], "type": "object"}, "type": "array"}, "jsonClass": {"enum": ["CreationDetails", "NamedEntity"], "type": "string"}, "names": {"items": {"properties": {"jsonClass": {"enum": ["Text"], "type": "string"}, "language_code": {"type": "string"}, "script_renderings": {"items": {"properties": {"encoding_scheme": {"type": "string"}, "jsonClass": {"enum": ["ScriptRendering"], "type": "string"}, "text": {"type": "string"}}, "required": ["jsonClass", "text"], "type": "object"}, "minItems": 1, "type": "array"}}, "required": ["jsonClass"], "type": "object"}, "minItems": 1, "type": "array"}}, "required": ["jsonClass", "name"], "type": "object"}, "curated_content": {"properties": {"jsonClass": {"enum": ["Text"], "type": "string"}, "language_code": {"type": "string"}, "script_renderings": {"items": {"properties": {"encoding_scheme": {"type": "string"}, "jsonClass": {"enum": ["ScriptRendering"], "type": "string"}, "text": {"type": "string"}}, "required": ["jsonClass", "text"], "type": "object"}, "minItems": 1, "type": "array"}}, "required": ["jsonClass"], "type": "object"}, "jsonClass": {"enum": ["BookPortion"], "type": "string"}, "path": {"type": "string"}, "portion_class": {"description": "book, part, chapter, verse, line etc..", "type": "string"}, "publication_details": {"description": "Publication details of a BookPortion.", "properties": {"canonical_source": {"type": "string"}, "issue_page": {"type": "string"}, "jsonClass": {"enum": ["PublicationDetails"], "type": "string"}, "publisher": {"type": {"properties": {"jsonClass": {"enum": ["NamedEntity"], "type": "string"}, "names": {"items": {"properties": {"jsonClass": {"enum": ["Text"], "type": "string"}, "language_code": {"type": "string"}, "script_renderings": {"items": {"properties": {"encoding_scheme": {"type": "string"}, "jsonClass": {"enum": ["ScriptRendering"], "type": "string"}, "text": {"type": "string"}}, "required": ["jsonClass", "text"], "type": "object"}, "minItems": 1, "type": "array"}}, "required": ["jsonClass"], "type": "object"}, "minItems": 1, "type": "array"}}, "required": ["jsonClass"], "type": "object"}}, "release_time": {"type": "string"}}, "required": ["jsonClass"], "type": "object"}, "targets": {"description": "Target for BookPortion of which this BookPortion is a part. It is an array only for consistency. For any given BookPortion, one can get the right order of contained BookPortions by seeking all BookPortions referring to it in the targets list, and sorting them by their target.position values.", "items": {"description": "A BookPortion could represent a Book or a chapter or a verse or a half-verse or a sentence or any such unit.", "properties": {"container_id": {"type": "string"}, "jsonClass": {"enum": ["Target", "BookPositionTarget"], "type": "string"}, "position": {"description": "Any number describing the position of one BookPortion within another.", "type": "number"}}, "required": ["container_id", "jsonClass"], "type": "object"}, "maxLength": 1}, "thumbnail_path": {"type": "string"}}, "required": ["jsonClass"], "type": "object"}
- ERROR: 2017-10-31 17:11:54,155 {common.py:290}: Context is: [<ValidationError: "{'required': ['jsonClass'], 'properties': {'names': {'type': 'array', 'items': {'required': ['jsonClass'], 'properties': {'script_renderings': {'type': 'array', 'minItems': 1, 'items': {'required': ['jsonClass', 'text'], 'properties': {'jsonClass': {'enum': ['ScriptRendering'], 'type': 'string'}, 'encoding_scheme': {'type': 'string'}, 'text': {'type': 'string'}}, 'type': 'object'}}, 'jsonClass': {'enum': ['Text'], 'type': 'string'}, 'language_code': {'type': 'string'}}, 'type': 'object'}, 'minItems': 1}, 'jsonClass': {'enum': ['NamedEntity'], 'type': 'string'}}, 'type': 'object'} is not one of ['array', 'boolean', 'integer', 'null', 'number', 'object', 'string']">, <ValidationError: "{'required': ['jsonClass'], 'properties': {'names': {'type': 'array', 'items': {'required': ['jsonClass'], 'properties': {'script_renderings': {'type': 'array', 'minItems': 1, 'items': {'required': ['jsonClass', 'text'], 'properties': {'jsonClass': {'enum': ['ScriptRendering'], 'type': 'string'}, 'encoding_scheme': {'type': 'string'}, 'text': {'type': 'string'}}, 'type': 'object'}}, 'jsonClass': {'enum': ['Text'], 'type': 'string'}, 'language_code': {'type': 'string'}}, 'type': 'object'}, 'minItems': 1}, 'jsonClass': {'enum': ['NamedEntity'], 'type': 'string'}}, 'type': 'object'} is not of type 'array'">]
- ERROR: 2017-10-31 17:11:54,157 {common.py:291}: Best match is: {'required': ['jsonClass'], 'properties': {'names': {'type': 'array', 'items': {'required': ['jsonClass'], 'properties': {'script_renderings': {'type': 'array', 'minItems': 1, 'items': {'required': ['jsonClass', 'text'], 'properties': {'jsonClass': {'enum': ['ScriptRendering'], 'type': 'string'}, 'encoding_scheme': {'type': 'string'}, 'text': {'type': 'string'}}, 'type': 'object'}}, 'jsonClass': {'enum': ['Text'], 'type': 'string'}, 'language_code': {'type': 'string'}}, 'type': 'object'}, 'minItems': 1}, 'jsonClass': {'enum': ['NamedEntity'], 'type': 'string'}}, 'type': 'object'} is not one of ['array', 'boolean', 'integer', 'null', 'number', 'object', 'string']
- Failed validating 'enum' in schema[0]:
- {'enum': ['array',
- 'boolean',
- 'integer',
- 'null',
- 'number',
- 'object',
- 'string']}
- On instance:
- {'properties': {'jsonClass': {'enum': ['NamedEntity'],
- 'type': 'string'},
- 'names': {'items': {'properties': {'jsonClass': {'enum': ['Text'],
- 'type': 'string'},
- 'language_code': {'type': 'string'},
- 'script_renderings': {'items': {'properties': {'encoding_scheme': {'type': 'string'},
- 'jsonClass': {'enum': ['ScriptRendering'],
- 'type': 'string'},
- 'text': {'type': 'string'}},
- 'required': ['jsonClass',
- 'text'],
- 'type': 'object'},
- 'minItems': 1,
- 'type': 'array'}},
- 'required': ['jsonClass'],
- 'type': 'object'},
- 'minItems': 1,
- 'type': 'array'}},
- 'required': ['jsonClass'],
- 'type': 'object'}
- Traceback (most recent call last):
- File "/home/vvasuki/vedavaapi_py_api/vedavaapi_py_api/run.py", line 107, in <module>
- main(sys.argv[1:])
- File "/home/vvasuki/vedavaapi_py_api/vedavaapi_py_api/run.py", line 90, in main
- setup_app()
- File "/home/vvasuki/vedavaapi_py_api/vedavaapi_py_api/run.py", line 51, in setup_app
- textract.setup_app(db=ullekhanam_db)
- File "/home/vvasuki/vedavaapi_py_api/vedavaapi_py_api/textract/__init__.py", line 17, in setup_app
- get_db().import_all(rootdir=paths.DATADIR)
- File "/home/vvasuki/vedavaapi_py_api/vedavaapi_py_api/ullekhanam/backend/db/collections.py", line 44, in import_all
- book_portion_node.update_collection(self)
- File "/usr/local/lib/python3.6/dist-packages/sanskrit_data/schema/common.py", line 470, in update_collection
- self.content = self.content.update_collection(db_interface)
- File "/usr/local/lib/python3.6/dist-packages/sanskrit_data/schema/common.py", line 248, in update_collection
- self.validate(db_interface)
- File "/usr/local/lib/python3.6/dist-packages/sanskrit_data/schema/common.py", line 390, in validate
- super(JsonObjectWithTarget, self).validate(db_interface=db_interface)
- File "/usr/local/lib/python3.6/dist-packages/sanskrit_data/schema/common.py", line 266, in validate
- self.validate_schema()
- File "/usr/local/lib/python3.6/dist-packages/sanskrit_data/schema/common.py", line 292, in validate_schema
- raise e
- File "/usr/local/lib/python3.6/dist-packages/sanskrit_data/schema/common.py", line 276, in validate_schema
- jsonschema.validate(json_map, self.schema)
- File "/usr/local/lib/python3.6/dist-packages/jsonschema/validators.py", line 545, in validate
- cls.check_schema(schema)
- File "/usr/local/lib/python3.6/dist-packages/jsonschema/validators.py", line 88, in check_schema
- raise SchemaError.create_from(error)
- jsonschema.exceptions.SchemaError: {'required': ['jsonClass'], 'properties': {'names': {'type': 'array', 'items': {'required': ['jsonClass'], 'properties': {'script_renderings': {'type': 'array', 'minItems': 1, 'items': {'required': ['jsonClass', 'text'], 'properties': {'jsonClass': {'enum': ['ScriptRendering'], 'type': 'string'}, 'encoding_scheme': {'type': 'string'}, 'text': {'type': 'string'}}, 'type': 'object'}}, 'jsonClass': {'enum': ['Text'], 'type': 'string'}, 'language_code': {'type': 'string'}}, 'type': 'object'}, 'minItems': 1}, 'jsonClass': {'enum': ['NamedEntity'], 'type': 'string'}}, 'type': 'object'} is not valid under any of the given schemas
- Failed validating 'anyOf' in metaschema['properties']['properties']['additionalProperties']['properties']['properties']['additionalProperties']['properties']['type']:
- {'anyOf': [{'$ref': '#/definitions/simpleTypes'},
- {'items': {'$ref': '#/definitions/simpleTypes'},
- 'minItems': 1,
- 'type': 'array',
- 'uniqueItems': True}]}
- On schema['properties']['publication_details']['properties']['publisher']['type']:
- {'properties': {'jsonClass': {'enum': ['NamedEntity'],
- 'type': 'string'},
- 'names': {'items': {'properties': {'jsonClass': {'enum': ['Text'],
- 'type': 'string'},
- 'language_code': {'type': 'string'},
- 'script_renderings': {'items': {'properties': {'encoding_scheme': {'type': 'string'},
- 'jsonClass': {'enum': ['ScriptRendering'],
- 'type': 'string'},
- 'text': {'type': 'string'}},
- 'required': ['jsonClass',
- 'text'],
- 'type': 'object'},
- 'minItems': 1,
- 'type': 'array'}},
- 'required': ['jsonClass'],
- 'type': 'object'},
- 'minItems': 1,
- 'type': 'array'}},
- 'required': ['jsonClass'],
- 'type': 'object'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement