h3-py icon indicating copy to clipboard operation
h3-py copied to clipboard

Issues with using H3 package on Lambda

Open criscode97 opened this issue 2 years ago • 4 comments

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!

criscode97 avatar Dec 16 '22 20:12 criscode97

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 avatar Dec 23 '22 15:12 kylebarron

@kylebarron facing issue with lambda, not in local machine.

dubey44 avatar Mar 17 '24 05:03 dubey44

You should install it from a Lambda docker container to build your distribution, then you'll get the relevant pip package.

kylebarron avatar Mar 17 '24 11:03 kylebarron

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

aum7 avatar May 20 '24 11:05 aum7