SAP-samples / hana-ml-samples

This project provides code examples for SAP HANA Predictive and Machine Learning scenarios and is educational content. It covers simple Predictive Analysis Library SQL examples as well as complete SAP HANA design-time “ML scenario”-application content or HANA-ML Python Notebook examples.
Apache License 2.0
90 stars 58 forks source link

not able to install hana-ml and hdbcli on new macbook pro m1 chip aarch64 architecture #19

Open rohtash opened 2 years ago

rohtash commented 2 years ago

ERROR: Could not find a version that satisfies the requirement hdbcli (from versions: none) ERROR: No matching distribution found for hdbcli

ERROR: Could not find a version that satisfies the requirement hana-ml (from versions: none) ERROR: No matching distribution found for hana-ml

pawelwiejkut commented 2 years ago

I have the same issue. It also can't be installed from .tar.gz:

Installing collected packages: hdbcli
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  Running setup.py install for hdbcli ... error
  error: subprocess-exited-with-error

  × Running setup.py install for hdbcli did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      running install
      /opt/homebrew/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build/lib.macosx-12-arm64-3.9
      creating build/lib.macosx-12-arm64-3.9/hdbcli
      copying hdbcli/dbapi.py -> build/lib.macosx-12-arm64-3.9/hdbcli
      copying hdbcli/__init__.py -> build/lib.macosx-12-arm64-3.9/hdbcli
      copying hdbcli/resultrow.py -> build/lib.macosx-12-arm64-3.9/hdbcli
      running build_ext
      error: This hdbcli installer is not compatible with your Python interpreter
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> hdbcli

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
mkemeter commented 2 years ago

As a workaround you can use Apple Rosetta to run the binaries. Check this blog for more information.