Recent

Author Topic: error running script python4lazarus  (Read 292 times)

arirod

  • New Member
  • *
  • Posts: 29
error running script python4lazarus
« on: November 21, 2024, 04:15:00 am »
ImportError: /usr/lib/python3.11/lib-dynload/_contextvars.cpython-311-x86_64-linux-gnu.so: undefined symbol: PyContextVar_Type.

thanks for help
---
code
import json
from jsonschema import validate
from jsonschema.exceptions import ValidationError
with open("./recipes.json") as f:
   document = json.load(f)
with open("./recipes_schema.json") as f:
   schema = json.load(f)
try:
   validate(instance=document, schema=schema)
   print("Validation Succeeded!")
except ValidationError as e:
   print('Validation failed !')
   print(f"Error message: {e.message}")
« Last Edit: November 24, 2024, 05:39:38 pm by arirod »

 

TinyPortal © 2005-2018