You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying the library in Jupyter Notebook. I tried to solve the following simple problem.
from unified_planning.shortcuts import *
x = Fluent("x")
a = InstantaneousAction("a")
a.add_precondition(Not(x))
a.add_effect(x, True)
problem = Problem("basic")
problem.add_fluent(x)
problem.add_action(a)
problem.set_initial_value(x, False)
problem.add_goal(x)
with OneshotPlanner(name='pyperplan') as planner:
result = planner.solve(problem)
if result.status == up.engines.PlanGenerationResultStatus.SOLVED_SATISFICING:
print("Pyperplan returned: %s" % result.plan)
else:
print("No plan found.")
User Story
Im trying the library in Jupyter Notebook. I tried to solve the following simple problem.
However, I get the following error
Previously I installed
pip install unified_planning[pyperplan]
and the following text appeared:
Requirement already satisfied: unified_planning[pyperplan] in c:\users\nicor\anaconda3\lib\site-packages (1.0.0) Requirement already satisfied: pyparsing in c:\users\nicor\anaconda3\lib\site-packages (from unified_planning[pyperplan]) (3.0.9) Requirement already satisfied: networkx in c:\users\nicor\anaconda3\lib\site-packages (from unified_planning[pyperplan]) (3.1) Requirement already satisfied: up-pyperplan==1.0.0 in c:\users\nicor\anaconda3\lib\site-packages (from unified_planning[pyperplan]) (1.0.0) Requirement already satisfied: pyperplan==2.1 in c:\users\nicor\anaconda3\lib\site-packages (from up-pyperplan==1.0.0->unified_planning[pyperplan]) (2.1) Requirement already satisfied: wheel in c:\users\nicor\anaconda3\lib\site-packages (from pyperplan==2.1->up-pyperplan==1.0.0->unified_planning[pyperplan]) (0.38.4)
The text was updated successfully, but these errors were encountered: