Dauniverse

[Issue] Conda cloud-auth error 발생, 결국은 재설치.. 본문

공부/Tensorflow

[Issue] Conda cloud-auth error 발생, 결국은 재설치..

Daunique 2024. 4. 22. 22:11

24.04.22 기준

Anaconda Community와 Stack Overflow에 각각 5일 전, 4일 전에 올라온 따끈따끈한 이슈를 만났다.

해결 방법이 아직 없는 것 같은데..

구버전을 재설치해서 해결했다. (가상환경은 싹 날아감ㅎㅎ)

 

# 문제 상황

새로운 conda 가상환경에 tensorflow를 설치하려고 했는데 아래처럼 conda update를 하라는 안내가 나왔다.

==> WARNING: A newer version of conda exists. <==
  current version: 23.7.4
  latest version: 24.3.0

Please update conda by running

    $ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

     conda install conda=24.3.0

 

 

conda update -n base -c defaults conda

추측하기로는 이 코드로 conda update를 하고 나서 아래와 같은 오류가 발생하기 시작한 것 같다.

 

error while loading conda entry point: anaconda-cloud-auth (cannot import name 'channelauthbase' from 'conda.plugins.types' (d:\anaconda3\lib\site-packages\conda\plugins\types.py))
error while loading conda entry point: anaconda-cloud-auth (cannot import name 'channelauthbase' from 'conda.plugins.types' (d:\anaconda3\lib\site-packages\conda\plugins\types.py))

 

24.04.22 기준 24.3.0 버전에 문제가 있을 수도 있겠다.

https://github.com/conda/conda/releases/tag/24.3.0

 

Release 24.3.0 · conda/conda

Enhancements Show first few characters of undecodeable response if repodata.json raises JSONDecodeError. (#11804) Update conda.gateways.subprocess.subprocess_call to use text=True to avoid manual ...

github.com

 

 

Tensorflow 재설치, conda 업/다운그레이드, 가상환경 변경/생성/삭제해도 해결 안됨.

모든 시도에서 오류가 발생하고 시작했다.

오히려 아래처럼 충돌로 종속성 문제가 생겼다고..ㅠㅠ

더보기

발생한 에러 일부. 이게 다 충돌한다고 한다.

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - astunparse -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.9,<3.10.0a0|>=3.8,<3.9.0a0|>=3.5,<3.6.0a0']
  - gast -> python[version='>=2.7,<2.8.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0']
  - google-pasta -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.9,<3.10.0a0|>=3.8,<3.9.0a0|>=3.5,<3.6.0a0']
  - grpcio -> python[version='>=2.7,<2.8.0a0']
  - h5py -> python[version='<3']
  - mkl_random -> python[version='>=2.7,<2.8.0a0']
  - pyasn1 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0']
  - pyasn1-modules -> python[version='>=2.7,<2.8.0a0|>=3.8,<3.9.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']
  - requests-oauthlib -> python[version='>=2.7,<2.8.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']
  - rsa -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0']
  - six -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.9,<3.10.0a0|>=3.8,<3.9.0a0|>=3.5,<3.6.0a0']
  - tensorboard-plugin-wit -> python[version='>=2.7,<2.8.0a0|>=3.11,<3.12.0a0|>=3.12,<3.13.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0']

Your python: python=3.10

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package vc conflicts for:
blinker -> python[version='>=3.12,<3.13.0a0'] -> vc[version='14.*|>=14.1,<15.0a0|9.*']
cffi -> vc[version='14.*|9.*|>=14.1,<15.0a0']
gast -> python -> vc[version='14.*|>=14.1,<15.0a0|9.*']
scipy -> mkl-service[version='>=2.3.0,<3.0a0'] -> vc[version='14.*|9.*']
sqlite -> vc[version='14.*|9.*|>=14.1,<15.0a0']
werkzeug -> markupsafe[version='>=2.1.1'] -> vc[version='14.*|>=14.1,<15.0a0|9.*']
libprotobuf -> vc[version='14.*|>=14.1,<15.0a0|9.*']
six -> python -> vc[version='14.*|>=14.1,<15.0a0|9.*']
.
.
.

Package sqlite conflicts for:
multidict -> python[version='>=3.11,<3.12.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.32.3,<4.0a0|>=3.33.0,<4.0a0|>=3.35.4,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.38.2,<4.0a0|>=3.39.2,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.41.1,<4.0a0|>=3.41.2,<4.0a0|>=3.35.1,<4.0a0']
mkl_random -> python[version='>=3.12,<3.13.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.32.3,<4.0a0|>=3.33.0,<4.0a0|>=3.35.4,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.41.1,<4.0a0|>=3.41.2,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.1,<4.0a0|>=3.28.0,<4.0a0|>=3.27.2,<4.0a0']
grpcio -> python[version='>=3.10,<3.11.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.32.3,<4.0a0|>=3.33.0,<4.0a0|>=3.35.4,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.41.1,<4.0a0|>=3.41.2,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.1,<4.0a0']
wrapt -> python[version='>=3.12,<3.13.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.33.0,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.41.1,<4.0a0|>=3.41.2,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.4,<4.0a0|>=3.32.3,<4.0a0|>=3.30.0,<4.0a0|>=3.35.1,<4.0a0']
tensorboard-plugin-wit -> python[version='>=3.10,<3.11.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.33.0,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.41.1,<4.0a0|>=3.41.2,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.4,<4.0a0|>=3.32.3,<4.0a0|>=3.30.0,<4.0a0|>=3.35.1,<4.0a0']
.
.
.

 

# 해결

모든 가상환경이 망가진 김에, Anaconda3 완전 삭제 후 재설치를 진행했다.

정말 conda 업데이트가 원인이라면 새 버전 설치는 의미없을 것으로 생각했다.

나는 보관하고 있던 2023.09-0 버전의 Installer로 설치를 진행했고 지금은 아무 문제가 없다!

스택오버플로우에 첫 글도 썼다. 해결이라고 하기엔 좀 아쉽지만, 누군가에겐 도움이 되겠지..

 

하지만 글 주인은 재설치가 싫다고 했지... 나도 방법이 없는 걸...

 

https://stackoverflow.com/questions/78347799/why-my-anaconda-keeps-showing-error-while-loading-conda-entry-point/78366160#78366160

 

Why my anaconda keeps showing "Error while loading conda entry point"?

I tried to install 'satpy' on anaconda, shows: conda install satpy Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' (D:\An...

stackoverflow.com

 

 

# 추가

stack overflow에 새로운 댓글이 달렸다!

Anaconda와 conda를 모두 업데이트하고, 문제가 생겼던 cloud-auth를 삭제&재설치 해볼 수도 있겠다.

conda update anaconda
conda update conda

conda remove anaconda-cloud-auth
conda intstall anaconda-cloud-auth