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

mbtiles converter dependency 'sqlite3' not available #147

Open
canadaduane opened this issue Apr 15, 2020 · 7 comments
Open

mbtiles converter dependency 'sqlite3' not available #147

canadaduane opened this issue Apr 15, 2020 · 7 comments

Comments

@canadaduane
Copy link

When I yarn install the node modules for ./converter/mbtiles/ I get the following error:

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp info check checked for "/Users/dujohnson/tmp/geopackage-js/converters/mbtiles/node_modules/sqlite3/lib/binding/node-v64-darwin-x64/node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-darwin-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file

And indeed, when I visit https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-darwin-x64.tar.gz I get the following error:

<Error>
  <Code>AccessDenied</Code>
  <Message>Access Denied</Message>
  <RequestId>F2735A74E4249542</RequestId>
  <HostId>nROeg5Ex5GGEQuNYvefpuGITA3fV4ambpNX8gSD0bBPj3ZY46kn+pUlf07lgdto8n2ky6M9hQcQ=</HostId>
</Error>
@canadaduane canadaduane changed the title mbtiles converter dependency 'sqlite' not available mbtiles converter dependency 'sqlite3' not available Apr 15, 2020
@danielbarela
Copy link
Member

I am in the process of upgrading the converters to the new version of geopackage-js which removes the dependency on mapbox sqlite3. I will update this ticket when the mbtiles converter is updated.

@canadaduane
Copy link
Author

As a temporary workaround, I was able to yarn install with this in the ./converters/mbtiles/package.json:

  "resolutions": {
    "**/sqlite3": "^4.0.0"
  },

@canadaduane
Copy link
Author

BTW we are in the midst of replacing an older mbtiles->geopackage converter with what will likely be your ngageoint/geopackage-js converter. What is the approximate timeline for the updated work you're doing on the mbtiles converter? i.e. weeks vs months?

@danielbarela
Copy link
Member

I would say weeks. It is not as straightforward as I would like because the original node-mbtiles was written with only node in mind and not the browser. So I have to update my fork of that first and then I can update this project.

@canadaduane
Copy link
Author

canadaduane commented Apr 17, 2020 via email

@danielbarela
Copy link
Member

Sorry this has taken so long, got pulled onto a different project. I have a readonly version working so far which really just creates views from the existing MBTiles tables and adds the appropriate GeoPackage tables.

@canadaduane
Copy link
Author

canadaduane commented Jun 30, 2020 via email

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

2 participants