question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder 4.2.1 - erroneous missing rtree dependency

See original GitHub issue

I 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.

Untitled

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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:45 (20 by maintainers)

github_iconTop GitHub Comments

12reactions
Samk19commented, Mar 6, 2021

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

Screenshot from 2021-03-06 23-56-45

5reactions
manfred2020commented, Jan 8, 2021

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found