Redfield-AB / PST-Nodes

Personal Storage Table Knime Nodes
https://hub.knime.com/redfield/extensions/ai.redfield.features.pst/latest
0 stars 0 forks source link

PST Extension installation failed on Windows and Mac OS #2

Open AbderrahimAl opened 2 months ago

AbderrahimAl commented 2 months ago

The extension was tested successfully both on Linux and Mac OS (intel processor). The issue is encountered when trying to install it in Windows and in Mac OS (M1).


× Building wheel for libpff-python (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      running bdist_wheel
      running build
      running build_ext
      configure:
      Building:
         libcerror support:                        local
         libcthreads support:                      local
         libcdata support:                         local
         libclocale support:                       local
         libcnotify support:                       local
         libcsplit support:                        local
         libuna support:                           local
         libcfile support:                         local
         libcpath support:                         local
         libbfio support:                          local
         libfcache support:                        local
         libfdata support:                         local
         libfdatetime support:                     local
         libfguid support:                         local
         libfvalue support:                        local
         libfwnt support:                          local
         libfmapi support:                         local
         DEFLATE compression support:              local

      Features:
         Multi-threading support:                  pthread
         Wide character type support:              no
         pfftools are build as static executables: no
         Python (pypff) support:                   no
         Verbose output:                           no
         Debug output:                             no

      building 'pypff' extension
      creating build
      creating build/temp.macosx-11.0-arm64-cpython-311
      creating build/temp.macosx-11.0-arm64-cpython-311/libbfio
      creating build/temp.macosx-11.0-arm64-cpython-311/libcdata
      creating build/temp.macosx-11.0-arm64-cpython-311/libcerror
      creating build/temp.macosx-11.0-arm64-cpython-311/libcfile
      creating build/temp.macosx-11.0-arm64-cpython-311/libclocale
      creating build/temp.macosx-11.0-arm64-cpython-311/libcnotify
      creating build/temp.macosx-11.0-arm64-cpython-311/libcpath
      creating build/temp.macosx-11.0-arm64-cpython-311/libcsplit
      creating build/temp.macosx-11.0-arm64-cpython-311/libcthreads
      creating build/temp.macosx-11.0-arm64-cpython-311/libfcache
      creating build/temp.macosx-11.0-arm64-cpython-311/libfdata
      creating build/temp.macosx-11.0-arm64-cpython-311/libfdatetime
      creating build/temp.macosx-11.0-arm64-cpython-311/libfguid
      creating build/temp.macosx-11.0-arm64-cpython-311/libfmapi
      creating build/temp.macosx-11.0-arm64-cpython-311/libfvalue
      creating build/temp.macosx-11.0-arm64-cpython-311/libfwnt
      creating build/temp.macosx-11.0-arm64-cpython-311/libpff
      creating build/temp.macosx-11.0-arm64-cpython-311/libuna
      creating build/temp.macosx-11.0-arm64-cpython-311/pypff
      clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Applications/KNIME 5.2.3.app/Contents/Eclipse/bundling/envs/ai_redfield_pst/include -arch arm64 -fPIC -O2 -isystem /Applications/KNIME 5.2.3.app/Contents/Eclipse/bundling/envs/ai_redfield_pst/include -arch arm64 -DHAVE_CONFIG_H= -Iinclude -Icommon -Ilibcerror -Ilibcthreads -Ilibcdata -Ilibclocale -Ilibcnotify -Ilibcsplit -Ilibuna -Ilibcfile -Ilibcpath -Ilibbfio -Ilibfcache -Ilibfdata -Ilibfdatetime -Ilibfguid -Ilibfvalue -Ilibfwnt -Ilibfmapi -Ilibpff "-I/Applications/KNIME 5.2.3.app/Contents/Eclipse/bundling/envs/ai_redfield_pst/include/python3.11" -c libbfio/libbfio_error.c -o build/temp.macosx-11.0-arm64-cpython-311/libbfio/libbfio_error.o
      clang: error: no such file or directory: '5.2.3.app/Contents/Eclipse/bundling/envs/ai_redfield_pst/include'
      clang: error: no such file or directory: '5.2.3.app/Contents/Eclipse/bundling/envs/ai_redfield_pst/include'
      error: command '/usr/bin/clang' 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 libpff-python
ERROR: Could not build wheels for libpff-python, which is required to install pyproject.toml-based projects
AbderrahimAl commented 1 month ago

Unfortunately, Building libpff-python library requires having C++ Built Tools installed. This issue was solved for Windows.