-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUILD: cross-compiling issue using crossenv #57945
Comments
Associated PR (although code is in my local tree) SynoCommunity/spksrc#6040 |
Can you provide your build command? Looking at the error, you are missing the |
Indeed it was missing, thnx now added:
So from here I now added |
I was able to keep the log file by setting-up the build directory:
|
Now added EDIT: Note that I found curious the
|
You need Cython 3 to be able to compile pandas. It looks like you have Cython 0.29.37. |
Going to close as I'm assuming the issue is fixed. Feel free to comment if you're experiencing any other issues and I'll reopen this. |
Thnx for the help and I'll reopen if i need further assistance but i believe my concerns are now answered. |
Installation check
Platform
Synology toolchain for any (x64, armv7, aarch64, ppc)
Installation Method
Built from source
pandas Version
2.0.3 and 2.2.1
Python Version
3.11.8
Installation Logs
Requirement already satisfied: pybind11==2.11.1 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages (2.11.1)
Requirement already satisfied: expandvars==0.12.0 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages (0.12.0)
Requirement already satisfied: python-dateutil==2.9.0.post0 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages (2.9.0.post0)
Requirement already satisfied: pytz==2024.1 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages (2024.1)
Collecting tzdata==2024.1
Downloading tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
Requirement already satisfied: six>=1.5 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages (from python-dateutil==2.9.0.post0) (1.16.0)
Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 345.4/345.4 kB 3.9 MB/s eta 0:00:00
Installing collected packages: tzdata
Successfully installed tzdata-2024.1
Requirement already satisfied: pybind11==2.11.1 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/cross/lib/python3.11/site-packages (2.11.1)
Requirement already satisfied: expandvars==0.12.0 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/cross/lib/python3.11/site-packages (0.12.0)
Requirement already satisfied: python-dateutil==2.9.0.post0 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/cross/lib/python3.11/site-packages (2.9.0.post0)
Requirement already satisfied: pytz==2024.1 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/cross/lib/python3.11/site-packages (2024.1)
Collecting tzdata==2024.1
Using cached tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
Requirement already satisfied: six>=1.5 in /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/cross/lib/python3.11/site-packages (from python-dateutil==2.9.0.post0) (1.16.0)
Using cached tzdata-2024.1-py2.py3-none-any.whl (345 kB)
Installing collected packages: tzdata
Successfully installed tzdata-2024.1
===> Processing wheels of homeassistant
===> Downloading wheels from src/requirements-abi3.txt ...
===> pip download [pycryptodome], version [3.18.0]
INFO: File already exists [pycryptodome-3.18.0.tar.gz]
===> pip download [pycryptodomex], version [3.18.0]
INFO: File already exists [pycryptodomex-3.18.0.tar.gz]
===> Downloading wheels from src/requirements-crossenv.txt ...
===> pip download [pandas], version [2.2.1]
INFO: File already exists [pandas-2.2.1.tar.gz]
===> pip download [webrtcvad], version [2.0.10], URL: [git+https://github.com/wiseman/py-webrtcvad@3bd761332a9404f5c9276105070ee814c4428342#egg=webrtcvad==2.0.10]
WARNING: Skipping download URL - Downloaded at build time
===> Adding existing src/requirements-abi3.txt file as ABI-limited
===> Adding existing src/requirements-crossenv.txt file as cross-compiled (discarding any pure-python)
===> Adding existing src/requirements-pure.txt file as pure-python (discarding any cross-compiled)
===> Cross-compiling wheels
===> Python crossenv found: [/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/bin/activate]
===> pip crossenv found: [/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/cross/bin/pip]
===> [pandas] --config-settings=editable-verbose=true
make[3]: Entering directory '/home/spksrc/py311-update/spksrc/spk/homeassistant'
===> _PYTHON_HOST_PLATFORM=x86_64-pc-linux-gnu /home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/cross/bin/pip wheel --disable-pip-version-check --no-binary :all: --find-links /home/spksrc/py311-update/spksrc/spk/homeassistant/../../distrib/pip --cache-dir /home/spksrc/py311-update/spksrc/spk/homeassistant/work-x64-7.1/pip --no-deps --wheel-dir /home/spksrc/py311-update/spksrc/spk/homeassistant/work-x64-7.1/wheelhouse --no-index --config-settings=editable-verbose=true --no-build-isolation pandas==2.2.1
Looking in links: /home/spksrc/py311-update/spksrc/spk/homeassistant/../../distrib/pip
Processing /home/spksrc/py311-update/spksrc/distrib/pip/pandas-2.2.1.tar.gz
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
ERROR: Exception:
Traceback (most recent call last):
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/commands/wheel.py", line 147, in run
requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in bool
return bool(self._sequence)
^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool
return any(self)
^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/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/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
candidate = func()
^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 182, in _make_candidate_from_link
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 228, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 290, in init
super().init(
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 301, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 525, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 640, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 71, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/distributions/sdist.py", line 67, in prepare_distribution_metadata
self.req.prepare_metadata()
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/req/req_install.py", line 579, in prepare_metadata
self.metadata_directory = generate_metadata(
^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/operations/build/metadata.py", line 35, in generate_metadata
distinfo_dir = backend.prepare_metadata_for_build_wheel(metadata_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_internal/utils/misc.py", line 766, in prepare_metadata_for_build_wheel
return super().prepare_metadata_for_build_wheel(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 186, in prepare_metadata_for_build_wheel
return self._call_hook('prepare_metadata_for_build_wheel', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/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 "/home/spksrc/py311-update/spksrc/spk/python311/work-x64-7.1/crossenv/build/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/spksrc/py311-update/spksrc/native/python311/work-native/install/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mesonpy'
make[3]: *** [../../mk/spksrc.wheel.mk:203: cross-compile-wheel-pandas] Error 2
make[3]: Leaving directory '/home/spksrc/py311-update/spksrc/spk/homeassistant'
make[2]: *** [../../mk/spksrc.wheel.mk:144: build_wheel_target] Error 1
make[2]: Leaving directory '/home/spksrc/py311-update/spksrc/spk/homeassistant'
make[1]: *** [../../mk/spksrc.spk.mk:719: build-arch-x64-7.1] Error 1
make[1]: Leaving directory '/home/spksrc/py311-update/spksrc/spk/homeassistant'
make: *** [../../mk/spksrc.spk.mk:713: arch-x64-7.1] Error 2
The text was updated successfully, but these errors were encountered: