ArcGIS 2.8.0 GeoPandas Error - rtree problem

1751
3
07-11-2021 01:41 PM
Boroushaki
New Contributor

Hello all;

In ArcGIS Pro 2.8.0 I created a clone of the default environment and  installed GeoPandas:

conda install -c conda-forge geopandas

 

Then in ArcGIS Pro notebook when I tried to import geopandas I got this message: 

OSError: could not find or load spatialindex_c-64.dll

Based on the advice on GitHub I downgraded rtree to 0.9.3

conda install -c conda-forge rtree=0.9.3

 

And then I could import geopandas using ArcGIS Pro notebook:

SoheilBoroushaki_0-1626035905555.png

I am wondering if anyone of you had this problem with rtree after installing geopandas and whether there is an easier fix.

 

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

anaconda main uses __version__ = '0.9.7

rtree is listed on the default channel

main/win-64 (anaconda.com)

versions 0.9.3, 0.9.4 and 0.9.7

if you need 9.3 try installing from the default channel 


... sort of retired...
0 Kudos
Luke_Pinner
MVP Regular Contributor

I've had similar issues previously when mixing channels. I avoid using conda-forge with arcgispro-py clones (esri, defaults channels) now.

0 Kudos
XiaomingLi
New Contributor II

I followed @Boroushaki 's method, but doesn't work (using conda install.... in a clone env).
And what is worse is that after I modified rtree to 0.9.3 in the clone env, I can't even initialise notebook kernel.....
Do you have any suggestion? I found many people having this problem.

0 Kudos