bigluck commented on PR #1355:
URL: https://github.com/apache/iceberg-python/pull/1355#issuecomment-2492493406

   Ok, I know what's going on.
   
   ```bash
   $ make install
   Poetry is already installed.
   poetry install --all-extras
   Installing dependencies from lock file
   
   ...
     - Installing numpy (2.1.3)
   ...
   - Installing pandas (2.0.3): Failed
   
     ChefBuildError
   
     Backend subprocess exited when trying to invoke build_wheel
   
     <string>:19: DeprecationWarning: pkg_resources is deprecated as an API. 
See https://setuptools.pypa.io/en/latest/pkg_resources.html
     running bdist_wheel
     running build
     running build_py
   
   ...
   
       799 | #include "ios"
           |          ^~~~~
     1 error generated.
     error: command '/usr/bin/clang++' failed with exit code 1
   
   
     at 
/opt/homebrew/Cellar/poetry/1.8.3_2/libexec/lib/python3.12/site-packages/poetry/installation/chef.py:164
 in _prepare
         160│
         161│                 error = ChefBuildError("\n\n".join(message_parts))
         162│
         163│             if error is not None:
       → 164│                 raise error from None
         165│
         166│             return path
         167│
         168│     def _prepare_sdist(self, archive: Path, destination: Path | 
None = None) -> Path:
   
   Note: This error originates from the build backend, and is likely not a 
problem with poetry but with pandas (2.0.3) not supporting PEP 517 builds. You 
can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pandas 
(==2.0.3)"'.
   ```
   
   The numpy version locked on the poetry file is very old, and not compatible 
with python 3.13:
   
   ```
   [[package]]
   name = "numpy"
   version = "1.26.0"
   description = "Fundamental package for array computing in Python"
   optional = true
   python-versions = "<3.13,>=3.9"
   ```
   
   By removing the upper boundary poetry installed numpy 2.1.3 too:
   
   ```
   [[package]]
   name = "numpy"
   version = "2.1.3"
   description = "Fundamental package for array computing in Python"
   optional = true
   python-versions = ">=3.10"
   ```
   
   But:
   
   - [Pandas 2.0.3](https://pypi.org/project/pandas/2.0.3/) has been released 
on Jun 29, 2023 and its latest version is v2.2.3
   - [Numpy 2.0.0](https://pypi.org/project/numpy/2.0.0/) has been released a 
year after, and v2.1.3 is the latest version.
   
   Which means they are 100% incompatible.
   
   - [numpy 1.26.0](https://pypi.org/project/numpy/1.26.0/) has been released 
on Sep 16, 2023 and comes with: `Requires: Python <3.13, >=3.9 `
   - [numpy 1.26.4](https://pypi.org/project/numpy/1.26.4/) has been released 
this year (Feb 6, 2024) and comes with: `Requires: Python >=3.9`
   
   I upgrade `numpy` on the `poetry.lock` file from `v1.26.0` to `v1.26.4` and 
removed numpy `v2.1.3`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to