conda / conda

A system-level, binary package and environment manager running on all major operating systems and platforms.
https://docs.conda.io/projects/conda/
Other
6.43k stars 1.67k forks source link

Rollbacks from creation of new env leave folder, creating error when retrying #6818

Closed michaelaye closed 2 years ago

michaelaye commented 6 years ago

I'm submitting a...

Current Behavior

(stable) └─❱❱❱ conda create -n geopandas python=3 geopandas --file ~/Dropbox/SternchenAndMe/python_stuff/standard_py3_conda_packages.txt

CondaValueError: prefix already exists: /Users/klay6683/miniconda3/envs/geopandas

Steps to Reproduce

(stable) └─❱❱❱ conda create -n geopandas python=3 geopandas --file ~/Dropbox/SternchenAndMe/python_stuff/standard_py3_conda_packages.txt
[...]
jupyter_contrib_nbextensions.install.NotebookRunningError: Cannot configure while the Jupyter notebook server is running
Attempting to roll back.
Rolling back transaction: done
[stopping jupyter server]
[retry above command]

Expected Behavior

After a roll back from creating a new env, the new env prefix directory that was created should be removed, otherwise that roll-back is incomplete.

Environment Information

`conda info`

``` (stable) └─❱❱❱ conda info 1 ⏎ +9163 13:48 ❰─┘ active environment : stable active env location : /Users/klay6683/miniconda3/envs/stable shell level : 1 user config file : /Users/klay6683/.condarc populated config files : /Users/klay6683/miniconda3/.condarc /Users/klay6683/.condarc conda version : 4.4.8 conda-build version : not installed python version : 3.6.3.final.0 base environment : /Users/klay6683/miniconda3 (writable) channel URLs : https://conda.anaconda.org/conda-canary/osx-64 https://conda.anaconda.org/conda-canary/noarch https://conda.anaconda.org/conda-forge/osx-64 https://conda.anaconda.org/conda-forge/noarch https://repo.continuum.io/pkgs/main/osx-64 https://repo.continuum.io/pkgs/main/noarch https://repo.continuum.io/pkgs/free/osx-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/osx-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/osx-64 https://repo.continuum.io/pkgs/pro/noarch https://conda.anaconda.org/NSIDC/osx-64 https://conda.anaconda.org/NSIDC/noarch package cache : /Users/klay6683/miniconda3/pkgs /Users/klay6683/.conda/pkgs envs directories : /Users/klay6683/miniconda3/envs /Users/klay6683/.conda/envs platform : osx-64 user-agent : conda/4.4.8 requests/2.18.4 CPython/3.6.3 Darwin/16.7.0 OSX/10.12.6 UID:GID : 273771:2260 netrc file : None offline mode : False ```

`conda config --show-sources`

``` stable) └─❱❱❱ conda config --show-sources +9164 13:48 ❰─┘ ==> /Users/klay6683/miniconda3/.condarc <== pinned_packages: - conda-canary::conda ==> /Users/klay6683/.condarc <== auto_update_conda: False channels: - conda-canary - conda-forge - defaults - NSIDC ```

`conda list --show-channel-urls`

``` # packages in environment at /Users/klay6683/miniconda3/envs/stable: # # Name Version Build Channel alabaster 0.7.10 py36_1 conda-forge apipkg 1.4 py36_0 conda-forge appnope 0.1.0 py36_0 conda-forge argh 0.26.2 asn1crypto 0.22.0 py36_0 conda-forge astroid 1.5.3 py36_0 conda-forge astropy 2.0.3 py36_0 conda-forge attrs 17.4.0 py_0 conda-forge autopep8 1.3.3 py_0 conda-forge babel 2.5.1 py36_0 conda-forge backports 1.0 py36_1 conda-forge backports.functools_lru_cache 1.4 py36_1 conda-forge basemap 1.1.0 py36_3 conda-forge beautifulsoup4 4.6.0 py36_0 conda-forge biggus 0.15.0 py36_0 conda-forge blas 1.1 openblas conda-forge bleach 2.0.0 py36_0 conda-forge bokeh 0.12.13 py36_0 conda-forge boost 1.66.0 py36_1 conda-forge boost-cpp 1.66.0 1 conda-forge bottleneck 1.2.1 py36_1 conda-forge bumpversion 0.5.3 bzip2 1.0.6 1 conda-forge ca-certificates 2017.11.5 0 conda-forge cairo 1.14.10 0 conda-forge cartopy 0.15.1 py36_5 conda-forge certifi 2017.11.5 py36_0 conda-forge cf_units 1.2.0 py36_0 conda-forge cffi 1.11.2 py36_0 conda-forge chardet 3.0.4 py36_0 conda-forge clangdev 5.0.0 default_0 conda-forge click 6.7 py_1 conda-forge click-plugins 1.0.3 py36_0 conda-forge cligj 0.4.0 py36_0 conda-forge cloudpickle 0.5.2 py_0 conda-forge coverage 4.4.2 py36_0 conda-forge cryptography 2.1.4 py36_0 conda-forge cspice 66 0 conda-forge curl 7.55.1 0 conda-forge cycler 0.10.0 py36_0 conda-forge cython 0.27.3 py36_0 conda-forge dask 0.16.1 py_0 conda-forge dask-core 0.16.1 py_0 conda-forge decorator 4.1.2 py36_0 conda-forge descartes 1.1.0 py36_0 conda-forge distributed 1.20.2 py36_0 conda-forge docutils 0.14 py36_0 conda-forge entrypoints 0.2.3 py36_1 conda-forge execnet 1.5.0 py_0 conda-forge expat 2.2.5 0 conda-forge flake8 3.5.0 py36_0 conda-forge fontconfig 2.12.6 0 conda-forge freetype 2.8.1 0 conda-forge freexl 1.0.4 0 conda-forge gdal 2.2.3 py36_0 conda-forge geos 3.6.2 1 conda-forge geotiff 1.4.2 1 conda-forge geoviews 1.4.2 py36_0 ioam geoviews 1.4.2 gettext 0.19.8.1 0 conda-forge giflib 5.1.4 0 conda-forge gitchangelog 3.0.3 glib 2.55.0 0 conda-forge h5netcdf 0.5.0 py_0 conda-forge h5py 2.7.1 py36_2 conda-forge hdf4 4.2.13 0 conda-forge hdf5 1.10.1 1 conda-forge heapdict 1.0.0 py36_0 conda-forge hirise-tools 0.5.1 holoviews 1.9.2 holoviews 1.9.2 py36_0 conda-forge html5lib 1.0.1 py_0 conda-forge icu 58.2 0 conda-forge idna 2.6 py36_1 conda-forge imageio 2.2.0 py36_0 conda-forge imagesize 0.7.1 py36_0 conda-forge ipykernel 4.7.0 py36_0 conda-forge ipympl 0.1.0 py36_1 conda-forge ipyparallel 6.0.2 py36_0 conda-forge ipython 6.2.1 py36_1 conda-forge ipython_genutils 0.2.0 py36_0 conda-forge ipywidgets 7.1.1 py36_0 conda-forge iris 1.13.0 py36_1 conda-forge isort 4.2.15 py36_0 conda-forge jedi 0.11.1 py36_0 conda-forge jinja2 2.10 py36_0 conda-forge jpeg 9b 2 conda-forge json-c 0.12.1 0 conda-forge jsonschema 2.6.0 py36_0 conda-forge jupyter 1.0.0 py36_0 conda-forge jupyter_client 5.2.2 py36_0 conda-forge jupyter_console 5.2.0 py36_0 conda-forge jupyter_contrib_core 0.3.3 py36_1 conda-forge jupyter_contrib_nbextensions 0.3.3 py36_0 conda-forge jupyter_core 4.4.0 py_0 conda-forge jupyter_highlight_selected_word 0.1.0 py36_0 conda-forge jupyter_latex_envs 1.4.0 py36_1 conda-forge jupyter_nbextensions_configurator 0.4.0 py36_0 conda-forge kealib 1.4.7 4 conda-forge krb5 1.14.2 0 conda-forge latexcodec 1.0.5 lazy-object-proxy 1.3.1 py36_0 conda-forge libcxx 5.0.0 0 conda-forge libdap4 3.18.3 2 conda-forge libffi 3.2.1 3 conda-forge libgcc 4.8.5 1 defaults libgdal 2.2.3 3 conda-forge libgfortran 3.0.0 0 conda-forge libiconv 1.15 0 conda-forge libkml 1.3.0 6 conda-forge libmo_unpack 3.0 1 conda-forge libnetcdf 4.4.1.1 10 conda-forge libpng 1.6.34 0 conda-forge libpq 9.6.3 0 conda-forge libsodium 1.0.15 1 conda-forge libspatialindex 1.8.5 1 conda-forge libspatialite 4.3.0a 19 conda-forge libssh2 1.8.0 2 conda-forge libtiff 4.0.9 0 conda-forge libxml2 2.9.7 0 conda-forge libxslt 1.1.32 0 conda-forge livereload 2.5.1 llvmdev 5.0.0 default_0 conda-forge llvmlite 0.21.0 py36_0 conda-forge locket 0.2.0 py36_1 conda-forge lxml 4.1.1 py36_0 conda-forge markupsafe 1.0 py36_0 conda-forge matplotlib 2.1.2 py36_0 conda-forge mccabe 0.6.1 py36_0 conda-forge mistune 0.8.3 py_0 conda-forge mo_pack 0.2.0 py36_1 conda-forge msgpack-python 0.5.1 py36_0 conda-forge munch 2.2.0 py36_0 conda-forge nb_conda_kernels 2.1.0 py36_0 conda-forge nbconvert 5.3.1 py_1 conda-forge nbformat 4.4.0 py36_0 conda-forge nbsphinx 0.3.1 py_0 conda-forge nbstripout 0.3.1 nbtools 0.2.2.dev3+ng9b20693.d20180112 nc_time_axis 1.0.2 py36_0 conda-forge ncurses 5.9 10 conda-forge netcdf4 1.3.1 py36_1 conda-forge networkx 2.0 py36_1 conda-forge notebook 5.4.0 py36_0 conda-forge numba 0.36.2 np113py36hceb9f0c_0 defaults numexpr 2.6.4 py36_0 conda-forge numpy 1.13.3 py36_blas_openblas_201 [blas_openblas] conda-forge olefile 0.44 py36_0 conda-forge openblas 0.2.20 7 conda-forge openjpeg 2.3.0 2 conda-forge openssl 1.0.2n 0 conda-forge oset 0.1.3 owslib 0.16.0 py_0 conda-forge p4terrains 0.2.1 pandas 0.22.0 py36_0 conda-forge pandoc 2.1.1 0 conda-forge pandocfilters 1.4.1 py36_0 conda-forge param 1.5.1 py36_0 conda-forge parso 0.1.1 py_0 conda-forge partd 0.3.8 py36_0 conda-forge pathtools 0.1.2 patsy 0.5.0 py36_0 conda-forge pcre 8.39 0 conda-forge pep8 1.7.1 py_0 conda-forge pexpect 4.3.1 py36_0 conda-forge pickleshare 0.7.4 py36_0 conda-forge pillow 5.0.0 py36_0 conda-forge pip 9.0.1 py36_1 conda-forge pixman 0.34.0 1 conda-forge planet4 0.11.0 planetpy 0.2.3 pluggy 0.6.0 py_0 conda-forge poppler 0.61.1 3 conda-forge poppler-data 0.4.8 0 conda-forge port-for 0.3.1 proj4 4.9.3 5 conda-forge prompt_toolkit 1.0.15 py36_0 conda-forge psutil 5.4.0 py36_0 conda-forge psycopg2 2.7.3.2 py36_0 conda-forge ptyprocess 0.5.2 py36_0 conda-forge pvl 0.3.0 py 1.5.2 py_0 conda-forge pyaml 17.12.1 py_0 conda-forge pybtex 0.21 pybtex-docutils 0.2.1 pyciss 0.9.1 pycodestyle 2.3.1 py36_0 conda-forge pycparser 2.18 py36_0 conda-forge pyepsg 0.3.2 py36_0 conda-forge pyflakes 1.6.0 py36_0 conda-forge pygments 2.2.0 py36_0 conda-forge pyke 1.1.1 py36_0 conda-forge pylint 1.8.1 py36_0 conda-forge pyopenssl 17.4.0 py36_0 conda-forge pyparsing 2.2.0 py36_0 conda-forge pyproj 1.9.5.1 py36_0 conda-forge pyqt 5.6.0 py36_4 conda-forge pysal 1.14.3 py36_0 conda-forge pyshp 1.2.12 py_0 conda-forge pysis 0.6.0 pysocks 1.6.8 py36_1 conda-forge pytables 3.4.2 py36_7 conda-forge pytest 3.4.0 py36_0 conda-forge pytest-cache 1.0 py36_0 conda-forge pytest-cov 2.5.1 py36_0 conda-forge pytest-pep8 1.0.6 py36_0 conda-forge python 3.6.4 0 conda-forge python-dateutil 2.6.1 py36_0 conda-forge python-pptx 0.6.7 py_0 conda-forge pytz 2017.3 py_2 conda-forge pyuvis 0.4 pywavelets 0.5.2 py36_1 conda-forge pyyaml 3.12 py36_1 conda-forge pyzmq 16.0.2 py36_3 conda-forge qt 5.6.2 h9e3eb04_4 conda-forge qtconsole 4.3.1 py36_0 conda-forge readline 7.0 0 conda-forge requests 2.18.4 py36_1 conda-forge rope 0.10.7 py36_0 conda-forge rtree 0.8.3 py36_0 conda-forge scikit-image 0.13.1 py36_0 conda-forge scikit-learn 0.19.1 py36_blas_openblas_201 [blas_openblas] conda-forge scipy 1.0.0 py36_blas_openblas_201 [blas_openblas] conda-forge seaborn 0.8.1 py36_0 conda-forge send2trash 1.4.2 py_0 conda-forge setuptools 38.4.0 py36_0 conda-forge shapely 1.6.4 py36_0 conda-forge simplegeneric 0.8.1 py36_0 conda-forge sip 4.18 py36_1 conda-forge six 1.11.0 py36_1 conda-forge snowballstemmer 1.2.1 py36_0 conda-forge sortedcontainers 1.5.7 py36_0 conda-forge sphinx 1.6.6 py36_0 conda-forge sphinx-autobuild 0.7.1 sphinxcontrib-bibtex 0.3.6 sphinxcontrib-websupport 1.0.1 py36_0 conda-forge spiceypy 2.1.0 py_2 conda-forge sqlalchemy 1.2.1 py36_0 conda-forge sqlite 3.20.1 2 conda-forge statsmodels 0.8.0 py36_0 conda-forge tblib 1.3.2 py36_0 conda-forge terminado 0.8.1 py36_0 conda-forge testpath 0.3.1 py36_0 conda-forge tk 8.6.7 0 conda-forge toolz 0.8.2 py_2 conda-forge tornado 4.5.3 py36_0 conda-forge tqdm 4.19.5 py_0 conda-forge traitlets 4.3.2 py36_0 conda-forge typing 3.6.2 py36_0 conda-forge udunits2 2.2.25 2 conda-forge urllib3 1.22 py36_0 conda-forge watchdog 0.8.3 wcwidth 0.1.7 py36_0 conda-forge webencodings 0.5 py36_0 conda-forge wheel 0.30.0 py36_2 conda-forge widgetsnbextension 3.1.3 py36_0 conda-forge wrapt 1.10.11 py36_0 conda-forge xarray 0.10.0 py36_0 conda-forge xerces-c 3.2.0 0 conda-forge xlrd 1.1.0 py_2 conda-forge xlsxwriter 1.0.2 py_0 conda-forge xlwt 1.3.0 py36_0 conda-forge xz 5.2.3 0 conda-forge yaml 0.1.7 0 conda-forge yapf 0.18.0 py_0 conda-forge zeromq 4.2.1 1 conda-forge zict 0.1.3 py_0 conda-forge zlib 1.2.11 0 conda-forge ```

github-actions[bot] commented 3 years ago

Hi there, thank you for your contribution to Conda!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue in the latest version of Conda

  2. Comment that the issue is still reproducible and include:

    • What version of Conda you reproduced the issue on
    • What OS and version you reproduced the issue on
    • What steps you followed to reproduce the issue
  3. It would also be helpful to have the output of the following commands available:

    • conda info
    • conda config --show-sources
    • conda list --show-channel-urls

NOTE: If this issue was closed prematurely, please leave a comment and we will gladly reopen the issue.

In case this issue was originally about a project that is covered by the Anaconda issue tracker (e.g. Anaconda, Miniconda, packages built by Anaconda, Inc. like Anaconda Navigator etc), please reopen the issue there again.

Thanks!

github-actions[bot] commented 2 years ago

Hi again!

This issue has been closed since it has not had recent activity. Please don't hesitate to leave a comment if that was done prematurely.

Thank you for your contribution.