convexengineering / gpkit

Geometric programming for engineers
http://gpkit.readthedocs.org
MIT License
205 stars 40 forks source link

MOSEK Error ("Could not load MOSEK library") after installing XCode #95

Closed pgkirsch closed 9 years ago

pgkirsch commented 9 years ago

I am getting the error below when running any code that uses gp.solve():

ImportError: Could not load MOSEK library: ImportError(OSError('dlopen(/Users/philippekirschen/.gpkit/expopt.so, 10): Library not loaded: @loader_path/libmosek64.7.0.dylib\n  Referenced from: /Users/philippekirschen/.gpkit/expopt.so\n  Reason: image not found',),)

The only things that have changed since this was last working are:

Giulia told me she had similar problems with her macbook after installing xcode, so I suspect it has to do with that.

I have reinstalled Anaconda and also checked my mosek installation. python -c '__import__("mosek").Env()' runs without causing exceptions.

pgkirsch commented 9 years ago

I have also retried pip install https://github.com/appliedopt/gpkit/zipball/master to no avail

pgkirsch commented 9 years ago

Resolved by deleting everything and reinstalling everything. And emptying trash. Emptying trash was key. Good use of a monday. Sigh.

bqpd commented 9 years ago

Emptying the trash? Huh. Glad you got it working!

pgkirsch commented 9 years ago

Thanks, me too!

Yeah I was just emptying the trash of all my redundant mosek and anaconda downloads, when I realised that it wouldn't let me empty the trash because python 2.7 was still being used or was on ongoing process or something. I don't know how I'd managed to get stuff pointing at the version of anaconda that was in the trash.....but hey at least it's fixed.