The same thing. And, yes, I also have rtree 0.9.7 installed. When I try to import rtree from command-line python, I have the following traceback:
Python 3.8.8 (default, Feb 24 2021, 21:46:12)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rtree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sergey/anaconda3/lib/python3.8/site-packages/rtree/__init__.py", line 9, in <module>
from .index import Rtree, Index # noqa
File "/home/sergey/anaconda3/lib/python3.8/site-packages/rtree/index.py", line 6, in <module>
from . import core
File "/home/sergey/anaconda3/lib/python3.8/site-packages/rtree/core.py", line 77, in <module>
rt.Error_GetLastErrorNum.restype = ctypes.c_int
File "/home/sergey/anaconda3/lib/python3.8/ctypes/__init__.py", line 394, in __getattr__
func = self.__getitem__(name)
File "/home/sergey/anaconda3/lib/python3.8/ctypes/__init__.py", line 399, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: python: undefined symbol: Error_GetLastErrorNum
>>>
This bug appeared after upgrading spyder to 4.2.2 and python to 3.8.8. May be, the problem is in a new python distribution.
воскресенье, 28 февраля 2021 г. в 17:14:13 UTC+3, Rational-IM: