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

Standalone installation failed on Mac M1 #327

Open
hargup opened this issue Feb 17, 2022 · 4 comments
Open

Standalone installation failed on Mac M1 #327

hargup opened this issue Feb 17, 2022 · 4 comments

Comments

@hargup
Copy link

hargup commented Feb 17, 2022

Hi @chubin,
Thanks for the amazing project.

I tried the standalone installation of cheat.sh on my Mac M1 machine, it failed with the following error:

$cht.sh python read file
Traceback (most recent call last):
  File "/Users/harshgupta/.cheat.sh/lib/standalone.py", line 17, in <module>
    import cheat_wrapper
  File "/Users/harshgupta/.cheat.sh/lib/cheat_wrapper.py", line 14, in <module>
    from routing import get_answers, get_topics_list
  File "/Users/harshgupta/.cheat.sh/lib/routing.py", line 15, in <module>
    import adapter.cheat_sheets
  File "/Users/harshgupta/.cheat.sh/lib/adapter/__init__.py", line 18, in <module>
    from . import *
  File "/Users/harshgupta/.cheat.sh/lib/adapter/question.py", line 15, in <module>
    from polyglot.detect import Detector
  File "/Users/harshgupta/.cheat.sh/ve/lib/python3.8/site-packages/polyglot/detect/__init__.py", line 1, in <module>
    from .base import Detector, Language
  File "/Users/harshgupta/.cheat.sh/ve/lib/python3.8/site-packages/polyglot/detect/base.py", line 11, in <module>
    from icu import Locale
  File "/Users/harshgupta/.cheat.sh/ve/lib/python3.8/site-packages/icu/__init__.py", line 37, in <module>
    from ._icu_ import *
ImportError: dlopen(/Users/harshgupta/.cheat.sh/ve/lib/python3.8/site-packages/icu/_icu_.cpython-38-darwin.so, 2): Symbol not found: __ZN6icu_6918AnnualTimeZoneRule8MAX_YEARE
  Referenced from: /Users/harshgupta/.cheat.sh/ve/lib/python3.8/site-packages/icu/_icu_.cpython-38-darwin.so
  Expected in: flat namespace
 in /Users/harshgupta/.cheat.sh/ve/lib/python3.8/site-packages/icu/_icu_.cpython-38-darwin.so

Other information:

  • Python 3.8.5
  • virtualenv 20.13.1
@abitrolly
Copy link
Collaborator

Looks like one of cheat.sh dependencies -

doesn't work on M1.

@stupidanon
Copy link

Having this issue as well.

@TheCatster
Copy link

Standalone installation worked just fine for me on an M1 Pro.

@chubin
Copy link
Owner

chubin commented Apr 17, 2022

I added #336 for making PyICU and all multilingual features optional. It should help fix this issue

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

5 participants