user1159290
user1159290

Reputation: 1003

conda: Missing dependencies when starting spyder (cahe issues?)

I (tried to) install spyder5 (for developing python programs) via anaconda. When starting spyder, I get 2 dependencies failures:

You have missing dependencies!
#Mandatory:
jedi =0.17.2:0.18.0 (NOK)
parso =0.7.0:0.8.2 (NOK)

However,

conda list

answers with:

...
jedi                      0.17.2           py38h06a4308_1
...
parso                     0.7.0                      py_0
...

Which seems to indicate that the correct versions are installed on my conda environment. "Googling" a bit lead me to this post, where @ccordoba12 states that this problem can be solved by removing: C:\Users<user>\AppData\Roaming\Python

That is of course assuming windows. I could not try since I am running on linux

So my question is:

  1. what is the problem (!)?
  2. If python (...) caches packages as this seems to indicate, doesn't it defeat the objective of conda?
  3. Assuming this caching is really the problem, how can I remove the cache on linux and automate that action when loading different conda env.

Thx!

Upvotes: 1

Views: 317

Answers (2)

user1159290
user1159290

Reputation: 1003

Doing an strace an spyder shows it was opening things from ~/.local/lib/python3.8.

Deleting this directory (actually renaming it, just in case), fixed the problem... ...if it can help others.

Not sure when python create this lib dir, and how conda is supposed to handle these "caches"

Upvotes: 1

Fedeco
Fedeco

Reputation: 876

The problem may be

  • You have different version of python installed

  • Somehow Conda didn't manage to install them

    In Conda there is a neat way to remove the cache

    usage: conda clean [-h] [-a] [-i] [-p] [-t] [-f] [-c TEMPFILES [TEMPFILES ...]] [-d] [--json] [-q] [-v] [-y]

where you could use

    -a, --all
Remove index cache, lock files, unused cache packages, and tarballs.

    -i, --index-cache
Remove index cache.

Upvotes: 1

Related Questions