{"action":"created","issue":{"url":"https://api.github.com/repos/platformio/platformio/issues/279","labels_url":"https://api.github.com/repos/platformio/platformio/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platformio/issues/279/comments","events_url":"https://api.github.com/repos/platformio/platformio/issues/279/events","html_url":"https://github.com/platformio/platformio/issues/279","id":103778093,"number":279,"title":"error: option --single-version-externally-managed not recognized","user":{"login":"brakmic","id":56779,"avatar_url":"https://avatars.githubusercontent.com/u/56779?v=3","gravatar_id":"","url":"https://api.github.com/users/brakmic","html_url":"https://github.com/brakmic","followers_url":"https://api.github.com/users/brakmic/followers","following_url":"https://api.github.com/users/brakmic/following{/other_user}","gists_url":"https://api.github.com/users/brakmic/gists{/gist_id}","starred_url":"https://api.github.com/users/brakmic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brakmic/subscriptions","organizations_url":"https://api.github.com/users/brakmic/orgs","repos_url":"https://api.github.com/users/brakmic/repos","events_url":"https://api.github.com/users/brakmic/events{/privacy}","received_events_url":"https://api.github.com/users/brakmic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/platformio/platformio/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ivankravets","id":1760209,"avatar_url":"https://avatars.githubusercontent.com/u/1760209?v=3","gravatar_id":"","url":"https://api.github.com/users/ivankravets","html_url":"https://github.com/ivankravets","followers_url":"https://api.github.com/users/ivankravets/followers","following_url":"https://api.github.com/users/ivankravets/following{/other_user}","gists_url":"https://api.github.com/users/ivankravets/gists{/gist_id}","starred_url":"https://api.github.com/users/ivankravets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivankravets/subscriptions","organizations_url":"https://api.github.com/users/ivankravets/orgs","repos_url":"https://api.github.com/users/ivankravets/repos","events_url":"https://api.github.com/users/ivankravets/events{/privacy}","received_events_url":"https://api.github.com/users/ivankravets/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/platformio/platformio/milestones/15","html_url":"https://github.com/platformio/platformio/milestones/2.3.0","labels_url":"https://api.github.com/repos/platformio/platformio/milestones/15/labels","id":1168316,"number":15,"title":"2.3.0","description":"","creator":{"login":"ivankravets","id":1760209,"avatar_url":"https://avatars.githubusercontent.com/u/1760209?v=3","gravatar_id":"","url":"https://api.github.com/users/ivankravets","html_url":"https://github.com/ivankravets","followers_url":"https://api.github.com/users/ivankravets/followers","following_url":"https://api.github.com/users/ivankravets/following{/other_user}","gists_url":"https://api.github.com/users/ivankravets/gists{/gist_id}","starred_url":"https://api.github.com/users/ivankravets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivankravets/subscriptions","organizations_url":"https://api.github.com/users/ivankravets/orgs","repos_url":"https://api.github.com/users/ivankravets/repos","events_url":"https://api.github.com/users/ivankravets/events{/privacy}","received_events_url":"https://api.github.com/users/ivankravets/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"closed","created_at":"2015-06-17T10:38:49Z","updated_at":"2015-09-06T07:21:25Z","due_on":null,"closed_at":"2015-09-05T20:35:16Z"},"comments":18,"created_at":"2015-08-28T19:09:34Z","updated_at":"2015-09-08T14:48:39Z","closed_at":null,"body":"Hi,\r\n\r\nI get an installation error when trying to install \"scons\" under **Windows 10 x64**. :sob: \r\nOther packages seem to be installed properly.\r\n\r\n```shell\r\nD:\\src\\plarformio>pip install -U pip setuptools scons\r\nRequirement already up-to-date: pip in c:\\bin\\python27\\lib\\site-packages\r\nRequirement already up-to-date: setuptools in c:\\bin\\python27\\lib\\site-packages\r\nCollecting scons\r\n  Using cached scons-2.3.6.tar.gz\r\nInstalling collected packages: scons\r\n  Running setup.py install for scons\r\n    Complete output from command C:\\bin\\Python27\\python.exe -c \"import setuptools, tokenize;__file__='c:\\\\users\\\\harris\\\\appdata\\\\local\\\\\r\ntemp\\\\pip-build-dil9zr\\\\scons\\\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, '\r\nexec'))\" install --record c:\\users\\harris\\appdata\\local\\temp\\pip-35frnt-record\\install-record.txt --single-version-externally-managed --c\r\nompile:\r\n    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]\r\n       or: -c --help [cmd1 cmd2 ...]\r\n       or: -c --help-commands\r\n       or: -c cmd --help\r\n\r\n    error: option --single-version-externally-managed not recognized\r\n\r\n    ----------------------------------------\r\nCommand \"C:\\bin\\Python27\\python.exe -c \"import setuptools, tokenize;__file__='c:\\\\users\\\\harris\\\\appdata\\\\local\\\\temp\\\\pip-build-dil9zr\\\\\r\nscons\\\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --recor\r\nd c:\\users\\harris\\appdata\\local\\temp\\pip-35frnt-record\\install-record.txt --single-version-externally-managed --compile\" failed with erro\r\nr code 1 in c:\\users\\harris\\appdata\\local\\temp\\pip-build-dil9zr\\scons\r\n```\r\n\r\nAccording to <a href=\"http://stackoverflow.com/questions/14296531/what-does-error-option-single-version-externally-managed-not-recognized-ind\" target=\"_blank\">this SO thread</a> the problem disappears by using the flag \"--egg\". \r\n\r\nHowever, I know only very little about python and its environment and wouldn't say that this is a \"proper\" solution to this problem but at least it worked for me. Maybe there are some of you with similar problems. Just in the case of a more general problem it would be nice to put it somewhere in the docs.\r\n\r\nHere's the command I used to install \"scons\".\r\n\r\n```code\r\npip install -U pip setuptools --egg scons\r\n```\r\n\r\nAnd here's the proof :smile: \r\n\r\n```shell\r\n\r\nD:\\src\\plarformio>pip install -U pip setuptools --egg scons\r\nRequirement already up-to-date: pip in c:\\bin\\python27\\lib\\site-packages\r\nRequirement already up-to-date: setuptools in c:\\bin\\python27\\lib\\site-packages\r\nCollecting scons\r\n  Using cached scons-2.3.6.tar.gz\r\nInstalling collected packages: scons\r\n  Running setup.py install for scons\r\nSuccessfully installed scons\r\n```\r\n\r\nBest regards,\r\nHarris\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26284387-error-option-single-version-externally-managed-not-recognized?utm_campaign=plugin&utm_content=tracker%2F2014790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2014790&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/platformio/platformio/issues/comments/138589851","html_url":"https://github.com/platformio/platformio/issues/279#issuecomment-138589851","issue_url":"https://api.github.com/repos/platformio/platformio/issues/279","id":138589851,"user":{"login":"cqql","id":339165,"avatar_url":"https://avatars.githubusercontent.com/u/339165?v=3","gravatar_id":"","url":"https://api.github.com/users/cqql","html_url":"https://github.com/cqql","followers_url":"https://api.github.com/users/cqql/followers","following_url":"https://api.github.com/users/cqql/following{/other_user}","gists_url":"https://api.github.com/users/cqql/gists{/gist_id}","starred_url":"https://api.github.com/users/cqql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cqql/subscriptions","organizations_url":"https://api.github.com/users/cqql/orgs","repos_url":"https://api.github.com/users/cqql/repos","events_url":"https://api.github.com/users/cqql/events{/privacy}","received_events_url":"https://api.github.com/users/cqql/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T14:48:39Z","updated_at":"2015-09-08T14:48:39Z","body":"I do not like scons. This is the second scons related issue I ran into (the other happened several months ago) and both times it took both of us a few hours to sort it out. \r\n\r\nI tried installing the new build, but to not avail. It is still the same error. I instrumented my pip again with some print statements in `req/req_install.py` right before the command is called to check the versions\r\n\r\n```python\r\nwith indent_log():\r\n    import setuptools\r\n    import pip\r\n    print(setuptools.__version__, pip.__version__)          \r\n    call_subprocess( \r\n        install_args + install_options,\r\n        cwd=self.source_dir,\r\n        show_stdout=False,\r\n    )\r\n```\r\nand the versions are\r\n```sh\r\nInstalling collected packages: SCons, platformio\r\n  Running setup.py install for SCons\r\n('18.3.1', '7.1.2')\r\n    Complete output from command /home/cqql/.pyenv/versions/2.7.10/bin/python2.7 -c \"import setuptools, tokenize;__file__='/tmp/pip-build-uzEFJJ/SCons/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-3hpEM3-record/install-record.txt --single-version-externally-managed --compile:\r\n```\r\nSo apparently it is still not working. "}}