Cannot import osmium on Amazon Athena Notebook #240
Replies: 2 comments 1 reply
-
pyosmium contains compiles C++ code. You need the appropriate shared libraries (*.so files). If and how this works in Athena Notebooks, I don't know. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I found the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
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!
Beta Was this translation helpful? Give feedback.
All reactions