enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 285 forks source link

pip install mayavi fails building wheel #1232

Closed sean-reed closed 1 year ago

sean-reed commented 1 year ago

Installing Mayavi with pip install mayavi gives the following error:

Building wheels for collected packages: mayavi
  Building wheel for mayavi (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for mayavi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [774 lines of output]
      <string>:13: DeprecationWarning:

        `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
        of the deprecation of `distutils` itself. It will be removed for
        Python >= 3.12. For older Python versions it will remain present.
        It is recommended to use `setuptools < 60.0` for those Python versions.
        For more details, see:
          https://numpy.org/devdocs/reference/distutils_status_migration.html

      running bdist_wheel
      running build
      Already built tvtk_classes.zip
      running config_cc
      INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
      running config_fc
      INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
      running build_src
      Already built tvtk_classes.zip
      INFO: build_src
      INFO: building extension "tvtk.array_ext" sources
      INFO: building data_files sources
      INFO: build_src: building npy-pkg config files
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/tvtk
      copying tvtk/class_tree.py -> build/lib.linux-x86_64-cpython-311/tvtk
      copying tvtk/code_gen.py -> build/lib.linux-x86_64-cpython-311/tvtk
 _[cut copying lines out of report]_
      copying mayavi/modules/ui/surface.py -> build/lib.linux-x86_64-cpython-311/mayavi/modules/ui
      copying mayavi/modules/ui/iso_surface.py -> build/lib.linux-x86_64-cpython-311/mayavi/modules/ui
      copying mayavi/modules/ui/__init__.py -> build/lib.linux-x86_64-cpython-311/mayavi/modules/ui
      running build_ext
      INFO: customize UnixCCompiler
      INFO: customize UnixCCompiler using build_ext
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-march=native)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      creating /tmp/tmpl1oc9yxc/tmp
      creating /tmp/tmpl1oc9yxc/tmp/pip-build-env-8z8qeyms
      creating /tmp/tmpl1oc9yxc/tmp/pip-build-env-8z8qeyms/overlay
      creating /tmp/tmpl1oc9yxc/tmp/pip-build-env-8z8qeyms/overlay/lib
      creating /tmp/tmpl1oc9yxc/tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11
      creating /tmp/tmpl1oc9yxc/tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages
      creating /tmp/tmpl1oc9yxc/tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy
      creating /tmp/tmpl1oc9yxc/tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy/distutils
      creating /tmp/tmpl1oc9yxc/tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy/distutils/checks
      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-march=native'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-O3)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-O3'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-Werror)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-Werror'
      INFO: CCompilerOpt.__init__[1782] : check requested baseline
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-msse)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-msse2)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse2'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE2' with flags (-msse -msse2)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -Werror'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE' with flags (-msse -msse2)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-msse3)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse3'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE3' with flags (-msse -msse2 -msse3)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -Werror'
      INFO: CCompilerOpt.__init__[1791] : check requested dispatch-able features
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mssse3)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mssse3'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-msse4.1)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse4.1'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mpopcnt)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mpopcnt'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-msse4.2)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse4.2'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mf16c)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mf16c'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mfma)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mfma'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'FMA3' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -Werror'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'F16C' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -Werror'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE41' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -Werror'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSE42' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -Werror'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'SSSE3' with flags (-msse -msse2 -msse3 -mssse3)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx2)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx2'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX2' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2 -Werror'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -Werror'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'POPCNT' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx512f -mno-mmx)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx512f -mno-mmx'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512F' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx512cd)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx512cd'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512CD' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx512vl -mavx512bw -mavx512dq)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx512vl -mavx512bw -mavx512dq'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_SKX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx512vnni)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx512vnni'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_CLX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx512ifma -mavx512vbmi)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx512ifma -mavx512vbmi'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_CNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_ICL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx512er -mavx512pf)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx512er -mavx512pf'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_KNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -Werror'
      INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq'
      INFO: CCompilerOpt.feature_test[1547] : testing feature 'AVX512_KNM' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq -Werror'
      INFO: CCompilerOpt.__init__[1803] : skip features (SSE SSE2 SSE3) since its part of baseline
      INFO: CCompilerOpt.__init__[1807] : initialize targets groups
      INFO: CCompilerOpt.__init__[1809] : parse target group simd_test
      INFO: CCompilerOpt._parse_target_tokens[2020] : skip targets (NEON VSX3 VSX XOP VX VXE2 ASIMD VSX4 VSX2 VXE FMA4) not part of baseline or dispatch-able features
      INFO: CCompilerOpt._parse_policy_not_keepbase[2132] : skip baseline features (SSE2)
      INFO: CCompilerOpt.generate_dispatch_header[2353] : generate CPU dispatch header: (build/src.linux-x86_64-3.11/numpy/distutils/include/npy_cpu_dispatch_config.h)
      WARN: CCompilerOpt.generate_dispatch_header[2362] : dispatch header dir build/src.linux-x86_64-3.11/numpy/distutils/include does not exist, creating it
      INFO: CCompilerOpt.feature_extra_checks[1627] : Testing extra checks for feature 'AVX512F' (AVX512F_REDUCE)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -Werror'
      INFO: CCompilerOpt.feature_extra_checks[1627] : Testing extra checks for feature 'AVX512_SKX' (AVX512BW_MASK AVX512DQ_MASK)
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      INFO: compile options: '-I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      INFO: building 'tvtk.array_ext' extension
      INFO: compiling C sources
      INFO: C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      creating build/temp.linux-x86_64-cpython-311/tvtk
      creating build/temp.linux-x86_64-cpython-311/tvtk/src
      INFO: compile options: '-I/tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.11/numpy/distutils/include -I/usr/local/include/python3.11 -c'
      extra options: '-msse -msse2 -msse3'
      INFO: gcc: tvtk/src/array_ext.c
      In file included from /tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
                       from /tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                       from /tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                       from tvtk/src/array_ext.c:223:
      /tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
         17 | #warning "Using deprecated NumPy API, disable it with " \
            |  ^~~~~~~
      tvtk/src/array_ext.c: In function ‘__Pyx_ParseOptionalKeywords’:
      tvtk/src/array_ext.c:1566:21: warning: ‘PyUnicode_GET_SIZE’ is deprecated [-Wdeprecated-declarations]
       1566 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/local/include/python3.11/unicodeobject.h:1042,
                       from /usr/local/include/python3.11/Python.h:51,
                       from tvtk/src/array_ext.c:4:
      /usr/local/include/python3.11/cpython/unicodeobject.h:652:26: note: declared here
        652 | static inline Py_ssize_t PyUnicode_GET_SIZE(PyObject *op)
            |                          ^~~~~~~~~~~~~~~~~~
      tvtk/src/array_ext.c:1566:21: warning: ‘PyUnicode_GET_SIZE’ is deprecated [-Wdeprecated-declarations]
       1566 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/local/include/python3.11/unicodeobject.h:1042,
                       from /usr/local/include/python3.11/Python.h:51,
                       from tvtk/src/array_ext.c:4:
      /usr/local/include/python3.11/cpython/unicodeobject.h:652:26: note: declared here
        652 | static inline Py_ssize_t PyUnicode_GET_SIZE(PyObject *op)
            |                          ^~~~~~~~~~~~~~~~~~
      tvtk/src/array_ext.c:1580:25: warning: ‘PyUnicode_GET_SIZE’ is deprecated [-Wdeprecated-declarations]
       1580 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/local/include/python3.11/unicodeobject.h:1042,
                       from /usr/local/include/python3.11/Python.h:51,
                       from tvtk/src/array_ext.c:4:
      /usr/local/include/python3.11/cpython/unicodeobject.h:652:26: note: declared here
        652 | static inline Py_ssize_t PyUnicode_GET_SIZE(PyObject *op)
            |                          ^~~~~~~~~~~~~~~~~~
      tvtk/src/array_ext.c:1580:25: warning: ‘PyUnicode_GET_SIZE’ is deprecated [-Wdeprecated-declarations]
       1580 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/local/include/python3.11/unicodeobject.h:1042,
                       from /usr/local/include/python3.11/Python.h:51,
                       from tvtk/src/array_ext.c:4:
      /usr/local/include/python3.11/cpython/unicodeobject.h:652:26: note: declared here
        652 | static inline Py_ssize_t PyUnicode_GET_SIZE(PyObject *op)
            |                          ^~~~~~~~~~~~~~~~~~
      tvtk/src/array_ext.c: In function ‘__Pyx_AddTraceback’:
      tvtk/src/array_ext.c:2329:9: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion]
       2329 |         __pyx_lineno,   /*int firstlineno,*/
            |         ^~~~~~~~~~~~
            |         |
            |         int
      In file included from /usr/local/include/python3.11/Python.h:71,
                       from tvtk/src/array_ext.c:4:
      /usr/local/include/python3.11/cpython/code.h:151:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
        151 |         PyObject *, PyObject *, PyObject *, int, PyObject *,
            |                                 ^~~~~~~~~~
      tvtk/src/array_ext.c:2330:9: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion]
       2330 |         __pyx_empty_bytes  /*PyObject *lnotab*/
            |         ^~~~~~~~~~~~~~~~~
            |         |
            |         PyObject * {aka struct _object *}
      In file included from /usr/local/include/python3.11/Python.h:71,
                       from tvtk/src/array_ext.c:4:
      /usr/local/include/python3.11/cpython/code.h:151:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’}
        151 |         PyObject *, PyObject *, PyObject *, int, PyObject *,
            |                                             ^~~
      tvtk/src/array_ext.c:2313:15: error: too few arguments to function ‘PyCode_New’
       2313 |     py_code = PyCode_New(
            |               ^~~~~~~~~~
      In file included from /usr/local/include/python3.11/Python.h:71,
                       from tvtk/src/array_ext.c:4:
      /usr/local/include/python3.11/cpython/code.h:148:28: note: declared here
        148 | PyAPI_FUNC(PyCodeObject *) PyCode_New(
            |                            ^~~~~~~~~~
      tvtk/src/array_ext.c:2340:13: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
       2340 |     py_frame->f_lineno = __pyx_lineno;
            |             ^~
      error: Command "gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-env-8z8qeyms/overlay/lib/python3.11/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.11/numpy/distutils/include -I/usr/local/include/python3.11 -c tvtk/src/array_ext.c -o build/temp.linux-x86_64-cpython-311/tvtk/src/array_ext.o -MMD -MF build/temp.linux-x86_64-cpython-311/tvtk/src/array_ext.o.d -msse -msse2 -msse3" failed with exit status 1
      INFO:
      ########### EXT COMPILER OPTIMIZATION ###########
      INFO: Platform      :
        Architecture: x64
        Compiler    : gcc

      CPU baseline  :
        Requested   : 'min'
        Enabled     : SSE SSE2 SSE3
        Flags       : -msse -msse2 -msse3
        Extra checks: none

      CPU dispatch  :
        Requested   : 'max -xop -fma4'
        Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
        Generated   : none
      INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/pip-install-5x9b9mri/mayavi_adedf0155b0446c7a9a4bff55778b96b/build/temp.linux-x86_64-cpython-311/ccompiler_opt_cache_ext.py
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mayavi
Failed to build mayavi
ERROR: Could not build wheels for mayavi, which is required to install pyproject.toml-based projects

I am running the install command on a Debian based Python 3.11 container (mcr.microsoft.com/devcontainers/python:0-3.11).

githubfrond commented 1 year ago

Same error here! Despite attempting to install into a clean Windows 10 miniconda environment. Recommendations online were to use older Numpy versions, which forced me to use older Pandas, and older Python. Ended up installing Numpy v1.22.3, Pandas v1.3.5, and Python v3.7 before finally getting Mayavi to install. Subsequently fails to execute code because of various version difficulties. Happy to supply further details if needed.

prabhuramachandran commented 1 year ago

Sorry for slow responses, it has been a busy semester. I will be taking a look and will try to push a fix tonight or in the next couple of days.

prabhuramachandran commented 1 year ago

I've pushed a fix in #1233 but that may take a little while to merge as there are other unrelated issues, in the meanwhile you can try it out if you want from my branch here: https://github.com/prabhuramachandran/mayavi/tree/fix-vtk-9.2.6-issues

prabhuramachandran commented 1 year ago

I've merged #1199 instead which fixes the issue nicely. Could you please try with master or with this:

$ pip install https://github.com/enthought/mayavi/zipball/master
githubfrond commented 1 year ago

Hey @prabhuramachandran, that installed fine into a clean miniconda env. I've only tested with running mayavi2 at the terminal, but seems ok. Thanks.

githubfrond commented 1 year ago

Being a bit of a newbie though, that didn't seem to install to the environment. It looks like it may have installed directly into the Python/Scripts area of my main Python distro, or at least mayavi2.exe did. It's not on any listing in the environment. Anyway, I don't want to bother you with newbie queries, but definitely this is not a desirable outcome. I'll try again with the pip installs to the conda environment to see if it works, but would be great to back out any changes I've made to Python outside the environment.

githubfrond commented 1 year ago

Ok, so, still same error when using 'pip install mayavi' ... and since I don't know how to install that tarball just to the environment I want it in, I can't check if I can use mayavi modules from the Python program. Sorry I'm not experienced enough to test all this, or understand all the various configurations I need to change.

sean-reed commented 1 year ago

Hi @prabhuramachandran thanks for looking into this and pushing a fix! I tried

$ pip install https://github.com/enthought/mayavi/zipball/master

and initially got the following error:

Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [69 lines of output]
      <string>:13: DeprecationWarning:

        `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
        of the deprecation of `distutils` itself. It will be removed for
        Python >= 3.12. For older Python versions it will remain present.
        It is recommended to use `setuptools < 60.0` for those Python versions.
        For more details, see:
          https://numpy.org/devdocs/reference/distutils_status_migration.html

      running egg_info
      running build_src
      Building tvtk_classes.zip
      Traceback (most recent call last):
        File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 432, in <module>
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/numpy/distutils/core.py", line 169, in setup
          return old_setup(**new_attr)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/numpy/distutils/command/egg_info.py", line 24, in run
          self.run_command("build_src")
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 299, in run
        File "<string>", line 273, in build_tvtk_classes_zip
        File "/tmp/pip-req-build-qv9wj0ph/tvtk/setup.py", line 82, in gen_tvtk_classes_zip
          from tvtk.code_gen import TVTKGenerator
        File "/tmp/pip-req-build-qv9wj0ph/tvtk/code_gen.py", line 30, in <module>
          from .common import get_tvtk_name, camel2enthought
        File "/tmp/pip-req-build-qv9wj0ph/tvtk/common.py", line 10, in <module>
          import vtk
        File "/tmp/pip-build-env-yz04veer/overlay/lib/python3.11/site-packages/vtk.py", line 5, in <module>
          from vtkmodules.vtkWebCore import *
      ImportError: libGL.so.1: cannot open shared object file: No such file or directory

However, I was able to resolve it by installing the missing dependency: apt-get install libgl1-mesa-gl

and then it installed without any errors. Thanks again.

alexisjawtu commented 1 year ago

Thank you. I encountered the same error on Mac and this $ pip install https://github.com/enthought/mayavi/zipball/master seemed to work well up to now.