Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with running Suprise on M1 mac #458

Open
kauuu opened this issue Jan 13, 2023 · 1 comment
Open

Issues with running Suprise on M1 mac #458

kauuu opened this issue Jan 13, 2023 · 1 comment

Comments

@kauuu
Copy link

kauuu commented Jan 13, 2023

Description

So I tried importing surprise and I got an error that seems to be specific to m1 macs. The error message:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-126-dfdd90dd20f8> in <module>
----> 1 from surprise import Dataset, SVD

~/opt/anaconda3/lib/python3.8/site-packages/surprise/__init__.py in <module>
      6 from .dataset import Dataset
      7 
----> 8 from .prediction_algorithms import (
      9     AlgoBase,
     10     BaselineOnly,

~/opt/anaconda3/lib/python3.8/site-packages/surprise/prediction_algorithms/__init__.py in <module>
     21 """
     22 
---> 23 from .algo_base import AlgoBase
     24 from .baseline_only import BaselineOnly
     25 from .co_clustering import CoClustering

~/opt/anaconda3/lib/python3.8/site-packages/surprise/prediction_algorithms/algo_base.py in <module>
      6 import heapq
      7 
----> 8 from .. import similarities as sims
      9 from .optimize_baselines import baseline_als, baseline_sgd
     10 from .predictions import Prediction, PredictionImpossible

ImportError: dlopen(/Users/kaushikk/opt/anaconda3/lib/python3.8/site-packages/surprise/similarities.cpython-38-darwin.so, 0x0002): tried: '/Users/kaushikk/opt/anaconda3/lib/python3.8/site-packages/surprise/similarities.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have (arm64), need (x86_64)))

Steps/Code to Reproduce

This was my only line of code:
from surprise import Dataset, SVD

Expected Results

I expect it to import ig? lmao

Actual Results

error thrown that has something to do with the similarities module.

Versions

macOS-10.16-x86_64-i386-64bit
Python 3.8.3 (default, Jul  2 2020, 11:26:31) 
[Clang 10.0.0 ]

This also didn't run completely and threw the same error

@privilegemendes
Copy link

privilegemendes commented Feb 20, 2023

Same issue experienced here,

Versions

macOS-10.16-x86_64-i386-64bit Python 3.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants