Skip to content

RuntimeError: subprocess returned error: Success #276

@AlieNiT

Description

@AlieNiT

Title: RuntimeError: subprocess returned error: Success

Description:

Hi,

I'm new to osmium and encountered a runtime error while using the library. Here's the code snippet I'm working with:

import osmium

class OSMWayReader(osmium.SimpleHandler):
    def __init__(self, path):
        osmium.SimpleHandler.__init__(self)
        self.street_ways = []
        self.path = path

    def way(self, w):
        # Process ways (implementation omitted for brevity)
        pass

    def read_ways(self):
        self.apply_file(self.path, locations=True, idx='flex_mem')
        return self.street_ways

When calling the read_ways method, I get the following error:

INFO -   File "/nfs/shared/virtualenvs/lib/python3.9/site-packages/search/utils/map/osm_reader.py", line 66, in read_ways
INFO -     self.apply_file(self.path, locations=True, idx='flex_mem')
INFO - RuntimeError: subprocess returned error: Success

I've searched extensively but couldn't find any concrete solution or explanation for this error.

Environment Details:

  • Python version: Python 3.9
  • Osmium library version: 3.7.0
  • Operating system: ubuntu 18
    Any guidance or help on why this error occurs and how to resolve it would be greatly appreciated.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions