h3-py
h3-py copied to clipboard
Issues with using H3 package on Lambda
I am trying to create a lambda layer using h3. all attempts have ended with: "errorMessage": "Unable to import module 'lambda_function': No module named 'h3._cy.cells'" I am doing this using docker inside an ubuntu image on my mac with arm64. I have tried installing it with the following .whl files with no avail:
h3-3.7.6-cp310-cp310-win_amd64.whl h3-3.7.6-cp310-cp310-musllinux_1_1_x86_64.whl h3-3.7.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl h3-3.7.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
I have also attempted to install it by simply using pip3 install h3
Any Help is appreciated!
Usually pip will correctly find the right wheel and you shouldn't need to do anything manual. You should try updating pip to the latest version. Otherwise you need to give more information about your setup and python version, linux arch, etc.
@kylebarron facing issue with lambda, not in local machine.
You should install it from a Lambda docker container to build your distribution, then you'll get the relevant pip package.
olo
i also have same issue
os: mint 21.3
trying to use timezonefinder with blender3d app importing timezonefinder into blender gives h3 error :
`
import timezonefinder Traceback (most recent call last): File "<blender_console>", line 1, in File "/home/aumhren/.local/lib/python3.10/site-packages/timezonefinder/init.py", line 1, in from timezonefinder.timezonefinder import TimezoneFinder, TimezoneFinderL File "/home/aumhren/.local/lib/python3.10/site-packages/timezonefinder/timezonefinder.py", line 9, in from h3.api import numpy_int as h3 File "/home/aumhren/.local/lib/python3.10/site-packages/h3/init.py", line 3, in from .api.basic_str import * File "/home/aumhren/.local/lib/python3.10/site-packages/h3/api/init.py", line 3, in from . import basic_int File "/home/aumhren/.local/lib/python3.10/site-packages/h3/api/basic_int/init.py", line 1, in from ._public_api import * # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/aumhren/.local/lib/python3.10/site-packages/h3/api/basic_int/_public_api.py", line 9, in from ._binding import _binding File "/home/aumhren/.local/lib/python3.10/site-packages/h3/api/basic_int/_binding.py", line 16, in from ... import _cy File "/home/aumhren/.local/lib/python3.10/site-packages/h3/_cy/init.py", line 16, in from .cells import ( ModuleNotFoundError: No module named 'h3._cy.cells'`
i tried updating pip, installing timezonefinder to blender's python folder, updating h3, no luck
thx for sharing
have fun