{"action":"created","issue":{"url":"https://api.github.com/repos/platformio/platformio/issues/606","repository_url":"https://api.github.com/repos/platformio/platformio","labels_url":"https://api.github.com/repos/platformio/platformio/issues/606/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platformio/issues/606/comments","events_url":"https://api.github.com/repos/platformio/platformio/issues/606/events","html_url":"https://github.com/platformio/platformio/issues/606","id":146284230,"number":606,"title":"IOError: [Errno 13] Permission denied","user":{"login":"reauv","id":14931924,"avatar_url":"https://avatars.githubusercontent.com/u/14931924?v=3","gravatar_id":"","url":"https://api.github.com/users/reauv","html_url":"https://github.com/reauv","followers_url":"https://api.github.com/users/reauv/followers","following_url":"https://api.github.com/users/reauv/following{/other_user}","gists_url":"https://api.github.com/users/reauv/gists{/gist_id}","starred_url":"https://api.github.com/users/reauv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reauv/subscriptions","organizations_url":"https://api.github.com/users/reauv/orgs","repos_url":"https://api.github.com/users/reauv/repos","events_url":"https://api.github.com/users/reauv/events{/privacy}","received_events_url":"https://api.github.com/users/reauv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/platformio/platformio/labels/help%20wanted","name":"help wanted","color":"fbca04"}],"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":null,"comments":4,"created_at":"2016-04-06T11:33:20Z","updated_at":"2016-04-06T12:15:38Z","closed_at":null,"body":"Hey there,\r\n\r\nI've been trying to run a build for a NodeMCU which requires the espressif platform.\r\nBut after that I get an error `IOError: [Errno 13] Permission denied`\r\n\r\n### Configuration\r\n\r\n**Operating system**: OS X 10.11.4\r\n\r\n**PlatformIO Version**: 2.8.6\r\n\r\n### Description of problem\r\nTrying to run a build for a NodeMCU, but after attempting to install some dependencies I get a permission denied error.\r\n\r\n#### Steps to Reproduce\r\n\r\n1. `platformio init --board nodemcuv2`\r\n2. `platformio run`\r\n3. Press y when asked to `espressif` \r\n\r\n### Actual Results\r\n```\r\nError: Traceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/__main__.py\", line 107, in main\r\n    cli(None, None, None)\r\n  File \"/usr/local/lib/python2.7/site-packages/click/core.py\", line 700, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/click/core.py\", line 680, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/local/lib/python2.7/site-packages/click/core.py\", line 1027, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/usr/local/lib/python2.7/site-packages/click/core.py\", line 873, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/usr/local/lib/python2.7/site-packages/click/core.py\", line 508, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/click/decorators.py\", line 16, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/commands/run.py\", line 90, in cli\r\n    results.append(ep.process())\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/commands/run.py\", line 126, in process\r\n    result = self._run()\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/commands/run.py\", line 192, in _run\r\n    return p.run(build_vars, build_targets, self.verbose_level)\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/platforms/base.py\", line 426, in run\r\n    self._install_default_packages()\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/platforms/base.py\", line 412, in _install_default_packages\r\n    return self.install()\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/platforms/base.py\", line 329, in install\r\n    pm.install(name)\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/pkgmanager.py\", line 113, in install\r\n    if self.unpack(dlpath, pkg_dir):\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/pkgmanager.py\", line 52, in unpack\r\n    return fu.start()\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/unpacker.py\", line 103, in start\r\n    self._unpacker.extract_item(item, self._dest_dir)\r\n  File \"/usr/local/lib/python2.7/site-packages/platformio/unpacker.py\", line 36, in extract_item\r\n    self._afo.extract(item, dest_dir)\r\n  File \"/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py\", line 2115, in extract\r\n    self._extract_member(tarinfo, os.path.join(path, tarinfo.name))\r\n  File \"/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py\", line 2191, in _extract_member\r\n    self.makefile(tarinfo, targetpath)\r\n  File \"/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py\", line 2231, in makefile\r\n    with bltn_open(targetpath, \"wb\") as target:\r\nIOError: [Errno 13] Permission denied: '/Users/Robert/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/cassert'\r\n```\r\n\r\n### If problems with PlatformIO Build System:\r\n\r\n**The content of `platformio.ini`:**\r\n```ini\r\n#\r\n# Project Configuration File\r\n#\r\n# A detailed documentation with the EXAMPLES is located here:\r\n# http://docs.platformio.org/en/latest/projectconf.html\r\n#\r\n\r\n# A sign `#` at the beginning of the line indicates a comment\r\n# Comment lines are ignored.\r\n\r\n# Simple and base environment\r\n# [env:mybaseenv]\r\n# platform = %INSTALLED_PLATFORM_NAME_HERE%\r\n# framework =\r\n# board =\r\n#\r\n# Automatic targets - enable auto-uploading\r\n# targets = upload\r\n\r\n[env:nodemcuv2]\r\nplatform = espressif\r\nframework = arduino\r\nboard = nodemcuv2\r\n```\r\n\r\n### Additional info\r\nI've installed PlatformIO with `sudo pip --no-cache-dir install -U platformio` as described [here](https://github.com/platformio/platformio/issues/295#issuecomment-143772005)\r\n"},"comment":{"url":"https://api.github.com/repos/platformio/platformio/issues/comments/206344523","html_url":"https://github.com/platformio/platformio/issues/606#issuecomment-206344523","issue_url":"https://api.github.com/repos/platformio/platformio/issues/606","id":206344523,"user":{"login":"mbernson","id":477710,"avatar_url":"https://avatars.githubusercontent.com/u/477710?v=3","gravatar_id":"","url":"https://api.github.com/users/mbernson","html_url":"https://github.com/mbernson","followers_url":"https://api.github.com/users/mbernson/followers","following_url":"https://api.github.com/users/mbernson/following{/other_user}","gists_url":"https://api.github.com/users/mbernson/gists{/gist_id}","starred_url":"https://api.github.com/users/mbernson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbernson/subscriptions","organizations_url":"https://api.github.com/users/mbernson/orgs","repos_url":"https://api.github.com/users/mbernson/repos","events_url":"https://api.github.com/users/mbernson/events{/privacy}","received_events_url":"https://api.github.com/users/mbernson/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T12:15:38Z","updated_at":"2016-04-06T12:15:38Z","body":"I'm having the same issue, also on Mac OS X 10.11.4 with the nodemcuv2 board. Installing toolchains for other boards works fine though.\r\n\r\nI tried downloading the xtensa toolchain myself (from the PlatformIO manifest URL) and extracting it in the Finder results in the same \"Error 1 - Operation not permitted\". Extracting it via the command line doesn't work either:\r\n\r\n```\r\n$ wget https://dl.bintray.com/platformio/dl-packages/toolchain-xtensa-darwin_x86_64-1.40802.0.tar.gz\r\n$ tar -xzf toolchain-xtensa-darwin_x86_64-1.40802.0.tar.gz\r\nbin/xtensa-lx106-elf-readelf: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-ld.bfd: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-gcc-ar: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-strings: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-gcc-4.8.2: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-objcopy: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-gcc-ranlib: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-elfedit: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-cpp: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-g++: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-gdb: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-gcc: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-gcov: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-c++filt: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-objdump: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-c++: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-size: Cannot extract through symlink bin\r\nbin/xtensa-lx106-elf-nm: Cannot extract through symlink bin\r\nxtensa-lx106-elf/lib64: Can't remove already-existing dir\r\nbin/xtensa-lx106-elf-ld: Cannot extract through symlink bin\r\ntar: Error exit delayed from previous errors.\r\n```\r\n\r\nI guess the xtensa archive file is broken?"}}