GEKKO: Library not loaded: libquadmath
Error running using local m = Gekko(remote=False)
Error: dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/9/libquadmath.0.dylib
Referenced from: /Users/<my-local-user>/Library/Python/3.9/lib/python/site-packages/gekko/bin/apm_mac
Reason: image not found
and then of course (a little less indicative error):
Error: 'results.json' not found. Check above for additional error details
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
--> 158 m.solve()
~/Library/Python/3.9/lib/python/site-packages/gekko/gekko.py in solve(self, disp, debug, GUI, **kwargs)
2143 if timing == True:
2144 t = time.time()
-> 2145 self.load_JSON()
2146 if timing == True:
2147 print('load JSON', time.time() - t)
~/Library/Python/3.9/lib/python/site-packages/gekko/gk_post_solve.py in load_JSON(self)
11 ## options.JSON has all APM options
12 def load_JSON(self):
---> 13 f = open(os.path.join(self._path,'options.json'))
14 data = json.load(f)
15 f.close()
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/v3/433gqqkj4fd3yl1ljdzdb_lh0000gn/T/tmpsw80nnazgk_model0/options.json'
Same code worked on same machine before upgrading from python3.8 to python3.9 (using brew install python3)
Environment:
- MacOS Big Sur, 11.0.1 (20B50)
- Python
3.9.1(installed viabrew install python3) - Gekko version:
0.2.6(installed viapip3 install gekkousing pip3 version20.3.3) - gcc -v:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.28)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (7 by maintainers)
The local executable in Gekko v1.0.0 now runs without dependencies. Please let us know if there are any additional issues.