conda update conda: An unexpected error has occured.

12 views
Skip to first unread message

GaryP

unread,
Jun 3, 2021, 12:58:41 PMJun 3
to Anaconda - Public
I installed pypolar from pip using the skeleton procedure.  Things went down hill from there.  pypolar requires serial, but it wasn't installed.  Something wrong there.  Serial is not available in the default repo, so I created a new environment and installed serial from conda-forge.  Then the errors started.  Some advise to remove .condarc and do "conda update conda".      I did that, and the result is below.   You can see I'm in the base environment.  So now I'm dead in the water.   The error is in ssl?    

Windows 10,  Miniconda3.   Before I started all this I did "conda update conda"

TIA,  if I can't fix this soon I'll have to reinstall Miniconda


(base) C:\>conda update conda
Collecting package metadata (current_repodata.json): failed

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

    Traceback (most recent call last):
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
        return func(*args, **kwargs)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
        exit_code = do_call(args, p)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\cli\conda_argparse.py", line 83, in do_call
        return getattr(module, func_name)(args, parser)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\cli\main_update.py", line 20, in execute
        install(args, parser, 'update')
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\cli\install.py", line 261, in install
        unlink_link_transaction = solver.solve_for_transaction(
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\solve.py", line 114, in solve_for_transaction
        unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\solve.py", line 157, in solve_for_diff
        final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\solve.py", line 262, in solve_final_state
        ssc = self._collect_all_metadata(ssc)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
        return f(*args, **kwds)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\solve.py", line 425, in _collect_all_metadata
        index, r = self._prepare(prepared_specs)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\solve.py", line 1020, in _prepare
        reduced_index = get_reduced_index(self.prefix, self.channels,
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\index.py", line 288, in get_reduced_index
        new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 140, in query_all
        result = tuple(concat(executor.map(subdir_query, channel_urls)))
      File "C:\Users\gpajer\Miniconda3\lib\concurrent\futures\_base.py", line 619, in result_iterator
        yield fs.pop().result()
      File "C:\Users\gpajer\Miniconda3\lib\concurrent\futures\_base.py", line 444, in result
        return self.__get_result()
      File "C:\Users\gpajer\Miniconda3\lib\concurrent\futures\_base.py", line 389, in __get_result
        raise self._exception
      File "C:\Users\gpajer\Miniconda3\lib\concurrent\futures\thread.py", line 57, in run
        result = self.fn(*self.args, **self.kwargs)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 132, in <lambda>
        subdir_query = lambda url: tuple(SubdirData(Channel(url), repodata_fn=repodata_fn).query(
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 145, in query
        self.load()
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 209, in load
        _internal_state = self._load()
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 371, in _load
        raw_repodata_str = fetch_repodata_remote_request(
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 694, in fetch_repodata_remote_request
        resp = session.get(join_url(url, filename), headers=headers, proxies=session.proxies,
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\requests\sessions.py", line 555, in get
        return self.request('GET', url, **kwargs)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\requests\sessions.py", line 542, in request
        resp = self.send(prep, **send_kwargs)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\requests\sessions.py", line 655, in send
        r = adapter.send(request, **kwargs)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\requests\adapters.py", line 439, in send
        resp = conn.urlopen(
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
        self._prepare_proxy(conn)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
        conn.connect()
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\urllib3\connection.py", line 359, in connect
        conn = self._connect_tls_proxy(hostname, conn)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\urllib3\connection.py", line 500, in _connect_tls_proxy
        return ssl_wrap_socket(
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket
        ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
      File "C:\Users\gpajer\Miniconda3\lib\site-packages\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl
        return ssl_context.wrap_socket(sock)
      File "C:\Users\gpajer\Miniconda3\lib\ssl.py", line 500, in wrap_socket
        return self.sslsocket_class._create(
      File "C:\Users\gpajer\Miniconda3\lib\ssl.py", line 997, in _create
        raise ValueError("check_hostname requires server_hostname")
    ValueError: check_hostname requires server_hostname

`$ C:\Users\gpajer\Miniconda3\Scripts\conda-script.py update conda`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=C:\Users\gpajer\Miniconda3\condabin\..\Scripts\conda.exe
               CONDA_EXES="C:\Users\gpajer\Miniconda3\condabin\..\Scripts\conda.exe"
             CONDA_PREFIX=C:\Users\gpajer\Miniconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=C:\Users\gpajer\Miniconda3\python.exe
               CONDA_ROOT=C:\Users\gpajer\Miniconda3
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
                 HOMEPATH=\
                     PATH=C:\Users\gpajer\Miniconda3;C:\Users\gpajer\Miniconda3\Library\mingw-w6
                          4\bin;C:\Users\gpajer\Miniconda3\Library\usr\bin;C:\Users\gpajer\Minic
                          onda3\Library\bin;C:\Users\gpajer\Miniconda3\Scripts;C:\Users\gpajer\M
                          iniconda3\bin;C:\Users\gpajer\Miniconda3;C:\Users\gpajer\Miniconda3\Li
                          brary\mingw-w64\bin;C:\Users\gpajer\Miniconda3\Library\usr\bin;C:\User
                          s\gpajer\Miniconda3\Library\bin;C:\Users\gpajer\Miniconda3\Scripts;C:\
                          Users\gpajer\Miniconda3\bin;C:\Users\gpajer\Miniconda3\condabin;C:\Pro
                          gram Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C
                          :\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShe
                          ll\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\Windows
                          Kits\8.1\Windows Performance Toolkit;C:\Users\gpajer\AppData\Local\Mic
                          rosoft\WindowsApps;C:\Users\gpajer\AppData\Local\Programs\Microsoft VS
                          Code\bin;C:\Users\gpajer\AppData\Local\Programs\Git\cmd;C:\Users\gpaje
                          r\AppData\Local\Programs\MiKTeX\miktex\bin\x64
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
                          PowerShell\v1.0\Modules
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : C:\Users\gpajer\Miniconda3
            shell level : 1
       user config file : C:\Users\gpajer\.condarc
 populated config files :
          conda version : 4.10.1
    conda-build version : 3.21.4
         python version : 3.8.10.final.0
       virtual packages : __win=0=0
                          __archspec=1=x86_64
       base environment : C:\Users\gpajer\Miniconda3  (writable)
      conda av data dir : C:\Users\gpajer\Miniconda3\etc\conda
  conda av metadata url : https://repo.anaconda.com/pkgs/main
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\gpajer\Miniconda3\pkgs
                          C:\Users\gpajer\.conda\pkgs
                          C:\Users\gpajer\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\gpajer\Miniconda3\envs
                          C:\Users\gpajer\.conda\envs
                          C:\Users\gpajer\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.10.1 requests/2.25.1 CPython/3.8.10 Windows/10 Windows/10.0.19041
          administrator : False
             netrc file : None
           offline mode : False


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

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
Reply all
Reply to author
Forward
0 new messages