Missing dependencies - Spyder 4.2.2

94 views
Skip to first unread message

d...@rational-im.com

unread,
Feb 28, 2021, 8:47:30 AM2/28/21
to spyd...@googlegroups.com

Good morning:

 

I just installed Spyder 4.2.2 (first, running “conda update anaconda”  and after “conda install spyder=4.2.2 from Anaconda Prompt), and as soon as I opened Spyder I got the warning below. First, how do I “install a dependency”? Second, why is a dependency missing?

 

Thanks a lot,

 

Danilo

 

 

 

image002.png
image004.png

d...@rational-im.com

unread,
Feb 28, 2021, 9:14:13 AM2/28/21
to spyd...@googlegroups.com

In time - I already had rtree 0.9.7 installed. See below from Anaconda Navigator:

 

image002.png
image004.png
image007.png

Sergey Serov

unread,
Mar 1, 2021, 10:34:44 AM3/1/21
to spyder
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:
Reply all
Reply to author
Forward
0 new messages