wasserfeder / lomap

LTL Optimal Multi-Agent Planner (LOMAP)
GNU General Public License v2.0
29 stars 10 forks source link

Not compatible with Python3 #9

Closed braraki closed 4 years ago

braraki commented 6 years ago

I made lomap compatible with python 3. It wasn't too bad, there was just one tricky step.

  1. use '2to3' (comes with python) to convert lomap scripts to python3. /path-to-lomap/lomap$ 2to3 -w -n . Note: -w means that 2to3 writes the changes to the files (instead of just printing to terminal) and -n means do not create backup files.
  2. The package 'pp' is not python3 compatible. You can get around this by installing pp-1.6.4.4 from https://www.parallelpython.com/content/view/18/32/ and running sudo pip install . in the folder (maybe pip3?) and then adding the path to pp to your PYTHONPATH variable. (see https://github.com/Kamnitsask/deepmedic/issues/58 for more info)
wasserfeder commented 4 years ago

Solved this in PR #17 .