Replies: 2 comments
-
|
Installing geopandas without any problem does not mean that you can use it without any problem. Try |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Ok, I solved this issue by following your suggestion. Thank you.
…On Tue, Sep 14, 2021 at 8:54 AM Qiusheng Wu ***@***.***> wrote:
Installing geopandas without any problem does not mean that you can use it
without any problem. Try import geopandas and if it throws an OSError:
could not find or load spatialindex_c-64.dll, that means geopandas is not
installed properly. Create a fresh conda env, and then use conda install
geopandas. Do NOT use conda install geopandas -c conda-forge. Then try import
geopandas again and make sure no error occurs before install geemap.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#668 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5J3HUA4YG7CDR4VLTAADTUB2MMBANCNFSM5D67BNNQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Dr. Wu,
I got this error when call the osm_to_ee
Error information
OSError Traceback (most recent call last)
~\Anaconda3\envs\gee\lib\site-packages\geemap\common.py in check_package(name, URL)
254 try:
--> 255 import(name.lower())
256 except Exception:
~\Anaconda3\envs\gee\lib\site-packages\geopandas_init_.py in
----> 1 from geopandas._config import options # noqa
2
3 from geopandas.geoseries import GeoSeries # noqa
~\Anaconda3\envs\gee\lib\site-packages\geopandas_config.py in
125 key="use_pygeos",
--> 126 default_value=_default_use_pygeos(),
127 doc=(
~\Anaconda3\envs\gee\lib\site-packages\geopandas_config.py in _default_use_pygeos()
111 def _default_use_pygeos():
--> 112 import geopandas._compat as compat
113
~\Anaconda3\envs\gee\lib\site-packages\geopandas_compat.py in
201 try:
--> 202 import rtree # noqa
203
~\Anaconda3\envs\gee\lib\site-packages\rtree_init_.py in
8
----> 9 from .index import Rtree, Index # noqa
~\Anaconda3\envs\gee\lib\site-packages\rtree\index.py in
5
----> 6 from . import core
7
~\Anaconda3\envs\gee\lib\site-packages\rtree\core.py in
74 # load the shared library by looking in likely places
---> 75 rt = finder.load()
76
~\Anaconda3\envs\gee\lib\site-packages\rtree\finder.py in load()
66 os.environ['PATH'] = oldenv
---> 67 raise OSError("could not find or load {}".format(lib_name))
68
OSError: could not find or load spatialindex_c-64.dll
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
in
1 Map = geemap.Map()
----> 2 roi = geemap.osm_to_ee('Texas, United States')
3 Map.addLayer(roi,{},'roi')
4 Map.centerObject(roi,12)
5 Map
~\Anaconda3\envs\gee\lib\site-packages\geemap\common.py in osm_to_ee(query, which_result, by_osmid, buffer_dist, geodesic)
7778 ee.FeatureCollection: An Earth Engine FeatureCollection.
7779 """
-> 7780 gdf = osm_to_geopandas(query, which_result, by_osmid, buffer_dist)
7781 fc = geopandas_to_ee(gdf, geodesic)
7782 return fc
~\Anaconda3\envs\gee\lib\site-packages\geemap\common.py in osm_to_geopandas(query, which_result, by_osmid, buffer_dist)
7749 GeoDataFrame: A GeoPandas GeoDataFrame.
7750 """
-> 7751 check_package(
7752 "geopandas", "https://geopandas.org/getting_started.html#installation"
7753 )
~\Anaconda3\envs\gee\lib\site-packages\geemap\common.py in check_package(name, URL)
255 import(name.lower())
256 except Exception:
--> 257 raise ImportError(
258 f"{name} is not installed. Please install it before proceeding. {URL}"
259 )
ImportError: geopandas is not installed. Please install it before proceeding. https://geopandas.org/getting_started.html#installation
Actually, the geopandas was already installed. I using conda install geopandas, and the 0.9.0 version was installed without problem.
Beta Was this translation helpful? Give feedback.
All reactions