Spyder 4.2.1 - erroneous missing rtree dependency
See original GitHub issueI just installed spyder 4.2.1 (conda-forge) into a conda environment running Python 3.7.9. When I start spyder, a window pops up and states that a dependency is missing, namely rtree >=0.8.3.
However, rtree 0.9.5 is installed.
# Name Version Build Channel
rtree 0.9.5 py37h13cc57e_0 conda-forge
Removing/reinstalling rtree and spyder doesn’t stop the warning. Is this a bug, or is there something wrong with my environment?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:45 (20 by maintainers)
Top Results From Across the Web
Missing dependancies of rtree - python - Stack Overflow
It looks like Rtree requires libspatialindex (https://libspatialindex.org) which is not automatically installed.
Read more >Missing dependencies - Mandatory rtree >= 0.8.3: None (NOK)
I think this is a known bug in Spyder and there really is not a missing dependency. . We will have to wait...
Read more >Spyder_Kernels >=2.0.1,<2.1.0: 2.0.1 (Nok) - ADocLib
An error ocurred while starting the kernel when launching spyder hot 51. ... for: spyder4 Spyder 4.2.1 - erroneous missing rtree dependency hot...
Read more >Problems with ArcGIS Pro package installer / conda
Hello all, Some time after upgrading to Arc Pro 2.7 (now on 2.7.2) I lost the ability to install anything via the python...
Read more >You have missing dependencies! #Mandatory: rtree>=0.9.7
上网查了一圈,虽然大多数的帖子都是提到Spyder5.0.5,但是事实上这似乎是一个历史更为“久远”的问题。根据以下链接:Spyder Missing Dependencies! error ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got few solutions FOR LINUX (tested and worked): sudo apt install libspatialindex-dev FOR MAC: brew install spatialindex
still not sure if its a permanent fix or not
after using above command (i.e linux one)…spyder rtree error message gone rtree v0.9.4 is recognized by spyder
yes, version 0.9.7.
but… i had a completely different experience a few days ago:
i had some problems with a script that uses geopandas. error message was, that “spatialindex_c-64.dll” could not be found (“OSError: could not find or load spatialindex_c-64.dll”). (my script worked all the weeks before, i don’t know what happened).
so i searched the internet and one tipp was to copy the dll file (which existed in folder “…\anaconda3\Library\bin”) to the folder “…\anaconda3\envs\MyEnvironmentName\Lib\site-packages\rtree”.
since then everything worked as before, my geopandas script works and spyder 4.2.1 works, no more rtree message.
what’s your opinion on that?
to me it seems that updating to spyder 4.2.1 caused the geopandas script error message (script worked before the update).