libPointCloud
libPointCloud copied to clipboard
Python wrapper does not work
I'm guessing because this is all precompiled libraries and just committed to the git repo, but it doesn't work for me on the latest Catalina version.
How can I compile new ones?
>>> import PointCloud
Traceback (most recent call last):
File "/Users/ddb/git/libPointCloud/libs/macos/lib/python3/PointCloud.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
File "<frozen importlib._bootstrap>", line 583, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1043, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: dlopen(/Users/ddb/git/libPointCloud/libs/macos/lib/python3/_PointCloud.so, 2): Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: /Users/ddb/git/libPointCloud/libs/macos/lib/python3/_PointCloud.so
Reason: image not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/ddb/git/libPointCloud/libs/macos/lib/python3/PointCloud.py", line 17, in <module>
_PointCloud = swig_import_helper()
File "/Users/ddb/git/libPointCloud/libs/macos/lib/python3/PointCloud.py", line 16, in swig_import_helper
return importlib.import_module('_PointCloud')
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: dlopen(/Users/ddb/git/libPointCloud/libs/macos/lib/python3/_PointCloud.so, 2): Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: /Users/ddb/git/libPointCloud/libs/macos/lib/python3/_PointCloud.so
Reason: image not found