Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with using H3 package on Lambda #303

Open
criscode97 opened this issue Dec 16, 2022 · 4 comments
Open

Issues with using H3 package on Lambda #303

criscode97 opened this issue Dec 16, 2022 · 4 comments

Comments

@criscode97
Copy link

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!

@kylebarron
Copy link
Contributor

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.

@dubey44
Copy link

dubey44 commented Mar 17, 2024

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

@kylebarron
Copy link
Contributor

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

@aum7
Copy link

aum7 commented May 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants