Skip to content

RuntimeError: subprocess returned error: Success #276

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!

Activity

  1. locked and limited conversation to collaborators on Jan 31, 2025
  2. converted this issue into a discussion #279 on Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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