{"id":28317,"library":"tarski","title":"Tarski","description":"Tarski is a framework for the specification, modeling and manipulation of AI planning problems. It provides tools for parsing PDDL, grounding actions, and interfacing with planners. Current version: 0.9.1. Release cadence: irregular, with minor updates roughly every 2-3 months.","status":"active","version":"0.9.1","language":"python","source_language":"en","source_url":"https://github.com/aig-upf/tarski","tags":["AI planning","PDDL","automated planning","knowledge representation"],"install":[{"cmd":"pip install tarski","lang":"bash","label":"Standard PyPI install"},{"cmd":"pip install tarski[dev]","lang":"bash","label":"Install with development dependencies"}],"dependencies":[{"reason":"RDDL parsing support (optional)","package":"pyrddl","optional":true},{"reason":"TOULBAR2 constraint optimization (optional)","package":"pytoulbar2","optional":true}],"imports":[{"note":"TarskiWorld is not a top-level class; use tarski_model module.","wrong":"from tarski import TarskiWorld","symbol":"TarskiWorld","correct":"from tarski import tarski_model as tarski"},{"note":"parse_problem is in the io submodule.","wrong":"from tarski import parse_problem","symbol":"parse_problem","correct":"from tarski.io import parse_problem"}],"quickstart":{"code":"from tarski.io import parse_problem\n\n# Parse a PDDL domain and problem\nproblem = parse_problem('/path/to/domain.pddl', '/path/to/problem.pddl')\nprint(problem.name)\nprint('Actions:', list(problem.actions))\nprint('Objects:', list(problem.objects))","lang":"python","description":"Parse a PDDL domain and problem file, then print basic info."},"warnings":[{"fix":"Use Python 3.10+ or stay on 0.8.x if you need older Python.","message":"Version 0.9.0 dropped support for Python <3.10. Upgrade Python if needed.","severity":"breaking","affected_versions":">=0.9.0"},{"fix":"Use: from tarski import tarski_model as tarski","message":"The 'TarskiWorld' class is not directly importable from the top-level tarski package. Many tutorials show the wrong import.","severity":"gotcha","affected_versions":"all"},{"fix":"Use: from tarski.operations import ground","message":"The 'ground' method from older versions has been moved to the 'operations' module.","severity":"deprecated","affected_versions":">=0.8.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use: from tarski import tarski_model as tarski","cause":"TarskiWorld is not a top-level export.","error":"ImportError: cannot import name 'TarskiWorld' from 'tarski'"},{"fix":"Upgrade Tarski: pip install --upgrade tarski","cause":"Outdated Tarski version (<0.7.0) that does not have the io submodule.","error":"ModuleNotFoundError: No module named 'tarski.io'"},{"fix":"Use: from tarski.io import parse_problem","cause":"parse_problem is not in top-level tarski, but in io submodule.","error":"AttributeError: module 'tarski' has no attribute 'parse_problem'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}