0

enter image description here

facing this error when trying to import hmmlearn.hmm. Any suggestion on resolve this?

the filepath '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/hmmlearn' has already these files.

enter image description here

But the error has a warning as

incompatible architecture (have 'x86_64', need 'arm64')

Any idea on how to resolve it?

  • Is this package supported on Apple M1? See also https://github.com/hmmlearn/hmmlearn/issues/475 – Nick ODell Nov 24 '22 at 16:11
  • When you installed the hmmlearn package, were you given a choice of Intel or M1 architecture? – John Gordon Nov 24 '22 at 16:12
  • i tried with `pip3 install --upgrade --user hmmlearn` only & there was no option to give the architecture type. However, surprisingly `import hmmlearn' shows no error only `import hmmlearn.hmm` that gives me the error. Any clue on how to resolve this? @nick-odell @john-gordon – nursatkakon Nov 24 '22 at 16:20
  • As others mentioned, the library is using a low level compiled module which is architecture dependent. The reason importing the main module does not throw any error is because it's just a list of modules and does not call any of the lower level APIs. Try using `hmmlearn.hmm` and you'll see it. Gotta check the package publisher to see if there is a proper version for your architecture. – anishtain4 Nov 24 '22 at 16:29

0 Answers0