[osmosis-dev] Osmosis 0.42 Installation on Ubuntu 12.04

Toby Murray toby.murray at gmail.com
Fri Mar 22 15:37:51 UTC 2013


Python must not be getting the PATH value from the same place you are
when running an interactive shell. Not quite sure how that works to be
honest. If all else fails, you should be able to modify the script on
line 71 and just put in the absolute location of your osmosis install.

Toby


On Thu, Mar 21, 2013 at 10:45 AM, Daniel Kerkow <leak.my.brain at gmail.com> wrote:
> Ok, I installed osmosis as you suggested. When I just call "osmosis" from
> command line, I get the help page, which is what I expected.
> But when I run the osm-boundary script, I get the following error:
>
> gisuser at gisserver:~/osm-boundaries.git/osm-boundaries$ ./run.py
> /home/gisuser/osm-planet/planet-130313/planet-130313.osm.pbf
> /bin/sh: 1: osmosis: not found
> terminate called after throwing an instance of 'Osmium::OSMFile::IOError'
>   what():  Open failed
> Aborted
>
> I can't really see what is the problem here. As I said, osmosis alone seems
> to work.
> Any suggestions?
>
>
>
> 2013/3/21 Toby Murray <toby.murray at gmail.com>
>>
>> On Thu, Mar 21, 2013 at 7:34 AM, Daniel Kerkow <leak.my.brain at gmail.com>
>> wrote:
>> > Hi,
>> > I want to use the following python script that extracts the OSM
>> > boundaries
>> > and does some additional stuff with them.
>> >
>> > https://github.com/mapbox/osm-boundaries
>> >
>> > This script also calls osmosis, but needs version 0.42.
>> > The Ubuntu repositories don't provide this  version.
>> >
>> > How do I exactly install osmosis to be called from system, not from
>> > commandline?
>>
>> All that python is doing is making a call out to a shell to invoke
>> osmosis. (see line 71)
>>
>> So you should be able to just download the latest osmosis, unpack it
>> and then add the osmosis bin/ directory to your PATH variable before
>> executing that python.
>>
>> Toby
>>
>> _______________________________________________
>> osmosis-dev mailing list
>> osmosis-dev at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/osmosis-dev
>
>
>
> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
>



More information about the osmosis-dev mailing list