{"action":"closed","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/3940","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/3940/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/3940/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/3940/events","html_url":"https://github.com/conan-io/conan/issues/3940","id":380689475,"node_id":"MDU6SXNzdWUzODA2ODk0NzU=","number":3940,"title":"tool.vcvars_dict failed if filter_known_paths=True","user":{"login":"dvetutnev","id":7933806,"node_id":"MDQ6VXNlcjc5MzM4MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/7933806?v=4","gravatar_id":"","url":"https://api.github.com/users/dvetutnev","html_url":"https://github.com/dvetutnev","followers_url":"https://api.github.com/users/dvetutnev/followers","following_url":"https://api.github.com/users/dvetutnev/following{/other_user}","gists_url":"https://api.github.com/users/dvetutnev/gists{/gist_id}","starred_url":"https://api.github.com/users/dvetutnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvetutnev/subscriptions","organizations_url":"https://api.github.com/users/dvetutnev/orgs","repos_url":"https://api.github.com/users/dvetutnev/repos","events_url":"https://api.github.com/users/dvetutnev/events{/privacy}","received_events_url":"https://api.github.com/users/dvetutnev/received_events","type":"User","site_admin":false},"labels":[{"id":1120659672,"node_id":"MDU6TGFiZWwxMTIwNjU5Njcy","url":"https://api.github.com/repos/conan-io/conan/labels/priority:%20critical","name":"priority: critical","color":"7a3302","default":false},{"id":821746717,"node_id":"MDU6TGFiZWw4MjE3NDY3MTc=","url":"https://api.github.com/repos/conan-io/conan/labels/stage:%20review","name":"stage: review","color":"6caf57","default":false},{"id":293864761,"node_id":"MDU6TGFiZWwyOTM4NjQ3NjE=","url":"https://api.github.com/repos/conan-io/conan/labels/type:%20bug","name":"type: bug","color":"fc2929","default":false}],"state":"closed","locked":false,"assignee":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"assignees":[{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/conan-io/conan/milestones/75","html_url":"https://github.com/conan-io/conan/milestone/75","labels_url":"https://api.github.com/repos/conan-io/conan/milestones/75/labels","id":3823941,"node_id":"MDk6TWlsZXN0b25lMzgyMzk0MQ==","number":75,"title":"1.9.2","description":null,"creator":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":4,"state":"open","created_at":"2018-11-15T09:52:52Z","updated_at":"2018-11-21T13:33:12Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-11-14T13:06:47Z","updated_at":"2018-11-21T13:33:12Z","closed_at":"2018-11-21T13:33:11Z","author_association":"NONE","body":"[Failed this](https://github.com/conan-io/conan/blob/1.9.1/conans/client/tools/win.py#L460)\r\n\r\nOS Windows 7, Conan version 1.9.1, Python 2.7.15\r\n(also class 'list' don`t have method 'split' on Python 3)\r\n\r\nMy code (in conanfile.py):\r\n\r\n    def get_build_environment(self):\r\n        env = {}\r\n        if self.settings.os == \"Windows\" and self.settings.compiler == \"Visual Studio\":\r\n            try:\r\n                env = tools.vcvars_dict(self.settings, filter_known_paths=True, force=True)\r\n            except:\r\n                traceback.print_exc()\r\n                raise\r\n            toolset = str(self.settings.compiler.get_safe(\"toolset\"))\r\n            if toolset.endswith(\"_xp\"):\r\n                import find_sdk_winxp\r\n                env = find_sdk_winxp.dict_append(self.settings.arch, env=env)\r\n        return env\r\n\r\nConsole log:\r\n```\r\nboost/1.68.0@odant/tt: Calling build()\r\nboost/1.68.0@odant/tt: -------------- Bootstrap ------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\.conan\\data\\boost\\1.68.0\\odant\\tt\\export\\conanfile.py\", line 171, in get_build_environment\r\n    env = tools.vcvars_dict(self.settings, filter_known_paths=True, force=True)\r\n  File \"D:\\Python27\\lib\\site-packages\\conans\\client\\tools\\win.py\", line 460, in vcvars_dict\r\n    path = new_env.get(\"PATH\", \"\").split(\";\")\r\nAttributeError: 'list' object has no attribute 'split'\r\nboost/1.68.0@odant/tt:\r\nboost/1.68.0@odant/tt: ERROR: Package '74d6e6f7d63123455b1033138a5a462ab0736c21' build failed\r\nboost/1.68.0@odant/tt: WARN: Build folder D:/.conan/s\\4w_jf4\\1\r\nERROR: boost/1.68.0@odant/tt: Error in build() method, line 80\r\n        b2 = self.bootstrap(source_folder)\r\nwhile calling 'bootstrap', line 101\r\n        env = self.get_build_environment()\r\nwhile calling 'get_build_environment', line 171\r\n        env = tools.vcvars_dict(self.settings, filter_known_paths=True, force=True)\r\n        AttributeError: 'list' object has no attribute 'split'\r\n```"}}
{"actor":{"display_login":"danimtb"}}