Skip to content

Update scorpion run command for preprocessing - #159

Merged
haz merged 1 commit into
AI-Planning:mainfrom
FrankieCao1:patch-1
Nov 22, 2026
Merged

haz merged 1 commit into
AI-Planning:mainfrom
FrankieCao1:patch-1

Conversation

@FrankieCao1

Copy link
Copy Markdown
Contributor

Since jendrikseipp/scorpion@1b5ec16 (Sep 2025), Scorpion's
--transform-task is a legacy alias for the boolean --preprocess flag and no longer takes
a value. The planutils run script still passes --transform-task preprocess-h2, so
preprocess-h2 is parsed as an input file and every run fails:

FileNotFoundError: [Errno 2] No such file or directory: 'preprocess-h2'

This PR updates planutils/packages/scorpion/run to the invocation recommended in Scorpion's README:

- singularity run -e $(dirname $0)/scorpion.sif --transform-task preprocess-h2 --alias scorpion $@
+ singularity run -e $(dirname $0)/scorpion.sif --preprocess --alias scorpion $@

To reproduce

mkdir -p /tmp/sctest && cd /tmp/sctest
cat > domain.pddl <<'EOF'
(define (domain move)
  (:requirements :strips)
  (:predicates (at ?x) (adj ?x ?y))
  (:action go :parameters (?x ?y)
    :precondition (and (at ?x) (adj ?x ?y))
    :effect (and (at ?y) (not (at ?x)))))
EOF
cat > problem.pddl <<'EOF'
(define (problem p) (:domain move)
  (:objects a b c)
  (:init (at a) (adj a b) (adj b c))
  (:goal (at c)))
EOF
scorpion domain.pddl problem.pddl
  • Before: fails with the FileNotFoundError above.
  • After: Solution found!, plan (go a b), (go b c).

@haz
haz merged commit 3026026 into AI-Planning:main Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants