AsteroidsIA icon indicating copy to clipboard operation
AsteroidsIA copied to clipboard

OSError: Could not find lib c or load any of its variants [].

Open oiwilliam opened this issue 4 years ago • 0 comments

I've received this error trying to run in macOS Big Sur 11.2.2 and python 3.6.

/usr/local/bin/python3.6 /Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevconsole.py --mode=client --port=56502 import sys; print('Python %s on %s' % (sys.version, sys.platform)) sys.path.extend(['/Users/william/Downloads/AsteroidsIA-master']) Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 05:52:31) Type 'copyright', 'credits' or 'license' for more information IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help. PyDev console: using IPython 6.5.0 Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 05:52:31) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin runfile('/Users/william/Downloads/AsteroidsIA-master/game.py', wdir='/Users/william/Downloads/AsteroidsIA-master') pygame 2.0.0 (SDL 2.0.12, python 3.6.5) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2961, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in runfile('/Users/william/Downloads/AsteroidsIA-master/game.py', wdir='/Users/william/Downloads/AsteroidsIA-master') File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/Users/william/Downloads/AsteroidsIA-master/game.py", line 3, in from classes.ship import Ship File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/william/Downloads/AsteroidsIA-master/classes/ship.py", line 4, in from shapely.geometry import LineString, Polygon File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/shapely/geometry/init.py", line 4, in from .base import CAP_STYLE, JOIN_STYLE File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/shapely/geometry/base.py", line 17, in from shapely.coords import CoordinateSequence File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/shapely/coords.py", line 8, in from shapely.geos import lgeos File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/shapely/geos.py", line 113, in free = load_dll('c').free File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/shapely/geos.py", line 56, in load_dll libname, fallbacks or [])) OSError: Could not find lib c or load any of its variants [].

oiwilliam avatar Mar 22 '21 12:03 oiwilliam