Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BufferError when trying to update conda #4592

Closed
zelite opened this issue Feb 10, 2017 · 4 comments
Closed

BufferError when trying to update conda #4592

zelite opened this issue Feb 10, 2017 · 4 comments
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type

Comments

@zelite
Copy link

zelite commented Feb 10, 2017

I get the following error when running the conda update conda command.

The error message does not seem to provide any hint of what may be wrong. Anyone has a guess of what might be the problem?

PS C:\> conda update conda
Fetching package metadata ...An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:

    https://github.com/conda/conda/issues



Current conda install:

               platform : win-64
          conda version : 4.3.7
       conda is private : False
      conda-env version : 4.3.7
    conda-build version : 1.21.6
         python version : 3.4.0.final.0
       requests version : 2.12.4
       root environment : C:\Anaconda3  (writable)
    default environment : C:\Anaconda3
       envs directories : C:\Anaconda3\envs
          package cache : C:\Anaconda3\pkgs
           channel URLs : https://repo.continuum.io/pkgs/free/win-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/win-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/win-64
                          https://repo.continuum.io/pkgs/pro/noarch
                          https://repo.continuum.io/pkgs/msys2/win-64
                          https://repo.continuum.io/pkgs/msys2/noarch
            config file : None
           offline mode : False
             user-agent : conda/4.3.7 requests/2.12.4 CPython/3.4.0 Windows/7 Windows/6.1.7601



`$ C:\Anaconda3\Scripts\conda-script.py update conda`




    Traceback (most recent call last):
      File "C:\Anaconda3\lib\site-packages\conda\exceptions.py", line 617, in conda_exception_handler
        return_value = func(*args, **kwargs)
      File "C:\Anaconda3\lib\site-packages\conda\cli\main.py", line 137, in _main
        exit_code = args.func(args, p)
      File "C:\Anaconda3\lib\site-packages\conda\cli\main_update.py", line 65, in execute
        install(args, parser, 'update')
      File "C:\Anaconda3\lib\site-packages\conda\cli\install.py", line 210, in install
        unknown=index_args['unknown'], prefix=prefix)
      File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 120, in get_index
        index = fetch_index(channel_priority_map, use_cache=use_cache)
      File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 445, in fetch_index
        repodatas = _collect_repodatas(use_cache, urls)
      File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 433, in _collect_repodatas
        repodatas = _collect_repodatas_serial(use_cache, urls)
      File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 401, in _collect_repodatas_serial
        for url in urls]
      File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 401, in <listcomp>
        for url in urls]
      File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 141, in func
        res = f(*args, **kwargs)
      File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 364, in fetch_repodata
        mod_etag_headers = read_mod_and_etag(cache_path)
      File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 153, in read_mod_and_etag
        return result
      File "C:\Anaconda3\lib\contextlib.py", line 152, in __exit__
        self.thing.close()
    BufferError: cannot close exported pointers exist

PS C:\>
@kalefranz
Copy link
Contributor

Thanks for the report. Definitely one I haven't seen before. Easy fix though.

@kalefranz kalefranz added the type::bug describes erroneous operation, use severity::* to classify the type label Feb 14, 2017
@kalefranz
Copy link
Contributor

fixed with #4628

kalefranz added a commit that referenced this issue Feb 14, 2017
fix #4592 BufferError cannot close exported pointers exist
@kalefranz
Copy link
Contributor

Conda 4.3.12 that includes a patch for this issue has been released to conda canary. Feel free to test.

conda config --add channels conda-canary
conda update conda

@github-actions
Copy link

github-actions bot commented Nov 6, 2021

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Nov 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type
Projects
None yet
Development

No branches or pull requests

2 participants