Skip to content

Cannot import osmium on Amazon Athena Notebook #239

@ruanqizhen

Description

@ruanqizhen

I’m currently executing Python code on an Amazon Athena Notebook and attempting to utilize some methods from Osmium. However, I’m encountering difficulties importing osmium. I’ve been following the instructions provided here by AWS, which essentially require me to use “pip install -t” to install PyOsmium in a separate folder.

Despite these efforts, I’m unable to import it. The error message I consistently receive is:

__init__.py", line 8, in <module>
    from osmium._osmium import *
ModuleNotFoundError: No module named 'osmium._osmium'

Interestingly, I’ve tried importing other Python models for the specific folder and have been successful. I suspect the issue with Osmium might be due to it providing only .pyi files, not .py files. I’m uncertain as to why Osmium can be imported when installed in the default directory.

Does anyone have any suggestions on how I can successfully load the model? I appreciate your help!

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