Skip to content

Unable to build versions > 1.8.3 #55

@niccolomineo

Description

@niccolomineo

Since after 1.8.3 I am unable to build spotfire. I am on Apple M1.

With 1.8.3:

/app $ pip install spotfire==1.8.3
Defaulting to user installation because normal site-packages is not writeable
Collecting spotfire==1.8.3
  Obtaining dependency information for spotfire==1.8.3 from https://files.pythonhosted.org/packages/04/92/ecd801f21294f14bb1a84d1834814de06effda32e49dea56fcdf6be6d004/spotfire-1.8.3-py2.py3-none-any.whl.metadata
  Using cached spotfire-1.8.3-py2.py3-none-any.whl.metadata (1.4 kB)
Requirement already satisfied: bitstring in /home/nicco/.local/lib/python3.11/site-packages (from spotfire==1.8.3) (4.1.2)
Requirement already satisfied: numpy!=1.19.4 in /home/nicco/.local/lib/python3.11/site-packages (from spotfire==1.8.3) (1.24.2)
Requirement already satisfied: pandas!=1.0.2,!=1.0.3,>=0.24.0 in /home/nicco/.local/lib/python3.11/site-packages (from spotfire==1.8.3) (2.0.1)
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (from spotfire==1.8.3) (23.2.1)
Requirement already satisfied: python-dateutil in /home/nicco/.local/lib/python3.11/site-packages (from spotfire==1.8.3) (2.8.2)
Requirement already satisfied: pytz in /home/nicco/.local/lib/python3.11/site-packages (from spotfire==1.8.3) (2022.7.1)
Requirement already satisfied: setuptools in /usr/local/lib/python3.11/site-packages (from spotfire==1.8.3) (65.5.1)
Requirement already satisfied: six in /home/nicco/.local/lib/python3.11/site-packages (from spotfire==1.8.3) (1.16.0)
Requirement already satisfied: wheel in /usr/local/lib/python3.11/site-packages (from spotfire==1.8.3) (0.41.2)
Requirement already satisfied: tzdata>=2022.1 in /home/nicco/.local/lib/python3.11/site-packages (from pandas!=1.0.2,!=1.0.3,>=0.24.0->spotfire==1.8.3) (2022.5)
Requirement already satisfied: bitarray<3.0.0,>=2.8.0 in /home/nicco/.local/lib/python3.11/site-packages (from bitstring->spotfire==1.8.3) (2.8.2)
Using cached spotfire-1.8.3-py2.py3-none-any.whl (36 kB)
Installing collected packages: spotfire
Successfully installed spotfire-1.8.3

Onwards (currently 2.1.1):

/app $ pip install spotfire
Defaulting to user installation because normal site-packages is not writeable
Collecting spotfire
  Using cached spotfire-2.1.1.tar.gz (70 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy<2.0,>=1.21 in /home/nicco/.local/lib/python3.11/site-packages (from spotfire) (1.24.2)
Requirement already satisfied: pandas!=1.0.2,!=1.0.3,>=0.24.0 in /home/nicco/.local/lib/python3.11/site-packages (from spotfire) (2.0.1)
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (from spotfire) (23.2.1)
Requirement already satisfied: python-dateutil in /home/nicco/.local/lib/python3.11/site-packages (from spotfire) (2.8.2)
Requirement already satisfied: pytz in /home/nicco/.local/lib/python3.11/site-packages (from spotfire) (2022.7.1)
Requirement already satisfied: setuptools in /usr/local/lib/python3.11/site-packages (from spotfire) (65.5.1)
Requirement already satisfied: six in /home/nicco/.local/lib/python3.11/site-packages (from spotfire) (1.16.0)
Requirement already satisfied: wheel in /usr/local/lib/python3.11/site-packages (from spotfire) (0.41.2)
Requirement already satisfied: tzdata>=2022.1 in /home/nicco/.local/lib/python3.11/site-packages (from pandas!=1.0.2,!=1.0.3,>=0.24.0->spotfire) (2022.5)
Building wheels for collected packages: spotfire
  Building wheel for spotfire (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for spotfire (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [78 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-311
      creating build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/__init__.py -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/_utils.py -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/version.py -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/spk.py -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/data_function.py -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/public.py -> build/lib.linux-aarch64-cpython-311/spotfire
      running egg_info
      writing spotfire.egg-info/PKG-INFO
      writing dependency_links to spotfire.egg-info/dependency_links.txt
      writing requirements to spotfire.egg-info/requires.txt
      writing top-level names to spotfire.egg-info/top_level.txt
      reading manifest file 'spotfire.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*' found under directory 'spotfire/test'
      warning: no previously-included files matching '*' found under directory 'venv'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching '.gitattributes'
      warning: no previously-included files found matching '.gitignore'
      warning: no previously-included files found matching '.whitesource*'
      adding license file 'LICENSE'
      writing manifest file 'spotfire.egg-info/SOURCES.txt'
      copying spotfire/cabfile.pyx -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/cabfile_helpers.c -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/codesign.pyx -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/requirements.txt -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/sbdf.pyx -> build/lib.linux-aarch64-cpython-311/spotfire
      copying spotfire/sbdf_helpers.c -> build/lib.linux-aarch64-cpython-311/spotfire
      warning: build_py: byte-compiling is disabled, skipping.
      
      running build_ext
      cythoning spotfire/cabfile.pyx to build/temp.linux-aarch64-cpython-311/pyrex/spotfire/cabfile.c
      creating build/temp.linux-aarch64-cpython-311
      creating build/temp.linux-aarch64-cpython-311/pyrex
      creating build/temp.linux-aarch64-cpython-311/pyrex/spotfire
      cythoning spotfire/codesign.pyx to build/temp.linux-aarch64-cpython-311/pyrex/spotfire/codesign.c
      cythoning spotfire/sbdf.pyx to build/temp.linux-aarch64-cpython-311/pyrex/spotfire/sbdf.c
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      except ImportError:
          PIL = None
      
      
      ### Various utility helper functions for doing things that are problematic in PYX files
      include "sbdf_helpers.pxi"
      ^
      ------------------------------------------------------------
      
      spotfire/sbdf.pyx:60:0: 'sbdf_helpers.pxi' not found
      
      building 'spotfire.cabfile' extension
      creating build/temp.linux-aarch64-cpython-311/build
      creating build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311
      creating build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311/pyrex
      creating build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311/pyrex/spotfire
      creating build/temp.linux-aarch64-cpython-311/spotfire
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ispotfire -Ibuild/temp.linux-aarch64-cpython-311/pyrex/spotfire -I/usr/local/include/python3.11 -c build/temp.linux-aarch64-cpython-311/pyrex/spotfire/cabfile.c -o build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311/pyrex/spotfire/cabfile.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ispotfire -Ibuild/temp.linux-aarch64-cpython-311/pyrex/spotfire -I/usr/local/include/python3.11 -c spotfire/cabfile_helpers.c -o build/temp.linux-aarch64-cpython-311/spotfire/cabfile_helpers.o
      gcc -pthread -shared build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311/pyrex/spotfire/cabfile.o build/temp.linux-aarch64-cpython-311/spotfire/cabfile_helpers.o -L/usr/local/lib -o build/lib.linux-aarch64-cpython-311/spotfire/cabfile.cpython-311-aarch64-linux-gnu.so
      building 'spotfire.codesign' extension
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ibuild/temp.linux-aarch64-cpython-311/pyrex/spotfire -I/usr/local/include/python3.11 -c build/temp.linux-aarch64-cpython-311/pyrex/spotfire/codesign.c -o build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311/pyrex/spotfire/codesign.o
      gcc -pthread -shared build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311/pyrex/spotfire/codesign.o -L/usr/local/lib -o build/lib.linux-aarch64-cpython-311/spotfire/codesign.cpython-311-aarch64-linux-gnu.so
      building 'spotfire.sbdf' extension
      creating build/temp.linux-aarch64-cpython-311/vendor
      creating build/temp.linux-aarch64-cpython-311/vendor/sbdf-c
      creating build/temp.linux-aarch64-cpython-311/vendor/sbdf-c/src
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DSBDF_STATIC -Ispotfire -Ivendor/sbdf-c/include -I/tmp/pip-build-env-f512rcww/overlay/lib/python3.11/site-packages/numpy/core/include -Ibuild/temp.linux-aarch64-cpython-311/pyrex/spotfire -I/usr/local/include/python3.11 -c build/temp.linux-aarch64-cpython-311/pyrex/spotfire/sbdf.c -o build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311/pyrex/spotfire/sbdf.o
      build/temp.linux-aarch64-cpython-311/pyrex/spotfire/sbdf.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
          1 | #error Do not use this file, it is the result of a failed Cython compilation.
            |  ^~~~~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for spotfire
Failed to build spotfire
ERROR: Could not build wheels for spotfire, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions