Open hectorpal opened 2 years ago
Hrmz...can you add lapkt to the docker for the server, and let me know if it works?
It also failed using this Dockerfile:
# Build the Planutils image and install the selected packages
FROM aiplanning/planutils:latest
# Needed for the server
RUN pip3 install flask
# FD Planner
RUN planutils install -f -y lama-first
RUN planutils install -f -y lapkt
# Satisficing classical planning
RUN planutils install -f -y dual-bfws-ffparser
EXPOSE 5555
CMD planutils server --port 5555 --host 0.0.0.0
This might be the issue:
docker run --rm --privileged -ti -v $PWD:/mnt/home aiplanning/planutils
root@56b9d5d7b58d:~# planutils install -f -y dual-bfws-ffparser
dual-bfws-ffparser will be installed.
About to install the following packages: lapkt (184M), dual-bfws-ffparser (0M)
Installing lapkt...
181.71 MiB / 181.71 MiB [====================================================================================================================================================] 100.00% 6.86 MiB/s 26s
Finished installing lapkt (size: 182M)
Installing dual-bfws-ffparser...
Finished installing dual-bfws-ffparser (size: 24K)
root@56b9d5d7b58d:~# planutils run dual-bfws-ffparser
/root/.planutils/packages/dual-bfws-ffparser/run: line 2: lapkt: command not found
root@56b9d5d7b58d:~# planutils activate
Entering planutils environment...
(planutils) root@56b9d5d7b58d:~$ planutils run dual-bfws-ffparser
Error: the required argument for option '--output' is missing
The last one is correct. Sounds like a path issue in case of dependencies.
Aha! Right you are. @nirlipo -- want to prefix the laptkt extensions with planutils run
to make things work again? Using just lapkt
will only work if planutils is activated.
How to reproduce:
environments/server/setup.sh
docker run -p 5555:5555 --privileged -d planutils-server
Returns