Comments (7)
but when I try to convert my py to exe
You're going to need to provide a lot more context here...
I have no experience bundling GDAL (the primary dependency of this package) into packaged environments or executables.
from localtileserver.
Please provide more context on how you're creating an exe.
Also please provide a full stack trace and a scooby report:
import localtileserver
print(localtileserver.Report())
from localtileserver.
Thank you for your response.
Basically, I'm trying to build a localization program that takes images with gpsinfo and try to mark the positions on an offline map. It is working while debugging but the problem in the exe.
I am using auto-py-to-exe to do the render thing I here are the inputs :
pyinstaller --noconfirm --onefile --console --add-data "C:/Users/iiMox/Desktop/Finale/colorbrewer_all_schemes.json;palettable\\colorbrewer\\data\\" --add-data "C:/Users/iiMox/Desktop/Finale/NE1_LR_LC_SR_W_DR.tif;." "C:/Users/iiMox/Desktop/Finale/program.py"
And here is the result of localtileserver.report() :
--------------------------------------------------------------------------------
Date: Tue Jan 11 06:56:22 2022 Romance Standard Time
OS : Windows
CPU(s) : 12
Machine : AMD64
Architecture : 64bit
RAM : 7.9 GiB
Environment : Python
File system : unknown
Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64
bit (AMD64)]
localtileserver : 0.4.0
flask : 2.0.2
flask_caching : 1.10.1
flask_restx : 0.5.1
requests : 2.26.0
werkzeug : 2.0.2
click : 8.0.3
scooby : 0.5.11
large_image : 1.9.0
large_image_source_gdal : 1.9.0
cachetools : 5.0.0
PIL : 8.4.0
psutil : 5.9.0
numpy : 1.21.4
palettable : 3.3.0
pyproj : 3.3.0
osgeo.gdal : 3.4.1
ipyleaflet : 0.15.0
traitlets : 5.1.1
folium : 0.12.1.post1
--------------------------------------------------------------------------------
from localtileserver.
I think your issue is really in regards to using GDAL with pyinstaller. A quick google revealed this: https://gis.stackexchange.com/a/295584
I don't know if I can be of much help with this... I'm not a Windows user and I've rarely used PyInstaller.
Bundling GDAL like this seems like a big task and this likely won't work if sharing the executable across computers
from localtileserver.
Can you recommend any other solutions rather than GDAL to perform this idea ?
from localtileserver.
GDAL is a core requirement of this package - there is no working around that
from localtileserver.
I have no idea how to bundle GDAL with pyinstaller and it's a bit out of scope for this project. Maybe one day, I can come back to this and add a page to the docs on how to do such a thing, but it will be rather involved and different on each OS.
I'm going to close this due to lack of activity and being a bit separate from the scope of this project. If someone else is interested in this, please feel free to revive this issue.
from localtileserver.
Related Issues (20)
- add_raster() isn't adding the downloaded image into the map HOT 15
- add_layer doesn't work with GeoTIFF file converted from xarray Dataset HOT 11
- can't add local raster file in windows HOT 4
- Use ipyleaflet's as_leaflet_layer interface
- Cannot display raster in Google Colab HOT 5
- Generated PNG tiles are not transparent (have black background) HOT 3
- Remote COG no longer works HOT 4
- Tiff file saving to HTML using folium HOT 1
- Tileclient does not show when run dash app python on docker HOT 3
- localtileserver fails with flask==3 HOT 2
- localtileserver not working with Leafmap on Docker HOT 4
- localtileserver client cannot work after setting the http proxy HOT 4
- not working on VS code remote notebook HOT 1
- Passing rasterio.Env context to tile server HOT 5
- nodata causes padding HOT 15
- The vmin and vmax parameters have no effect HOT 2
- Support custom colormaps
- Generate thumbnails in a projection
- Rasters do not render when using solara HOT 2
- Regarding code: errors related to import localileserver HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localtileserver.