question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install permissions error

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:23 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
galbramccommented, Aug 6, 2016

You can also add --user to just install in your home directory to avoid using sudo.

0reactions
bqpdcommented, Dec 2, 2016

changes merged in #934/ f9a6334

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found