{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/2995","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/2995/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/2995/comments","events_url":"https://api.github.com/repos/conda/conda/issues/2995/events","html_url":"https://github.com/conda/conda/issues/2995","id":164261484,"number":2995,"title":"`conda env create` ignoring `-n` flag","user":{"login":"bow","id":343998,"avatar_url":"https://avatars.githubusercontent.com/u/343998?v=3","gravatar_id":"","url":"https://api.github.com/users/bow","html_url":"https://github.com/bow","followers_url":"https://api.github.com/users/bow/followers","following_url":"https://api.github.com/users/bow/following{/other_user}","gists_url":"https://api.github.com/users/bow/gists{/gist_id}","starred_url":"https://api.github.com/users/bow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bow/subscriptions","organizations_url":"https://api.github.com/users/bow/orgs","repos_url":"https://api.github.com/users/bow/repos","events_url":"https://api.github.com/users/bow/events{/privacy}","received_events_url":"https://api.github.com/users/bow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/conda/conda/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/conda/conda/milestones/2","html_url":"https://github.com/conda/conda/milestones/4.1","labels_url":"https://api.github.com/repos/conda/conda/milestones/2/labels","id":1716159,"number":2,"title":"4.1","description":"","creator":{"login":"kalefranz","id":1418419,"avatar_url":"https://avatars.githubusercontent.com/u/1418419?v=3","gravatar_id":"","url":"https://api.github.com/users/kalefranz","html_url":"https://github.com/kalefranz","followers_url":"https://api.github.com/users/kalefranz/followers","following_url":"https://api.github.com/users/kalefranz/following{/other_user}","gists_url":"https://api.github.com/users/kalefranz/gists{/gist_id}","starred_url":"https://api.github.com/users/kalefranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalefranz/subscriptions","organizations_url":"https://api.github.com/users/kalefranz/orgs","repos_url":"https://api.github.com/users/kalefranz/repos","events_url":"https://api.github.com/users/kalefranz/events{/privacy}","received_events_url":"https://api.github.com/users/kalefranz/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":175,"state":"open","created_at":"2016-04-19T03:25:44Z","updated_at":"2016-07-13T14:36:25Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-07-07T09:00:12Z","updated_at":"2016-07-13T14:36:25Z","closed_at":"2016-07-13T14:36:25Z","body":"Hi Conda developers,\r\n\r\nI stumbled on an issue recently where I stumbled on this error when running `conda env create`:\r\n\r\n```\r\nError: prefix already exists: /usr/local/sasc/miniconda3\r\n```\r\n\r\nThis seems like I'm trying to create an env with an existing name. But the path shown there is my root conda installation, not any package name.\r\n\r\nHere's how I got there: I am inside a directory with nothing but an `environment.yml` file. If the `name` attribute inside the YAML file is defined, `conda env create` works great. However, if `name` is not defined, I got the error. What's more, if I tried supplying the name via the `-n` flag, I still get the error.\r\n\r\nIs this intended behavior? If so, may I request that the error message be at least changed (something like, `required 'name' attribute is not found in the YAML file`). I wasn't sure what the error was about since the current error message show the root path.\r\n\r\nIf this is not intended behavior, I would imagine using the `-n` flag should work when `name:` is not present in the YAML file. If both are present and the values are different, there should then be a warning or error message saying that there are conflicting environment name values.\r\n\r\nHere's my `conda info` output for reference:\r\n\r\n```\r\nCurrent conda install:\r\n\r\n             platform : linux-64\r\n        conda version : 4.1.5\r\n    conda-env version : 2.5.0\r\n  conda-build version : not installed\r\n       python version : 3.5.1.final.0\r\n     requests version : 2.10.0\r\n     root environment : /usr/local/sasc/miniconda3  (writable)\r\n  default environment : /usr/local/sasc/miniconda3\r\n     envs directories : /usr/local/sasc/miniconda3/envs\r\n        package cache : /usr/local/sasc/miniconda3/pkgs\r\n         channel URLs : https://conda.anaconda.org/bioconda/linux-64/\r\n                        https://conda.anaconda.org/bioconda/noarch/\r\n                        https://conda.anaconda.org/r/linux-64/\r\n                        https://conda.anaconda.org/r/noarch/\r\n                        https://repo.continuum.io/pkgs/free/linux-64/\r\n                        https://repo.continuum.io/pkgs/free/noarch/\r\n                        https://repo.continuum.io/pkgs/pro/linux-64/\r\n                        https://repo.continuum.io/pkgs/pro/noarch/\r\n          config file : /home/warindrarto/.condarc\r\n         offline mode : False\r\n    is foreign system : False\r\n```\r\n\r\nThanks in advance for looking into this :)."},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/232375024","html_url":"https://github.com/conda/conda/issues/2995#issuecomment-232375024","issue_url":"https://api.github.com/repos/conda/conda/issues/2995","id":232375024,"user":{"login":"kalefranz","id":1418419,"avatar_url":"https://avatars.githubusercontent.com/u/1418419?v=3","gravatar_id":"","url":"https://api.github.com/users/kalefranz","html_url":"https://github.com/kalefranz","followers_url":"https://api.github.com/users/kalefranz/followers","following_url":"https://api.github.com/users/kalefranz/following{/other_user}","gists_url":"https://api.github.com/users/kalefranz/gists{/gist_id}","starred_url":"https://api.github.com/users/kalefranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalefranz/subscriptions","organizations_url":"https://api.github.com/users/kalefranz/orgs","repos_url":"https://api.github.com/users/kalefranz/repos","events_url":"https://api.github.com/users/kalefranz/events{/privacy}","received_events_url":"https://api.github.com/users/kalefranz/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T14:36:25Z","updated_at":"2016-07-13T14:36:25Z","body":"fixed with conda-env v2.5.2 available sometime today."}}
{"actor":{"display_login":"kalefranz"}}