spyder: WPy32-3880 Spyder 5.0.5 missing dependency rtree>=0.9.7 : none (NOK)

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

What steps reproduce the problem?

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)

image


PASTE TRACEBACK HERE

Versions

  • Spyder version: 5.0.5
  • Python version: 32-3880
  • Qt version:
  • PyQt version:
  • Operating System name/version: windows 10

Dependencies

PASTE DEPENDENCIES HERE

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 22 (5 by maintainers)

Most upvoted comments

The problem is in rtree, but there is a workaround.

  • Find the location of "spatialindex_c-64.dll".
  • In my case it was in "%USERPROFILE%\Anaconda3\pkgs\libspatialindex-1.9.3-h6c2663c_0\Library\bin".
  • Create a System Environment Variable called "SPATIALINDEX_C_LIBRARY" pointing to the path of that directory.
  • Restart Spyder.

My solution was, copy spatialindex_c-64.dll and paste into folder rtree. I use miniconda 3, and spyder for windows…

Hey @cnsltnt51, thanks for reporting. I have one question for you: how did you install Spyder?

I am having this problem as well, just attempted to update Spyder via

conda install spyder=5.0.5

on a fresh install of Anaconda.

The problem is in rtree, but there is a workaround.

  • Find the location of "spatialindex_c-64.dll".
  • In my case it was in "%USERPROFILE%\Anaconda3\pkgs\libspatialindex-1.9.3-h6c2663c_0\Library\bin".
  • Create a System Environment Variable called "SPATIALINDEX_C_LIBRARY" pointing to the path of that directory.
  • Restart Spyder.

This workaround worked for me with Spyder 5.1.5.

Did you restart after setting the environment variable? If that variable is set correctly, rtree should not raise that error. Also, try creating a new conda environment. In my testing, this error only occurred in the conda (base) environment.