Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-267

Cannot pip install apache-sedona 1.4.0 from source distribution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.1

    Description

      A user using M2 Mac reported that apache-sedona 1.4.0 failed to install:

      Building wheels for collected packages: apache-sedona
        Building wheel for apache-sedona (setup.py) ... error
        error: subprocess-exited-with-error
      
        × python setup.py bdist_wheel did not run successfully.
        │ exit code: 1
        ╰─> [94 lines of output]
            running bdist_wheel
            running build
            running build_py
            creating build
            creating build/lib.macosx-11.0-arm64-cpython-310
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona
            copying sedona/version.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona
            copying sedona/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona
            copying sedona/exceptions.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/core
            copying sedona/core/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core
            copying sedona/core/utils.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/binary_parser.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/geometry_adapter.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/adapter.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/serde.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/types.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/geometry_serde.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/prep.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/abstract_parser.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/spatial_rdd_parser.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/jvm.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/geometry_serde_general.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/meta.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            copying sedona/utils/decorators.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/utils
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/register
            copying sedona/register/geo_registrator.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/register
            copying sedona/register/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/register
            copying sedona/register/java_libs.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/register
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            copying sedona/sql/st_aggregates.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            copying sedona/sql/dataframe_api.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            copying sedona/sql/st_constructors.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            copying sedona/sql/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            copying sedona/sql/types.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            copying sedona/sql/st_functions.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            copying sedona/sql/st_predicates.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            copying sedona/sql/exceptions.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/sql
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper
            copying sedona/core/formatMapper/wkb_reader.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper
            copying sedona/core/formatMapper/geo_json_reader.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper
            copying sedona/core/formatMapper/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper
            copying sedona/core/formatMapper/disc_utils.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper
            copying sedona/core/formatMapper/geo_reader.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper
            copying sedona/core/formatMapper/wkt_reader.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/core/enums
            copying sedona/core/enums/index_type.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/enums
            copying sedona/core/enums/file_data_splitter.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/enums
            copying sedona/core/enums/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/enums
            copying sedona/core/enums/spatial.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/enums
            copying sedona/core/enums/join_build_side.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/enums
            copying sedona/core/enums/grid_type.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/enums
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            copying sedona/core/SpatialRDD/circle_rdd.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            copying sedona/core/SpatialRDD/rectangle_rdd.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            copying sedona/core/SpatialRDD/polygon_rdd.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            copying sedona/core/SpatialRDD/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            copying sedona/core/SpatialRDD/spatial_rdd.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            copying sedona/core/SpatialRDD/point_rdd.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            copying sedona/core/SpatialRDD/linestring_rdd.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            copying sedona/core/SpatialRDD/spatial_rdd_factory.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/SpatialRDD
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/core/jvm
            copying sedona/core/jvm/abstract.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/jvm
            copying sedona/core/jvm/translate.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/jvm
            copying sedona/core/jvm/config.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/jvm
            copying sedona/core/jvm/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/jvm
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/core/geom
            copying sedona/core/geom/circle.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/geom
            copying sedona/core/geom/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/geom
            copying sedona/core/geom/envelope.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/geom
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            copying sedona/core/spatialOperator/range_query.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            copying sedona/core/spatialOperator/join_query.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            copying sedona/core/spatialOperator/join_query_raw.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            copying sedona/core/spatialOperator/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            copying sedona/core/spatialOperator/knn_query.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            copying sedona/core/spatialOperator/rdd.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            copying sedona/core/spatialOperator/join_params.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            copying sedona/core/spatialOperator/range_query_raw.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/spatialOperator
            creating build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper/shapefileParser
            copying sedona/core/formatMapper/shapefileParser/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper/shapefileParser
            copying sedona/core/formatMapper/shapefileParser/shape_file_reader.py -> build/lib.macosx-11.0-arm64-cpython-310/sedona/core/formatMapper/shapefileParser
            running build_ext
            building 'sedona.utils.geomserde_speedup' extension
            creating build/temp.macosx-11.0-arm64-cpython-310
            creating build/temp.macosx-11.0-arm64-cpython-310/src
            clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/hughsaalmans/miniconda3/envs/sedona/include -arch arm64 -fPIC -O2 -isystem /Users/hughsaalmans/miniconda3/envs/sedona/include -arch arm64 -I/Users/hughsaalmans/miniconda3/envs/sedona/include/python3.10 -c src/geom_buf.c -o build/temp.macosx-11.0-arm64-cpython-310/src/geom_buf.o
            src/geom_buf.c:20:10: fatal error: 'geom_buf.h' file not found
            #include "geom_buf.h"
                     ^~~~~~~~~~~~
            1 error generated.
      ... (120 lines left)
      

       
      Since we've not provided prebuilt wheels for M2 Mac, pip tried to install it from the source distribution. The installation failed because the source package does not contain the header files necessary for building the extension module.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kontinuation Kristin Cowalcijk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m