pypa / packaging-problems

An issue tracker for the problems in packaging
151 stars 35 forks source link

HAiving issues importing a #726

Open PHzeek opened 9 months ago

PHzeek commented 9 months ago

Problem description

Collecting djitellopy Obtaining dependency information for djitellopy from https://files.pythonhosted.org/packages/a7/06/8da29bca8ec949043b840e00cad95ba96d3ad31cbec20cad2d409c0c7e37/djitellopy-2.5.0-py3-none-any.whl.metadata Using cached djitellopy-2.5.0-py3-none-any.whl.metadata (5.2 kB) Collecting numpy (from djitellopy) Obtaining dependency information for numpy from https://files.pythonhosted.org/packages/11/10/943cfb579f1a02909ff96464c69893b1d25be3731b5d3652c2e0cf1281ea/numpy-1.24.4-cp38-cp38-macosx_10_9_x86_64.whl.metadata Downloading numpy-1.24.4-cp38-cp38-macosx_10_9_x86_64.whl.metadata (5.6 kB) Collecting opencv-python (from djitellopy) Using cached opencv-python-4.9.0.80.tar.gz (92.9 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done'

ERROR: Exception: Traceback (most recent call last): File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper return func(self, options, args) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 377, in run requirement_set = resolver.resolve( File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve result = self._result = resolver.resolve( File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 427, in resolve failure_causes = self._attempt_to_pin_criterion(name) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 239, in _attempt_to_pin_criterion criteria = self._get_updated_criteria(candidate) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 230, in _get_updated_criteria self._add_to_criteria(criteria, requirement, parent=candidate) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria if not criterion.candidates: File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in bool return bool(self._sequence) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool return any(self) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/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 "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built candidate = func() File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 293, in init super().init( File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in init self.dist = self._prepare() File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 225, in _prepare dist = self._prepare_distribution() File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 538, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 653, in _prepare_linked_requirement dist = _get_prepared_distribution( File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution abstract_dist.prepare_distribution_metadata( File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 48, in prepare_distribution_metadata self._install_build_reqs(finder) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 118, in _install_build_reqs build_reqs = self._get_build_requires_wheel() File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 95, in _get_build_requires_wheel return backend.get_requires_for_build_wheel() File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 697, in get_requires_for_build_wheel return super().get_requires_for_build_wheel(config_settings=cs) File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 166, in get_requires_for_build_wheel return self._call_hook('get_requires_for_build_wheel', { File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 321, in _call_hook raise BackendUnavailable(data.get('traceback', '')) pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last): File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend obj = import_module(mod_path) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "/private/var/folders/5t/5qvbnctj5dn4y366hv65kc3h0000gn/T/pip-build-env-i9y3wc2k/overlay/lib/python3.8/site-packages/setuptools/init.py", line 18, in from setuptools.dist import Distribution File "/Users/ezekieladoh/PycharmProjects/Tello Course 1/venv/lib/python3.8/site-packages/_virtualenv.py", line 90, in exec_module old(module) File "/private/var/folders/5t/5qvbnctj5dn4y366hv65kc3h0000gn/T/pip-build-env-i9y3wc2k/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 38, in from setuptools import windows_support File "/private/var/folders/5t/5qvbnctj5dn4y366hv65kc3h0000gn/T/pip-build-env-i9y3wc2k/overlay/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in import ctypes File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/init.py", line 7, in from _ctypes import Union, Structure, Array ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_ctypes.cpython-38-darwin.so, 2): Symbol not found: __dyld_shared_cache_contains_path Referenced from: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_ctypes.cpython-38-darwin.so (which was built for Mac OS X 11.0) Expected in: /usr/lib/libSystem.B.dylib in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_ctypes.cpython-38-darwin.so

[notice] A new release of pip is available: 23.2.1 -> 24.0 [notice] To update, run: pip install --upgrade pip