krishauser / Klampt

Kris' Locomotion and Manipulation Planning Toolkit
BSD 3-Clause "New" or "Revised" License
378 stars 96 forks source link

Import error when using klampt.sim.batch.doSim #69

Closed dwjoris closed 3 years ago

dwjoris commented 4 years ago

I am using klampt in Python2.7 and installed it with pip. When using the function klampt.sim.batch.doSim, I get the following import error:

Traceback (most recent call last): File "Main.py", line 3, in from Simulator import Simulator File "/home/joris/klampt/my_code/SimulationTrainer/Simulator.py", line 2, in from klampt.sim import batch File "/home/joris/.local/lib/python2.7/site-packages/klampt/sim/batch.py", line 2, in from ..model import map ImportError: cannot import name map

Am I missing some additional packages? Thank you!

krishauser commented 4 years ago

This is odd, the most recent versions have renamed the "map" module to "access" in order to not conflict with the Python keyword. Perhaps you could open up /home/joris/.local/lib/python2.7/site-packages/klampt/sim/batch.py and do a find-replace?