1

I installed imposm according to instructions in the manual, but some module seems to be missing. What's wrong with it?

  File "mapping.py", line 2, in <module>
    from imposm.mapping import (
ImportError: cannot import name FixInvalidPolygons

Trying to run the line:

> from imposm.mapping import Options
ImportError: No module named mapping
culebrón
  • 34,265
  • 20
  • 72
  • 110

2 Answers2

1

as per source code of imposm.mapping, it has FixInvalidPolygons class. Please check PUTHONPATH, it must have directory where imposm installed.

Nilesh
  • 20,521
  • 16
  • 92
  • 148
1

Found out the reason. I had installed imposm.parser, and then pip install imposm did nothing, it stated that all requirements were already met. So I did

sudo pip uninstall imposm
sudo apt-get install libtokyocabinet-dev
sudo pip install imposm
culebrón
  • 34,265
  • 20
  • 72
  • 110