conda-docs icon indicating copy to clipboard operation
conda-docs copied to clipboard

Conda upgrading error, Python version error

Open poddarharsh15 opened this issue 2 years ago • 0 comments

Checklist

  • [X] I added a descriptive title
  • [X] I searched open reports and couldn't find a duplicate

Summary

I am facing an error while upgrading conda. Could you please suggest some advice?

Linked Issues & PRs

  • [ ] # /home/alifchebbi/anaconda3/lib/python3.7/site-packages/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") Collecting package metadata (repodata.json): failed

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 83, in do_call
    return getattr(module, func_name)(args, parser)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/cli/main_remove.py", line 90, in execute
    txn = solver.solve_for_transaction()
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
    should_retry_solve)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 158, in solve_for_diff
    force_remove, should_retry_solve)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 262, in solve_final_state
    ssc = self._collect_all_metadata(ssc)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 425, in _collect_all_metadata
    index, r = self._prepare(prepared_specs)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 1021, in _prepare
    self.subdirs, prepared_specs, self._repodata_fn)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 289, in get_reduced_index
    repodata_fn=repodata_fn)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 140, in query_all
    result = tuple(concat(executor.map(subdir_query, channel_urls)))
  File "/home/alifchebbi/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 598, in result_iterator
    yield fs.pop().result()
  File "/home/alifchebbi/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 428, in result
    return self.__get_result()
  File "/home/alifchebbi/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/home/alifchebbi/anaconda3/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 133, in <lambda>
    package_ref_or_match_spec))
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 145, in query
    self.load()
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 210, in load
    _internal_state = self._load()
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 319, in _load
    mtime = getmtime(self.cache_path_json)
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 203, in cache_path_json
    return self.cache_path_base + ('1' if context.use_only_tar_bz2 else '') + '.json'
  File "/home/alifchebbi/anaconda3/lib/python3.7/site-packages/conda/base/context.py", line 745, in use_only_tar_bz2
    import conda_package_handling.api
ModuleNotFoundError: No module named 'conda_package_handling'

$ /home/alifchebbi/anaconda3/bin/conda remove conda

environment variables: CIO_TEST= CONDA_DEFAULT_ENV=base CONDA_EXE=/home/alifchebbi/anaconda3/bin/conda CONDA_PREFIX=/home/alifchebbi/anaconda3 CONDA_PROMPT_MODIFIER=(base) CONDA_PYTHON_EXE=/home/alifchebbi/anaconda3/bin/python CONDA_ROOT=/home/alifchebbi/anaconda3 CONDA_SHLVL=1 CURL_CA_BUNDLE= DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PATH=/home/alifchebbi/anaconda3/bin:/home/alifchebbi/anaconda3/bin:/home/al ifchebbi/anaconda3/condabin:export PATH=/usr/bin:/home/alifchebbi/.car go/bin:/home/alifchebbi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr /sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/l ib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jv m/java-8-oracle/jre/bin REQUESTS_CA_BUNDLE= SSL_CERT_FILE= WINDOWPATH=2

 active environment : base
active env location : /home/alifchebbi/anaconda3
        shell level : 1
   user config file : /home/alifchebbi/.condarc

populated config files : /home/alifchebbi/.condarc conda version : 4.10.3 conda-build version : 3.15.1 python version : 3.7.13.final.0 virtual packages : __linux=4.15.0=0 __glibc=2.27=0 __unix=0=0 __archspec=1=x86_64 base environment : /home/alifchebbi/anaconda3 (writable) conda av data dir : /home/alifchebbi/anaconda3/etc/conda conda av metadata url : None channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/alifchebbi/anaconda3/pkgs /home/alifchebbi/.conda/pkgs envs directories : /home/alifchebbi/anaconda3/envs /home/alifchebbi/.conda/envs platform : linux-64 user-agent : conda/4.10.3 requests/2.28.1 CPython/3.7.13 Linux/4.15.0-193-generic ubuntu/18.04.6 glibc/2.27 UID:GID : 1003:1003 netrc file : None offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

poddarharsh15 avatar Oct 17 '22 12:10 poddarharsh15