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

Regarding code: errors related to import localileserver #216

Open
zwy1502 opened this issue Jul 5, 2024 · 7 comments
Open

Regarding code: errors related to import localileserver #216

zwy1502 opened this issue Jul 5, 2024 · 7 comments

Comments

@zwy1502
Copy link

zwy1502 commented Jul 5, 2024

Why am I running the following code: import localileserver, prompting me:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
File D:\software\anaconda\envs\gee\Lib\site-packages\flask_restx\api.py:18
17 try:
---> 18      from flask.helpers import _endpoint_from_view_func
19 except ImportError:

ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers' (D:\software\anaconda\envs\gee\Lib\site-packages\flask\helpers.py)

During handling of the above exception, another exception occurred:

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 import localtileserver

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\__init__.py:3
1 # flake8: noqa: F401
2 from localtileserver._ version import __version__
----> 3 from localtileserver.client import TileClient,  get_or_create_tile_client
4 from localtileserver.helpers import hillshade,  parse_shapely, polygon_to_geojson, save_new_raster
5 from localtileserver.report import Report

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\client.py:22
19 from server_thread import ServerManager, launch_server
21 from localtileserver.configure import get_default_client_params
---> 22 from localtileserver.manager import AppManager
23 from localtileserver.tiler import (
24     format_to_encoding,
25     get_building_docs,
(...)
thirty-two palette_valid_or_raise,
33 )
34 from localtileserver.utilities import add_query_parameters

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\manager.py:1
----> 1 from localtileserver.web import create_app
4 class AppManager:
5     _APP = None

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\web\__init__.py:2
1 # flake8: noqa: F401
----> 2 from localtileserver.web import rest, urls, views
3 from localtileserver.web.application import create_app, run_app
4 from localtileserver.web.blueprint import cache, tileserver

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\web\rest.py:4
1 import io
3 from flask import request, send_file
----> 4 from flask_restx import Api, Resource as View
5 from rasterio import RasterioIOError
6 from rio_tiler.errors import TileOutsideBounds

File D:\software\anaconda\envs\gee\Lib\site-packages\flask_restx\__init__.py:2
1 from .  import fields, reqparse, apidoc, inputs, cors
----> 2 from .api import Api  # noqa
3 from .marshalling import marshal,  marshal_with, marshal_with_field  # noqa
4 from .mask import Mask

File D:\software\anaconda\envs\gee\Lib\site-packages\flask_restx\api.py:20
eighteen from flask.helpers import _endpoint_from_view_func
19 except ImportError:
---> 20      from flask.scaffold import _endpoint_from_view_func
21 from flask.signals import got_request_exception
23 from jsonschema import RefResolver

ModuleNotFoundError: No module named 'flask.scaffold'

This is my environment:

(gee) C:\Users\Lenovo>conda list
# packages in environment at D:\software\anaconda\envs\gee:
#
# Name                    Version                   Build  Channel
affine                    2.4.0              pyhd8ed1ab_0    conda-forge
aiohttp                   3.9.5           py312he70551f_0    conda-forge
aiosignal                 1.3.1              pyhd8ed1ab_0    conda-forge
aniso8601                 9.0.1              pyhd8ed1ab_0    conda-forge
annotated-types           0.7.0              pyhd8ed1ab_0    conda-forge
anyio                     4.4.0              pyhd8ed1ab_0    conda-forge
aom                       3.9.1                he0c23c2_0    conda-forge
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
argon2-cffi               23.1.0             pyhd8ed1ab_0    conda-forge
argon2-cffi-bindings      21.2.0          py312he70551f_4    conda-forge
arrow                     1.3.0              pyhd8ed1ab_0    conda-forge
asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
async-lru                 2.0.4              pyhd8ed1ab_0    conda-forge
attrs                     23.2.0             pyh71513ae_0    conda-forge
aws-c-auth                0.7.22               ha1d026d_6    conda-forge
aws-c-cal                 0.6.15               hea5f451_1    conda-forge
aws-c-common              0.9.23               h2466b09_0    conda-forge
aws-c-compression         0.2.18               hea5f451_7    conda-forge
aws-c-event-stream        0.4.2               ha301515_14    conda-forge
aws-c-http                0.8.2                hb4b72d7_3    conda-forge
aws-c-io                  0.14.9               h5ec1eae_3    conda-forge
aws-c-mqtt                0.10.4               haec3ea0_7    conda-forge
aws-c-s3                  0.5.10               h7545387_4    conda-forge
aws-c-sdkutils            0.1.16               hea5f451_3    conda-forge
aws-checksums             0.1.18               hea5f451_7    conda-forge
aws-crt-cpp               0.26.12              h90a6bef_1    conda-forge
aws-sdk-cpp               1.11.329             h31ee193_6    conda-forge
azure-core-cpp            1.12.0               haf5610f_0    conda-forge
azure-identity-cpp        1.8.0                h8578521_1    conda-forge
azure-storage-blobs-cpp   12.11.0              h39eb5e7_1    conda-forge
azure-storage-common-cpp  12.6.0               h8578521_1    conda-forge
babel                     2.14.0             pyhd8ed1ab_0    conda-forge
beautifulsoup4            4.12.3             pyha770c72_0    conda-forge
bleach                    6.1.0              pyhd8ed1ab_0    conda-forge
blinker                   1.8.2              pyhd8ed1ab_0    conda-forge
blosc                     1.21.6               h85f69ea_0    conda-forge
bokeh                     3.4.2              pyhd8ed1ab_0    conda-forge
boltons                   24.0.0             pyhd8ed1ab_0    conda-forge
bqplot                    0.12.43            pyhd8ed1ab_0    conda-forge
branca                    0.7.2              pyhd8ed1ab_0    conda-forge
brotli                    1.1.0                hcfcfb64_1    conda-forge
brotli-bin                1.1.0                hcfcfb64_1    conda-forge
brotli-python             1.1.0           py312h53d5487_1    conda-forge
bzip2                     1.0.8                hcfcfb64_5    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
c-ares                    1.28.1               hcfcfb64_0    conda-forge
ca-certificates           2024.6.2             h56e8100_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cachelib                  0.9.0              pyhd8ed1ab_0    conda-forge
cachetools                5.3.3              pyhd8ed1ab_0    conda-forge
cairo                     1.18.0               h91e5215_2    conda-forge
certifi                   2024.6.2           pyhd8ed1ab_0    conda-forge
cffi                      1.16.0          py312he70551f_0    conda-forge
cfitsio                   4.4.1                hc2ea260_0    conda-forge
cftime                    1.6.4           py312h1a27103_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
click                     8.1.7           win_pyh7428d3b_0    conda-forge
click-plugins             1.1.1                      py_0    conda-forge
cligj                     0.7.2              pyhd8ed1ab_1    conda-forge
color-operations          0.1.3           py312h1a27103_1    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
colour                    0.1.5              pyhd8ed1ab_1    conda-forge
comm                      0.2.2              pyhd8ed1ab_0    conda-forge
conda                     24.5.0          py312h2e8e312_0    conda-forge
conda-libmamba-solver     24.1.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.3.0              pyh7900ff3_0    conda-forge
conda-package-streaming   0.10.0             pyhd8ed1ab_0    conda-forge
contourpy                 1.2.1           py312h0d7def4_0    conda-forge
cryptography              42.0.8          py312h9500af3_0    conda-forge
cycler                    0.12.1             pyhd8ed1ab_0    conda-forge
dataclasses               0.8                pyhc8e2a94_3    conda-forge
dav1d                     1.2.1                hcfcfb64_0    conda-forge
debugpy                   1.8.2           py312h275cf98_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
earthengine-api           0.1.408            pyhd8ed1ab_0    conda-forge
ee_extra                  0.0.15             pyhd8ed1ab_0    conda-forge
eerepr                    0.0.4              pyhd8ed1ab_0    conda-forge
entrypoints               0.4                pyhd8ed1ab_0    conda-forge
et_xmlfile                1.1.0              pyhd8ed1ab_0    conda-forge
exceptiongroup            1.2.0              pyhd8ed1ab_2    conda-forge
executing                 2.0.1              pyhd8ed1ab_0    conda-forge
expat                     2.6.2                h63175ca_0    conda-forge
ffmpeg                    7.0.1           gpl_hef3ce01_103    conda-forge
ffmpeg-python             0.2.0                      py_0    conda-forge
filelock                  3.15.4             pyhd8ed1ab_0    conda-forge
flask                     3.0.3              pyhd8ed1ab_0    conda-forge
flask-caching             2.1.0              pyhd8ed1ab_0    conda-forge
flask-cors                4.0.0              pyhd8ed1ab_0    conda-forge
flask-restx               1.0.6              pyhd8ed1ab_0    conda-forge
fmt                       10.2.1               h181d51b_0    conda-forge
folium                    0.17.0             pyhd8ed1ab_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 h77eed37_2    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.53.0          py312h4389bb4_0    conda-forge
fqdn                      1.5.1              pyhd8ed1ab_0    conda-forge
freetype                  2.12.1               hdaf720e_2    conda-forge
freexl                    2.0.0                h8276f4a_0    conda-forge
frozendict                2.4.4           py312h4389bb4_0    conda-forge
frozenlist                1.4.1           py312he70551f_0    conda-forge
future                    1.0.0              pyhd8ed1ab_0    conda-forge
gdal                      3.9.1           py312h7090a6d_2    conda-forge
gdown                     5.2.0              pyhd8ed1ab_0    conda-forge
geeadd                    0.5.6              pyhd8ed1ab_0    conda-forge
geedim                    1.8.0              pyhd8ed1ab_0    conda-forge
geemap                    0.32.1             pyhd8ed1ab_0    conda-forge
geocoder                  1.38.1                     py_1    conda-forge
geojson                   3.1.0              pyhd8ed1ab_0    conda-forge
geopandas                 1.0.0              pyhd8ed1ab_0    conda-forge
geopandas-base            1.0.0              pyha770c72_0    conda-forge
geos                      3.12.1               h1537add_0    conda-forge
geotiff                   1.7.3                hd7df778_1    conda-forge
google-api-core           2.19.1             pyhd8ed1ab_0    conda-forge
google-api-python-client  2.135.0            pyhd8ed1ab_0    conda-forge
google-auth               2.30.0             pyhff2d567_0    conda-forge
google-auth-httplib2      0.2.0              pyhd8ed1ab_0    conda-forge
google-cloud-core         2.4.1              pyhd8ed1ab_0    conda-forge
google-cloud-storage      2.17.0             pyhff2d567_0    conda-forge
google-crc32c             1.1.2           py312h3c140c2_5    conda-forge
google-resumable-media    2.7.0              pyhd8ed1ab_0    conda-forge
googleapis-common-protos  1.63.2             pyhd8ed1ab_0    conda-forge
graphite2                 1.3.13            h63175ca_1003    conda-forge
grpcio                    1.62.2          py312h7894644_0    conda-forge
h11                       0.14.0             pyhd8ed1ab_0    conda-forge
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
harfbuzz                  9.0.0                h81778c3_0    conda-forge
hdf4                      4.2.15               h5557f11_7    conda-forge
hdf5                      1.14.3          nompi_h2b43c12_105    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
httpcore                  1.0.5              pyhd8ed1ab_0    conda-forge
httplib2                  0.22.0             pyhd8ed1ab_0    conda-forge
httpx                     0.27.0             pyhd8ed1ab_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
icu                       73.2                 h63175ca_0    conda-forge
idna                      3.7                pyhd8ed1ab_0    conda-forge
importlib-metadata        8.0.0              pyha770c72_0    conda-forge
importlib-resources       6.4.0              pyhd8ed1ab_0    conda-forge
importlib_metadata        8.0.0                hd8ed1ab_0    conda-forge
importlib_resources       6.4.0              pyhd8ed1ab_0    conda-forge
ipyevents                 2.0.2              pyhd8ed1ab_0    conda-forge
ipyfilechooser            0.6.0              pyhd8ed1ab_0    conda-forge
ipykernel                 6.29.4             pyh4bbf305_0    conda-forge
ipyleaflet                0.18.2             pyhd8ed1ab_0    conda-forge
ipynb-py-convert          0.4.6              pyh9f0ad1d_0    conda-forge
ipysheet                  0.7.0              pyhd8ed1ab_0    conda-forge
ipython                   8.26.0             pyh7428d3b_0    conda-forge
ipytree                   0.2.2              pyhd8ed1ab_0    conda-forge
ipyvue                    1.11.0             pyhd8ed1ab_0    conda-forge
ipyvuetify                1.9.4              pyhd8ed1ab_0    conda-forge
ipywidgets                8.1.3              pyhd8ed1ab_0    conda-forge
isoduration               20.11.0            pyhd8ed1ab_0    conda-forge
itsdangerous              2.2.0              pyhd8ed1ab_0    conda-forge
jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
jinja2                    3.1.4              pyhd8ed1ab_0    conda-forge
joblib                    1.4.2              pyhd8ed1ab_0    conda-forge
json5                     0.9.25             pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               3.0.0           py312h2e8e312_0    conda-forge
jsonschema                4.22.0             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2023.12.1          pyhd8ed1ab_0    conda-forge
jsonschema-with-format-nongpl 4.22.0             pyhd8ed1ab_0    conda-forge
jupyter-lsp               2.2.5              pyhd8ed1ab_0    conda-forge
jupyter_client            8.6.2              pyhd8ed1ab_0    conda-forge
jupyter_core              5.7.2           py312h2e8e312_0    conda-forge
jupyter_events            0.10.0             pyhd8ed1ab_0    conda-forge
jupyter_server            2.14.1             pyhd8ed1ab_0    conda-forge
jupyter_server_terminals  0.5.3              pyhd8ed1ab_0    conda-forge
jupyterlab                4.2.3              pyhd8ed1ab_0    conda-forge
jupyterlab-language-pack-zh-cn 4.2.post1          pyh3752e69_0    conda-forge
jupyterlab_pygments       0.3.0              pyhd8ed1ab_1    conda-forge
jupyterlab_server         2.27.2             pyhd8ed1ab_0    conda-forge
jupyterlab_widgets        3.0.11             pyhd8ed1ab_0    conda-forge
kealib                    1.5.3                h6c43f9b_1    conda-forge
keplergl                  0.3.2              pyhd8ed1ab_0    conda-forge
kiwisolver                1.4.5           py312h0d7def4_1    conda-forge
krb5                      1.21.3               hdf4eb48_0    conda-forge
lcms2                     2.16                 h67d730c_0    conda-forge
leafmap                   0.35.1             pyhd8ed1ab_0    conda-forge
lerc                      4.0.0                h63175ca_0    conda-forge
libabseil                 20240116.2      cxx17_h63175ca_0    conda-forge
libaec                    1.1.3                h63175ca_0    conda-forge
libarchive                3.7.4                haf234dc_0    conda-forge
libblas                   3.9.0           22_win64_openblas    conda-forge
libboost-headers          1.85.0               h57928b3_2    conda-forge
libbrotlicommon           1.1.0                hcfcfb64_1    conda-forge
libbrotlidec              1.1.0                hcfcfb64_1    conda-forge
libbrotlienc              1.1.0                hcfcfb64_1    conda-forge
libcblas                  3.9.0           22_win64_openblas    conda-forge
libcrc32c                 1.1.2                h0e60522_0    conda-forge
libcurl                   8.8.0                hd5e4a3a_1    conda-forge
libdeflate                1.20                 hcfcfb64_0    conda-forge
libexpat                  2.6.2                h63175ca_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libffi                    3.4.2                h8ffe710_5    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libflang                  5.0.0           h6538335_20180525    conda-forge
libgdal                   3.9.1                h954eb94_2    conda-forge
libglib                   2.80.2               h7025463_1    conda-forge
libgoogle-cloud           2.25.0               h5e7cea3_0    conda-forge
libgoogle-cloud-storage   2.25.0               hce61461_0    conda-forge
libgrpc                   1.62.2               h5273850_0    conda-forge
libiconv                  1.17                 hcfcfb64_2    conda-forge
libintl                   0.22.5               h5728263_2    conda-forge
libjpeg-turbo             3.0.0                hcfcfb64_1    conda-forge
libkml                    1.3.0             haf3e7a6_1018    conda-forge
liblapack                 3.9.0           22_win64_openblas    conda-forge
libmamba                  1.5.8                h3f09ed1_0    conda-forge
libmambapy                1.5.8           py312h66cf91f_0    conda-forge
libnetcdf                 4.9.2           nompi_h92078aa_114    conda-forge
libopenblas               0.3.27          pthreads_hc140b1d_0    conda-forge
libopus                   1.3.1                h8ffe710_1    conda-forge
libpng                    1.6.43               h19919ed_0    conda-forge
libpq                     16.3                 hab9416b_0    conda-forge
libprotobuf               4.25.3               h503648d_0    conda-forge
libre2-11                 2023.09.01           hf8d8778_2    conda-forge
librttopo                 1.1.0               h94c4f80_15    conda-forge
libsodium                 1.0.18               h8d14728_1    conda-forge
libsolv                   0.7.29               h0ea2cb4_0    conda-forge
libspatialite             5.1.0                h1b797e6_7    conda-forge
libsqlite                 3.46.0               h2466b09_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libssh2                   1.11.0               h7dfc565_0    conda-forge
libtiff                   4.6.0                hddb2be6_3    conda-forge
libwebp-base              1.4.0                hcfcfb64_0    conda-forge
libxcb                    1.16                 hcd874cb_0    conda-forge
libxml2                   2.12.7               h283a6d9_1    conda-forge
libxslt                   1.1.39               h3df6e99_0    conda-forge
libzip                    1.10.1               h1d365fa_3    conda-forge
libzlib                   1.3.1                h2466b09_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
llvm-meta                 5.0.0                         0    conda-forge
localtileserver           0.10.3             pyhd8ed1ab_0    conda-forge
logzero                   1.7.0           py312h2e8e312_5    conda-forge
lxml                      5.2.2           py312h56c7e3b_0    conda-forge
lz4-c                     1.9.4                hcfcfb64_0    conda-forge
lzo                       2.10              hcfcfb64_1001    conda-forge
m2w64-gcc-libgfortran     5.3.0                         6    conda-forge
m2w64-gcc-libs            5.3.0                         7    conda-forge
m2w64-gcc-libs-core       5.3.0                         7    conda-forge
m2w64-gmp                 6.1.0                         2    conda-forge
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    conda-forge
mamba                     1.5.8           py312h5494d5c_0    conda-forge
mapclassify               2.6.1              pyhd8ed1ab_0    conda-forge
markupsafe                2.1.5           py312he70551f_0    conda-forge
matplotlib-base           3.8.4           py312hfee7060_2    conda-forge
matplotlib-inline         0.1.7              pyhd8ed1ab_0    conda-forge
menuinst                  2.1.1           py312h275cf98_0    conda-forge
minizip                   4.0.6                hb638d1e_0    conda-forge
mistune                   3.0.2              pyhd8ed1ab_0    conda-forge
morecantile               5.3.0              pyhd8ed1ab_0    conda-forge
msys2-conda-epoch         20160418                      1    conda-forge
multidict                 6.0.5           py312he70551f_0    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
nbclient                  0.10.0             pyhd8ed1ab_0    conda-forge
nbconvert-core            7.16.4             pyhd8ed1ab_1    conda-forge
nbformat                  5.10.4             pyhd8ed1ab_0    conda-forge
nest-asyncio              1.6.0              pyhd8ed1ab_0    conda-forge
netcdf4                   1.7.1           nompi_py312h39e0dc6_101    conda-forge
networkx                  3.3                pyhd8ed1ab_1    conda-forge
nomkl                     1.0                  h5ca1d4c_0    conda-forge
notebook-shim             0.2.4              pyhd8ed1ab_0    conda-forge
numexpr                   2.10.0          py312h2aa74e6_100    conda-forge
numpy                     1.26.4          py312h8753938_0    conda-forge
openh264                  2.4.1                h63175ca_0    conda-forge
openjpeg                  2.5.2                h3d672ee_0    conda-forge
openmp                    5.0.0                    vc14_1    conda-forge
openpyxl                  3.1.4           py312he70551f_0    conda-forge
openssl                   3.3.1                h2466b09_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
osmnx                     1.9.3              pyhd8ed1ab_0    conda-forge
overrides                 7.7.0              pyhd8ed1ab_0    conda-forge
owslib                    0.31.0             pyhd8ed1ab_0    conda-forge
packaging                 24.1               pyhd8ed1ab_0    conda-forge
palettable                3.3.3              pyhd8ed1ab_0    conda-forge
pandas                    2.2.2           py312h72972c8_1    conda-forge
pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
parso                     0.8.4              pyhd8ed1ab_0    conda-forge
pcre2                     10.44                h3d7b363_0    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    10.3.0          py312h381445a_1    conda-forge
pip                       24.0               pyhd8ed1ab_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
pixman                    0.43.4               h63175ca_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_1    conda-forge
platformdirs              4.2.2              pyhd8ed1ab_0    conda-forge
plotly                    5.22.0             pyhd8ed1ab_0    conda-forge
pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
poppler                   24.04.0              h747fd5a_0    conda-forge
poppler-data              0.4.12               hd8ed1ab_0    conda-forge
postgresql                16.3                 h7f155c9_0    conda-forge
proj                      9.4.1                hd9569ee_0    conda-forge
prometheus_client         0.20.0             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.47             pyha770c72_0    conda-forge
proto-plus                1.23.0             pyhd8ed1ab_0    conda-forge
protobuf                  4.25.3          py312h5594109_0    conda-forge
pscript                   0.7.7              pyhd8ed1ab_0    conda-forge
psutil                    6.0.0           py312h4389bb4_0    conda-forge
pthread-stubs             0.4               hcd874cb_1001    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
py                        1.11.0             pyh6c4a22f_0    conda-forge
pyasn1                    0.6.0              pyhd8ed1ab_0    conda-forge
pyasn1-modules            0.4.0              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py312he70551f_0    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pycrs                     1.0.2                      py_0    conda-forge
pydantic                  2.7.4              pyhd8ed1ab_0    conda-forge
pydantic-core             2.18.4          py312h2615798_0    conda-forge
pydeck                    0.8.0              pyhd8ed1ab_0    conda-forge
pygis                     0.6.3              pyhd8ed1ab_0    conda-forge
pygments                  2.18.0             pyhd8ed1ab_0    conda-forge
pyogrio                   0.9.0           py312hd215820_0    conda-forge
pyopenssl                 24.0.0             pyhd8ed1ab_0    conda-forge
pyparsing                 3.1.2              pyhd8ed1ab_0    conda-forge
pyperclip                 1.9.0              pyh7428d3b_0    conda-forge
pyproj                    3.6.1           py312h6f27134_7    conda-forge
pyshp                     2.3.1              pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyh0701188_6    conda-forge
pystac                    1.10.1             pyhd8ed1ab_0    conda-forge
pystac-client             0.8.1              pyhd8ed1ab_0    conda-forge
python                    3.12.4          h889d299_0_cpython    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
python-box                7.2.0           py312h4389bb4_0    conda-forge
python-dateutil           2.9.0              pyhd8ed1ab_0    conda-forge
python-duckdb             1.0.0           py312h275cf98_0    conda-forge
python-fastjsonschema     2.20.0             pyhd8ed1ab_0    conda-forge
python-json-logger        2.0.7              pyhd8ed1ab_0    conda-forge
python-mss                9.0.1              pyhd8ed1ab_0    conda-forge
python-tzdata             2024.1             pyhd8ed1ab_0    conda-forge
python_abi                3.12                    4_cp312    conda-forge
pytz                      2024.1             pyhd8ed1ab_0    conda-forge
pyu2f                     0.1.5              pyhd8ed1ab_0    conda-forge
pywin32                   306             py312h53d5487_2    conda-forge
pywinpty                  2.0.13          py312h53d5487_0    conda-forge
pyyaml                    6.0.1           py312he70551f_1    conda-forge
pyzmq                     26.0.3          py312hd7027bb_0    conda-forge
rasterio                  1.3.10          py312he4a2ebf_4    conda-forge
ratelim                   0.1.6                      py_2    conda-forge
re2                       2023.09.01           hd3b24a8_2    conda-forge
referencing               0.35.1             pyhd8ed1ab_0    conda-forge
reproc                    14.2.4.post0         hcfcfb64_1    conda-forge
reproc-cpp                14.2.4.post0         h63175ca_1    conda-forge
requests                  2.32.3             pyhd8ed1ab_0    conda-forge
retry                     0.9.2                      py_0    conda-forge
rfc3339-validator         0.1.4              pyhd8ed1ab_0    conda-forge
rfc3986-validator         0.1.1              pyh9f0ad1d_0    conda-forge
rio-cogeo                 5.3.0              pyhd8ed1ab_0    conda-forge
rio-tiler                 6.6.1              pyhd8ed1ab_0    conda-forge
rioxarray                 0.15.7             pyhd8ed1ab_0    conda-forge
rpds-py                   0.18.1          py312h2615798_0    conda-forge
rsa                       4.9                pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.18.6          py312he70551f_0    conda-forge
ruamel.yaml.clib          0.2.8           py312he70551f_0    conda-forge
sankee                    0.2.5              pyhd8ed1ab_0    conda-forge
scikit-learn              1.5.0           py312h816cc57_1    conda-forge
scipy                     1.14.0          py312h1f4e10d_0    conda-forge
scooby                    0.10.0             pyhd8ed1ab_0    conda-forge
send2trash                1.8.3              pyh5737063_0    conda-forge
server-thread             0.2.0              pyhd8ed1ab_0    conda-forge
setuptools                70.1.1             pyhd8ed1ab_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
shapely                   2.0.4           py312h91267bd_1    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.2.0                hfb803bf_1    conda-forge
sniffio                   1.3.1              pyhd8ed1ab_0    conda-forge
snuggs                    1.4.7                      py_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
spdlog                    1.13.0               h64d2f7d_0    conda-forge
sqlite                    3.46.0               h2466b09_0    conda-forge
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
svt-av1                   2.1.0                he0c23c2_0    conda-forge
tabulate                  0.9.0              pyhd8ed1ab_1    conda-forge
tenacity                  8.4.2              pyhd8ed1ab_0    conda-forge
terminado                 0.18.1             pyh5737063_0    conda-forge
threadpoolctl             3.5.0              pyhc1e730c_0    conda-forge
tiledb                    2.24.1               h1cdb155_1    conda-forge
tinycss2                  1.3.0              pyhd8ed1ab_0    conda-forge
tk                        8.6.13               h5226925_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tornado                   6.4.1           py312h4389bb4_0    conda-forge
tqdm                      4.66.4             pyhd8ed1ab_0    conda-forge
traitlets                 5.14.3             pyhd8ed1ab_0    conda-forge
traittypes                0.2.1              pyh9f0ad1d_2    conda-forge
truststore                0.8.0              pyhd8ed1ab_0    conda-forge
types-python-dateutil     2.9.0.20240316     pyhd8ed1ab_0    conda-forge
typing-extensions         4.12.2               hd8ed1ab_0    conda-forge
typing_extensions         4.12.2             pyha770c72_0    conda-forge
typing_utils              0.1.0              pyhd8ed1ab_0    conda-forge
tzdata                    2024a                h0c530f3_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
ucrt                      10.0.22621.0         h57928b3_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
uri-template              1.3.0              pyhd8ed1ab_0    conda-forge
uriparser                 0.9.8                h5a68840_0    conda-forge
uritemplate               4.1.1              pyhd8ed1ab_0    conda-forge
urllib3                   2.2.2              pyhd8ed1ab_1    conda-forge
uvicorn                   0.30.1          py312h2e8e312_0    conda-forge
vc                        14.3                h8a93ad2_20    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
vc14_runtime              14.40.33810         ha82c5b3_20    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
vs2015_runtime            14.40.33810         h3bf8584_20    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
webcolors                 24.6.0             pyhd8ed1ab_0    conda-forge
webencodings              0.5.1              pyhd8ed1ab_2    conda-forge
websocket-client          1.8.0              pyhd8ed1ab_0    conda-forge
werkzeug                  3.0.3              pyhd8ed1ab_0    conda-forge
wheel                     0.43.0             pyhd8ed1ab_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
whitebox                  2.3.4              pyhd8ed1ab_0    conda-forge
whiteboxgui               2.3.0              pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.11             pyhd8ed1ab_0    conda-forge
win_inet_pton             1.1.0              pyhd8ed1ab_6    conda-forge
winpty                    0.4.3                         4    conda-forge
x264                      1!164.3095           h8ffe710_2    conda-forge
x265                      3.5                  h2d74725_3    conda-forge
xarray                    2024.6.0           pyhd8ed1ab_1    conda-forge
xerces-c                  3.2.5                h63175ca_0    conda-forge
xorg-kbproto              1.0.7             hcd874cb_1002    conda-forge
xorg-libx11               1.8.9                h0076a8d_1    conda-forge
xorg-libxau               1.0.11               hcd874cb_0    conda-forge
xorg-libxdmcp             1.1.3                hcd874cb_0    conda-forge
xorg-xextproto            7.3.0             hcd874cb_1003    conda-forge
xorg-xproto               7.0.31            hcd874cb_1007    conda-forge
xyzservices               2024.6.0           pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h8d14728_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
yaml                      0.2.5                h8ffe710_2    conda-forge
yaml-cpp                  0.8.0                h63175ca_0    conda-forge
yarl                      1.9.4           py312he70551f_0    conda-forge
zeromq                    4.3.5                he1f189c_4    conda-forge
zipp                      3.19.2             pyhd8ed1ab_0    conda-forge
zlib                      1.3.1                h2466b09_1    conda-forge
zstandard                 0.22.0          py312h7606c53_1    conda-forge
zstd                      1.5.6                h0ea2cb4_0    conda-forge

@zwy1502
Copy link
Author

zwy1502 commented Jul 5, 2024

conda install -n base mamba -c conda-forge
mamba create -n gee -c conda-forge geemap pygis

I installed the Gee environment through the above code, but when running the function addraster, an error message appears as follows. May I ask why. How to solve it, extremely grateful:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
File D:\software\anaconda\envs\gee\Lib\site-packages\flask_restx\api.py:18
17 try:
---> 18      from flask.helpers import _endpoint_from_view_func
19 except ImportError:

ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers' (D:\software\anaconda\envs\gee\Lib\site-packages\flask\helpers.py)

During handling of the above exception, another exception occurred:

ModuleNotFoundError                       Traceback (most recent call last)
File D:\software\anaconda\envs\gee\Lib\site-packages\geemap\common.py:1839, in check_package(name, URL)
1838 try:
-> 1839     __import__(name.lower())
1840 except Exception:

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\__init__.py:3
2 from localtileserver._ version import __version__
----> 3 from localtileserver.client import TileClient,  get_or_create_tile_client
4 from localtileserver.helpers import hillshade,  parse_shapely, polygon_to_geojson, save_new_raster

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\client.py:22
21 from localtileserver.configure import get_default_client_params
---> 22 from localtileserver.manager import AppManager
23 from localtileserver.tiler import (
24     format_to_encoding,
25     get_building_docs,
(...)
thirty-two palette_valid_or_raise,
33 )

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\manager.py:1
----> 1 from localtileserver.web import create_app
4 class AppManager:

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\web\__init__.py:2
1 # flake8: noqa: F401
----> 2 from localtileserver.web import rest, urls, views
3 from localtileserver.web.application import create_app, run_app

File D:\software\anaconda\envs\gee\Lib\site-packages\localtileserver\web\rest.py:4
3 from flask import request, send_file
----> 4 from flask_restx import Api, Resource as View
5 from rasterio import RasterioIOError

File D:\software\anaconda\envs\gee\Lib\site-packages\flask_restx\__init__.py:2
1 from .  import fields, reqparse, apidoc, inputs, cors
----> 2 from .api import Api  # noqa
3 from .marshalling import marshal,  marshal_with, marshal_with_field  # noqa

File D:\software\anaconda\envs\gee\Lib\site-packages\flask_restx\api.py:20
19 except ImportError:
---> 20      from flask.scaffold import _endpoint_from_view_func
21 from flask.signals import got_request_exception

ModuleNotFoundError: No module named 'flask.scaffold'

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
Cell In[2], line 1
----> 1 Map.add_raster(r'D:\edge_download\S1_lstmpredict.tif', {}, layer_name="S1predict")

File D:\software\anaconda\envs\gee\Lib\site-packages\geemap\geemap.py:2404, in Map.add_raster(self,  source, indexes, colormap, vmin, vmax, nodata, attribution, layer_name, zoom_to_layer, visible, array_args, **kwargs)
2401 if isinstance(source, np.ndarray) or isinstance(source, xr.DataArray):
2402     source = array_to_image(source, **array_args)
-> 2404 tile_layer, tile_client = get_local_tile_layer(
2405     source,
2406     indexes=indexes,
2407     colormap=colormap,
2408     vmin=vmin,
2409     vmax=vmax,
2410     nodata=nodata,
two thousand four hundred and eleven attribution=attribution,
two thousand four hundred and twelve layer_name=layer_name,
2413     return_client=True,
2414     **kwargs,
2415 )
2416 tile_layer.visible = visible
2418 self.add(tile_layer)

File D:\software\anaconda\envs\gee\Lib\site-packages\geemap\common.py:10788, in get_local_tile_layer(source,  port, debug, indexes, colormap, vmin, vmax, nodata, attribution, tile_format, layer_name, return_client, quiet, **kwargs)
10761 """Generate an ipyleaflet/folium TileLayer from a local raster dataset or remote Cloud Optimized GeoTIFF (COG).
ten thousand seven hundred and sixty-two If you are using this function in JupyterHub on a remote server and the raster does not render properly, try
ten thousand seven hundred and sixty-three running the following two lines before calling this function:
(...)
ten thousand seven hundred and eighty-four ipyleaflet.TileLayer | folium.TileLayer: An ipyleaflet.TileLayer or folium.TileLayer.
10785 """
10786 import rasterio
> 10788 check_package(
10789     "localtileserver", URL=" https://github.com/banesullivan/localtileserver "
10790 )
10792 # Handle legacy localtileserver kwargs
10793 if "cmap" in kwargs:

File D:\software\anaconda\envs\gee\Lib\site-packages\geemap\common.py:1841, in check_package(name, URL)
1839     __import__(name.lower())
1840 except Exception:
-> 1841     raise ImportError(
1842         f"{name} is not installed.  Please install it before proceeding. {URL}"
1843     )

ImportError: localtileserver is not installed. Please install it before proceeding.  https://github.com/banesullivan/localtileserver

@giswqs
Copy link

giswqs commented Jul 5, 2024

This is very likely a gdal issue. Try the following

conda create -n geo python=3.11
conda activate geo
conda install -c conda-forge gdal=3.7.2 geemap localtileserver

@SpencerReese
Copy link

SpencerReese commented Aug 26, 2024

I've encountered exactly the same problem; and after typing in the code you provided:

(geo) C:\Users\Reese>conda install -c conda-forge gdal=3.7.2 geemap localtileserver
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): \

And it never ends. I've tried with different mirrors and proxies, but still couldn't install properly.

@giswqs
Copy link

giswqs commented Aug 26, 2024

Try mamba.

conda create -n geo python=3.11
conda activate geo
conda install -c conda-forge mamba
mamba install -c conda-forge geemap localtileserver
pip install flask==2.3.3

@SpencerReese
Copy link

Thanks for your replay :)
The pip install flask seems to be successful
But mamba install -c conda-forge geemap localtileserver is still malfunctioning TAT

(geo) C:\Users\Reese>mamba install -c conda-forge geemap localtileserver

Looking for: ['geemap', 'localtileserver']

https://mirrors.tuna.tsinghua.edu.cn/anaconda/pk.. Checked 0.1s
https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud.. Checked 0.1s
https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud.. Checked 0.0s
https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/.. Checked 0.0s
https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/.. Checked 0.0s
https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/.. Checked 0.0s
https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/.. Checked 0.0s
warning libmamba Could not parse mod/etag header
pkgs/main/win-64 (check zst) Checked 1.3s
warning libmamba Could not parse mod/etag header
pkgs/main/noarch (check zst) Checked 0.5s
warning libmamba Could not parse mod/etag header
pkgs/r/win-64 (check zst) Checked 0.5s
warning libmamba Could not parse mod/etag header
pkgs/r/noarch (check zst) Checked 1.5s
warning libmamba Could not parse mod/etag header
warning libmamba Could not parse mod/etag header
pkgs/msys2/noarch (check zst) Checked 0.4s
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cl.. No change
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pk.. No change
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pk.. No change
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cl.. No change
[+] 0.3s
Download error (23) Failed writing received data to disk/application [https://s3.jcloud.sjtu.edu.cn/899a892efef34b1b944]
Failure writing output to destination, passed 264 returned 265

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "D:\ANACONDA\envs\geo\Lib\site-packages\conda\exception_handler.py", line 18, in __call__
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "D:\ANACONDA\envs\geo\Lib\site-packages\mamba\mamba.py", line 959, in exception_converter
    raise e
  File "D:\ANACONDA\envs\geo\Lib\site-packages\mamba\mamba.py", line 952, in exception_converter
    exit_code = _wrapped_main(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ANACONDA\envs\geo\Lib\site-packages\mamba\mamba.py", line 898, in _wrapped_main
    result = do_call(parsed_args, p)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ANACONDA\envs\geo\Lib\site-packages\mamba\mamba.py", line 763, in do_call
    exit_code = install(args, parser, "install")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ANACONDA\envs\geo\Lib\site-packages\mamba\mamba.py", line 469, in install
    index = load_channels(pool, channels, repos)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ANACONDA\envs\geo\Lib\site-packages\mamba\utils.py", line 126, in load_channels
    index = get_index(
            ^^^^^^^^^^
  File "D:\ANACONDA\envs\geo\Lib\site-packages\mamba\utils.py", line 107, in get_index
    is_downloaded = dlist.download(api.MAMBA_DOWNLOAD_FAILFAST)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Download error (23) Failed writing received data to disk/application [https://s3.jcloud.sjtu.edu.cn/8]
Failure writing output to destination, passed 264 returned 265

$ D:\ANACONDA\envs\geo\Scripts\mamba install -c conda-forge geemap localtileserver

environment variables:
CIO_TEST=
CONDA_DEFAULT_ENV=geo
CONDA_EXE=D:\ANACONDA\envs\geo\condabin..\Scripts\conda.exe
CONDA_EXES="D:\ANACONDA\condabin..\Scripts\conda.exe"
CONDA_PREFIX=D:\ANACONDA\envs\geo
CONDA_PREFIX_1=D:\ANACONDA
CONDA_PROMPT_MODIFIER=(geo)
CONDA_PYTHON_EXE=D:\ANACONDA\python.exe
CONDA_ROOT=D:\ANACONDA\envs\geo
CONDA_SHLVL=2
CURL_CA_BUNDLE=
HOMEPATH=\Users\Reese
LD_PRELOAD=
PATH=D:\ANACONDA\envs\geo;D:\ANACONDA\envs\geo\Library\mingw-
w64\bin;D:\ANACONDA\envs\geo\Library\usr\bin;D:\ANACONDA\envs\geo\Libr
ary\bin;D:\ANACONDA\envs\geo\Scripts;D:\ANACONDA\envs\geo\bin;D:\ANACO
NDA\condabin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C
:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program
Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program
Files\dotnet;D:\Matlab\bin;C:\Program Files\nodejs;C:\Program Files
(x86)\Common Files\Propellerhead Software\ReWire;C:\Program
Files\Common Files\Propellerhead Software\ReWire;C:\Users\Reese\AppDat
a\Local\Microsoft\WindowsApps;C:\texlive\2023\bin\windows;C:\Users\Ree
se\AppData\Roaming\npm;C:\Program Files\Bandizip
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
PowerShell\v1.0\Modules
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=D:\ANACONDA\Library\ssl\cacert.pem

 active environment : base
active env location : D:\ANACONDA\envs\geo
        shell level : 2
   user config file : C:\Users\Reese\.condarc

populated config files : C:\Users\Reese.condarc
conda version : 24.7.1
conda-build version : not installed
python version : 3.11.9.final.0
solver : libmamba (default)
virtual packages : __archspec=1=skylake
__conda=24.7.1=0
__cuda=12.5=0
__win=0=0
base environment : D:\ANACONDA\envs\geo (writable)
conda av data dir : D:\ANACONDA\envs\geo\etc\conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud/conda-forge/win-64
https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud/conda-forge/noarch
https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/win-64
https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/noarch
https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/win-64
https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : D:\ANACONDA\envs\geo\pkgs
C:\Users\Reese.conda\pkgs
C:\Users\Reese\AppData\Local\conda\conda\pkgs
envs directories : D:\ANACONDA\envs\geo\envs
C:\Users\Reese.conda\envs
C:\Users\Reese\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/24.7.1 requests/2.32.3 CPython/3.11.9 Windows/10 Windows/10.0.22631 solver/libmamba con8
administrator : False
netrc file : None
offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

@SpencerReese
Copy link

SpencerReese commented Aug 26, 2024

My problem was magically solved (at least quite magical for amateurs like myself), I was adding a local raster in geemap jupyter lab, and then received localtileserver is not installed, then I tried import localtileserver but something went wrong regarding to flask.
Then I did this

conda create -n geo python=3.11 conda activate geo conda install -c conda-forge mamba mamba install -c conda-forge geemap localtileserver pip install flask==2.3.3

The mamba install -c conda-forge geemap localtileserver went south but I believe pip install flask==2.3.3 worked out, later import localtileserver can be successfully caried out and the raster is now loaded.
Really appreciate your efforts and hopefully this can be of some assistance.

@SpencerReese
Copy link

image

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

3 participants