Kontinuation commented on issue #1607: URL: https://github.com/apache/sedona/issues/1607#issuecomment-2378349133
The Pipfile in the sedona repository is for setting up an environment for running tests, not enforcing the dependency versions when installing the `apache-sedona` package on users' environments. The dependency requirement of sedona is quite loose since it wants to pose fewer restrictions on users' Python environment. The non-optional dependencies are the following 3 items: * attrs * shapely>=1.7.0 * rasterio>=1.2.10 The optional dependency requirements also have no restrictions on the version of pandas or geopandas. The versions of transitive dependencies are meant to be resolved by the package manager or the user. Unfortunately, [pandas 1.5.3 requires numpy>=1.21.0](https://github.com/pandas-dev/pandas/blob/v1.5.3/setup.cfg#L34-L37), which makes numpy 2 a version satisfying the requirement, so numpy 2 was picked up when installing rasterio using `pip`. We can add `numpy < 2` and constraints to other packages such as `pandas <= 1.5.3` to setup.py to fix this failure on DBR, but it poses unnecessary restrictions to the user's python environment. For instance, the usage of sedona package on python environments with numpy 2 and pandas 2.2 installed. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
