-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
I'm trying to install the h3 library in Redshift using Pip and the utility install script installPipModuleAsRedshiftLibrary.sh.
I am building h3 on Ubuntu 16.04. I am able to successfully upload the h3.zip file to my S3 bucket.
However, when I try to run the UDF, I get this error
OSError: /rdsdbdata/user_lib/0/0/288461.zip/h3/out/libh3.so.1: cannot open shared object file: Not a directory
Full stack trace from svl_udf_log:
File "h3.py", line 39, in <module>
File "__init__.py", line 443, in LoadLibrary
return self._dlltype(name)
File "__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)```
The UDF I'm trying to use:
```CREATE OR REPLACE function get_hexbin(coord_lat double precision, coord_lon double precision, res INTEGER)
RETURNS VARCHAR IMMUTABLE
AS $$
from h3 import h3
return 'hello world'
$$ LANGUAGE plpythonu;
While installing h3 locally, I see this message about skipping wheel but then it uploads a zip file to S3 anyway:
Collecting h3
Saved /home/bhavika/Desktop/.h3/h3-3.1.0-cp36-cp36m-linux_x86_64.whl
Skipping h3, due to already being wheel.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels