{"action":"created","issue":{"url":"https://api.github.com/repos/gldnspud/virtualenv-pythonw-osx/issues/12","labels_url":"https://api.github.com/repos/gldnspud/virtualenv-pythonw-osx/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/gldnspud/virtualenv-pythonw-osx/issues/12/comments","events_url":"https://api.github.com/repos/gldnspud/virtualenv-pythonw-osx/issues/12/events","html_url":"https://github.com/gldnspud/virtualenv-pythonw-osx/issues/12","id":119423719,"number":12,"title":"fails to fix under yosemite","user":{"login":"thomasdziedzic","id":203340,"avatar_url":"https://avatars.githubusercontent.com/u/203340?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasdziedzic","html_url":"https://github.com/thomasdziedzic","followers_url":"https://api.github.com/users/thomasdziedzic/followers","following_url":"https://api.github.com/users/thomasdziedzic/following{/other_user}","gists_url":"https://api.github.com/users/thomasdziedzic/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasdziedzic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasdziedzic/subscriptions","organizations_url":"https://api.github.com/users/thomasdziedzic/orgs","repos_url":"https://api.github.com/users/thomasdziedzic/repos","events_url":"https://api.github.com/users/thomasdziedzic/events{/privacy}","received_events_url":"https://api.github.com/users/thomasdziedzic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T05:52:29Z","updated_at":"2015-12-25T15:55:44Z","closed_at":null,"body":"I installed this package using:\r\n\r\n```\r\n.python-env/bin/pip install git+git://github.com/gldnspud/virtualenv-pythonw-osx.git\r\n```\r\n\r\nand then I tried to run the script:\r\n\r\n```\r\n.python-env/bin/fix-osx-virtualenv .python-env/\r\n```\r\n\r\nand got the following errors:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \".python-env/bin/fix-osx-virtualenv\", line 9, in <module>\r\n    load_entry_point('fix-osx-virtualenv==0.1', 'console_scripts', 'fix-osx-virtualenv')()\r\n  File \"/Users/thomas/datasciencefromscratch/.python-env/lib/python2.7/site-packages/install_pythonw/__init__.py\", line 120, in run_main\r\n    sys.exit(main(sys.argv))\r\n  File \"/Users/thomas/datasciencefromscratch/.python-env/lib/python2.7/site-packages/install_pythonw/__init__.py\", line 93, in main\r\n    shutil.copytree(python_app_src, python_app_dest)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 208, in copytree\r\n    raise Error, errors\r\nshutil.Error: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Info.plist', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/Info.plist', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/Info.plist'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/MacOS/Python', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/MacOS/Python'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/MacOS', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/MacOS'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/PkgInfo', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/PkgInfo', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/PkgInfo'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Resources/PythonApplet.icns', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/Resources/PythonApplet.icns', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/Resources/PythonApplet.icns'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Resources/PythonInterpreter.icns', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/Resources/PythonInterpreter.icns', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/Resources/PythonInterpreter.icns'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Resources', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/Resources', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/Resources'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/version.plist', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/version.plist', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents/version.plist'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents', '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app/Contents'\"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app', '/Users/thomas/datasciencefromscratch/.python-env/Python.app', \"[Errno 1] Operation not permitted: '/Users/thomas/datasciencefromscratch/.python-env/Python.app'\")]\r\n```\r\n\r\nI noticed that it still copied Python.app over with the contents, including the files that it said the operation was not permitted on, so I modified the script by removing the \"already existing Python.app\" check at https://github.com/gldnspud/virtualenv-pythonw-osx/blob/629d22cd8af95f2d0959d7174626a3e8103a3ac3/install_pythonw/__init__.py#L67 and by commenting out the copytree at https://github.com/gldnspud/virtualenv-pythonw-osx/blob/629d22cd8af95f2d0959d7174626a3e8103a3ac3/install_pythonw/__init__.py#L93\r\n\r\nAfter the modifications, I ran it again and completed and seemed to have fixed my issues."},"comment":{"url":"https://api.github.com/repos/gldnspud/virtualenv-pythonw-osx/issues/comments/167246670","html_url":"https://github.com/gldnspud/virtualenv-pythonw-osx/issues/12#issuecomment-167246670","issue_url":"https://api.github.com/repos/gldnspud/virtualenv-pythonw-osx/issues/12","id":167246670,"user":{"login":"bcipolli","id":4072455,"avatar_url":"https://avatars.githubusercontent.com/u/4072455?v=3","gravatar_id":"","url":"https://api.github.com/users/bcipolli","html_url":"https://github.com/bcipolli","followers_url":"https://api.github.com/users/bcipolli/followers","following_url":"https://api.github.com/users/bcipolli/following{/other_user}","gists_url":"https://api.github.com/users/bcipolli/gists{/gist_id}","starred_url":"https://api.github.com/users/bcipolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcipolli/subscriptions","organizations_url":"https://api.github.com/users/bcipolli/orgs","repos_url":"https://api.github.com/users/bcipolli/repos","events_url":"https://api.github.com/users/bcipolli/events{/privacy}","received_events_url":"https://api.github.com/users/bcipolli/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T15:55:44Z","updated_at":"2015-12-25T15:55:44Z","body":"I ran on El Capitan without any issues."}}