sparse_dot_topn icon indicating copy to clipboard operation
sparse_dot_topn copied to clipboard

ImportError: libffi.so.8: cannot open shared object file: No such file or directory

Open jtlz2 opened this issue 3 years ago • 1 comments

I am desperately trying to install sparse-dot-topn on amazonlinux but receive the error below.

I can't for the life of me figure out how to get libffi.so.8 onto that distro.

Any ideas / workarounds? Thanks!

(.pavenv) bash-4.2$ pip install sparse-dot-topn Collecting sparse-dot-topn Using cached sparse_dot_topn-0.3.1.tar.gz (17 kB) Installing build dependencies ... done Getting requirements to build wheel ... done ERROR: Exception: Traceback (most recent call last): File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper status = run_func(*args) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper return func(self, options, args) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 340, in run reqs, check_supported_wheels=not options.target_dir File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve collected.requirements, max_rounds=try_to_avoid_resolution_too_deep File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool return bool(self._sequence) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool return any(self) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built candidate = func() File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 220, in _make_candidate_from_link version=version, File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 294, in init version=version, File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 158, in init self.dist = self._prepare() File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 227, in _prepare dist = self._prepare_distribution() File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 299, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 487, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 560, in _prepare_linked_requirement self.build_isolation, File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 58, in _get_prepared_distribution abstract_dist.prepare_distribution_metadata(finder, build_isolation) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 45, in prepare_distribution_metadata self._install_build_reqs(finder) File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 104, in _install_build_reqs build_reqs = self._get_build_requires_wheel() File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 81, in _get_build_requires_wheel return backend.get_requires_for_build_wheel() File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_vendor/pep517/wrappers.py", line 173, in get_requires_for_build_wheel 'config_settings': config_settings File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_vendor/pep517/wrappers.py", line 332, in _call_hook raise BackendUnavailable(data.get('traceback', '')) pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last): File "/home/sagemaker-user/project-x/.pavenv/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 89, in _build_backend obj = import_module(mod_path) File "/opt/conda/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 953, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/tmp/pip-build-env-6_k7eccz/overlay/lib/python3.7/site-packages/setuptools/init.py", line 18, in from setuptools.dist import Distribution File "/tmp/pip-build-env-6_k7eccz/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 39, in from setuptools import windows_support File "/tmp/pip-build-env-6_k7eccz/overlay/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in import ctypes File "/opt/conda/lib/python3.7/ctypes/init.py", line 7, in from _ctypes import Union, Structure, Array ImportError: libffi.so.8: cannot open shared object file: No such file or directory

jtlz2 avatar Feb 15 '22 19:02 jtlz2

@jtlz2 thanks for your feedback!

We just released v0.3.3. We employed Github actions and CiBuildWheel, and make the wheels available for Py3.6-3.10 on multiple architectures of Linux, MacOS and Windows.

If you still have installation problems, please try the latest version.

If you find any problem with v0.3.3, please let us know. Thanks!

ymwdalex avatar Jun 27 '22 19:06 ymwdalex