Install permissions error
See original GitHub issueI was installing on OSX 10.11.5 and get the following permissions error. I got around this by running the commands with sudo, but seems like it might be worth looking into why this occurred. The permissions on ~/.gpkit/expopt.so
were the same on my computer and Woody’s (but Woody doesn’t see this permissions error on his machine). My python version is 2.7.12 and my shutil is coming from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.pyc'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/7d/1mt4zdqx4433fkghc5rxrc3h0000gn/T/pip-build-5vTY0r/gpkit/setup.py", line 9, in <module>
build_gpkit()
File "gpkit/build.py", line 299, in build_gpkit
solvers = [CVXopt(), Mosek(), MosekCLI()]
File "gpkit/build.py", line 90, in __init__
self.installed = self.build() # pylint: disable=not-callable
File "gpkit/build.py", line 238, in build
solib_dir = replacedir(pathjoin(os.path.expanduser("~"), ".gpkit"))
File "gpkit/build.py", line 41, in replacedir
shutil.rmtree(path)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied: '/Users/mayork/.gpkit/expopt.so'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/7d/1mt4zdqx4433fkghc5rxrc3h0000gn/T/pip-build-5vTY0r/gpkit/
Issue Analytics
- State:
- Created 7 years ago
- Comments:23 (20 by maintainers)
Top Results From Across the Web
Resolving EACCES permissions errors when installing ...
Resolving EACCES permissions errors when installing packages globally · Reinstall npm with a node version manager · Manually change npm's default directory.
Read more >How to fix npm throwing error without sudo - node.js
Go to your nodejs install (usually C:\Program Files\nodejs); Right click node_modules folder and go to properties; Click the Security tab and advanced; At...
Read more >Permission Denied error when installing software
I have been trying to install the latest version of LibraOffice. The installation kit is an .msi package. It fails at the point...
Read more >Resolving EACCES permissions errors when ... - Medium
When we install a package globally by using sudo npm install -g it will create files like ~/.npm/_locks which causes the EACCES error....
Read more >Solved: installation issues - Permissions error
Just keep in mind that generally speaking the specific error you get means that Dropbox is attempting to access vital account information using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can also add --user to just install in your home directory to avoid using sudo.
changes merged in #934/ f9a6334