question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ASAR Problem with gdal

See original GitHub issue
  • Version: 21.2.0
  • Target: mac dmg

We are using the node module “gdal”. When this node module is packaged, it is automatically put into the asar file, however, it needs to access csv files within the module, and cannot do that when it is in the asar file. When I specifically set asarUnpack: ["**/node_modules/gdal/**/*"], gdal is still looking in the <app>/Contents/Resources/app.asar/node_modules/gdal/deps/libgdal/gdal/data directory so I have to manually set GDAL_DATA to the correct unpacked directory ( <app>/Contents/Resources/app.asar.unpacked/node_modules/gdal/deps/libgdal/gdal/data) and then everything works fine. Disabling asar altogether works perfectly.

The node module “gdal” needs to not be included in the asar.

Thank you for your help.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
danielbarelacommented, Jan 21, 2020

Still relevant.

0reactions
stale[bot]commented, Mar 21, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GDAL installation via pip exits with errors #2827 - GitHub
Expected behavior and actual behavior. I wanted to install it via pip, but got the following console output: Collecting gdal Using cached ...
Read more >
Error while installing GDAL - Stack Overflow
Check that you installed GDAL using this command gdal-config --version. Then run this commands: pip download="some_path" GDAL cd some_path ...
Read more >
Python gdal import error - GIS Stack Exchange
I had GDAL 2.2.3 and I downgrade it to version GDAL 2.1.0. You can install it with: pip install GDAL==2.1.0.
Read more >
Building GDAL from source — GDAL documentation
When iterating to configure GDAL to add/modify/remove dependencies, some cache variables can remain in CMakeCache.txt from previous runs, and conflict with new ...
Read more >
#3709 (Georeference problem with Envisat Images) – GDAL
It appears they are reading both the Geolocation grid ADS (correct) and the Doppler Centroid Grid (incorrect) as GCPs. The numbers in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found