Build Fails on MacOS Sierra #260
Comments
|
Thanks for reporting @mwpenna . This appears to be a duplicate of #248 - can we please continue the discussion on the other ticket and close this one. This looks like an issue with file permissions ("Operation not permitted") - sometimes that happens when you've been running What is the output of this command: Looks like this could be related to this one: pypa/pip#3165 . One of the solutions suggested is to re-install using the |
|
I tried using the --ignore-installed flag and still got the same error. The output from above command was: ls: /tmp/pip-1FIMZk-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info: Permission denied |
|
This folder should not be owned by ... and then try to re-install: |
|
Build failed with the following error output: |
|
OK, we're getting closer. Looks like setting permissions is not enough, we need to be the owner of the temporary directory. Can you please try: Edit: actually, this might be related to a broken default version of Python, see https://stackoverflow.com/questions/31900008/oserror-errno-1-operation-not-permitted-when-installing-scrapy-in-osx-10-11 . The way it was solved there is to run: |
|
I was able to get this installed on MacOS Sierra with the following: Uninstall old version of pip (if necessary) Install python from brew Make sure pip is working after brew install If not, run this To resolve permission errors, I ran install with the --user flag |
|
Closing this issue as resolved, with the solution from @p1ng . Please re-open if the problem persists. Thanks |
|
@jasondavis25 2 years later, now |


Build is failing when issuing the following command: pip install localstack
Stack trace is:
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/init.py", line 267, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-1FIMZk-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
The text was updated successfully, but these errors were encountered: