Giter Club home page Giter Club logo

Comments (5)

abitrolly avatar abitrolly commented on May 24, 2024

I am not on Mac, so.. when this happens and what do you see?

from cheat.sh.

hackdefendr avatar hackdefendr commented on May 24, 2024

Initially I see an error about python not existing, I guessed it meant the symlink to the Python2 binary. I tried to fix this by creating the symlink pointing to the Python3 binary. Then I tried again and got the crash with icu, which #368 works around.

I did manage to compile ICU 72 on my M1 Mac, but cht.sh still crashes when it tries to pull down the cheat sheets from the repository. Here is the full output minus the Test output:

macbookpro:~ jsingleton$ cht.sh --standalone-install
Where should cheat.sh be installed [/Users/jsingleton/.cheat.sh]?

>> Cloning cheat.sh locally
Cloning into '/Users/jsingleton/.cheat.sh'...
remote: Enumerating objects: 3785, done.
remote: Counting objects: 100% (248/248), done.
remote: Compressing objects: 100% (122/122), done.
remote: Total 3785 (delta 136), reused 211 (delta 123), pack-reused 3537
Receiving objects: 100% (3785/3785), 4.46 MiB | 7.20 MiB/s, done.
Resolving deltas: 100% (2363/2363), done.

>> Creating virtual environment
created virtual environment CPython3.11.0.final.0-64 in 203ms
  creator CPython3Posix(dest=/Users/jsingleton/.cheat.sh/ve, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/jsingleton/Library/Application Support/virtualenv)
    added seed packages: pip==22.3.1, setuptools==65.6.3, wheel==0.38.4
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

>> Installing python requirements into the virtual environment
      40 dependencies were successfully installed

>> Fetching the upstream cheat sheets repositories
Traceback (most recent call last):
  File "/Users/jsingleton/.cheat.sh/lib/fetch.py", line 22, in <module>
    import adapter
  File "/Users/jsingleton/.cheat.sh/lib/adapter/__init__.py", line 18, in <module>
    from . import *
  File "/Users/jsingleton/.cheat.sh/lib/adapter/question.py", line 15, in <module>
    from polyglot.detect import Detector
  File "/Users/jsingleton/.cheat.sh/ve/lib/python3.11/site-packages/polyglot/detect/__init__.py", line 1, in <module>
    from .base import Detector, Language
  File "/Users/jsingleton/.cheat.sh/ve/lib/python3.11/site-packages/polyglot/detect/base.py", line 11, in <module>
    from icu import Locale
  File "/Users/jsingleton/.cheat.sh/ve/lib/python3.11/site-packages/icu/__init__.py", line 37, in <module>
    from ._icu_ import *
ImportError: dlopen(/Users/jsingleton/.cheat.sh/ve/lib/python3.11/site-packages/icu/_icu_.cpython-311-darwin.so, 0x0002): Library not loaded: libicui18n.72.dylib
  Referenced from: <A6EB7F0C-706E-39CC-88C4-96B8B8B3B4BD> /Users/jsingleton/.cheat.sh/ve/lib/python3.11/site-packages/icu/_icu_.cpython-311-darwin.so
  Reason: tried: 'libicui18n.72.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibicui18n.72.dylib' (no such file), 'libicui18n.72.dylib' (no such file), '/usr/local/lib/libicui18n.72.dylib' (no such file), '/usr/lib/libicui18n.72.dylib' (no such file, not in dyld cache), '/Users/jsingleton/.cheat.sh/libicui18n.72.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/jsingleton/.cheat.sh/libicui18n.72.dylib' (no such file), '/Users/jsingleton/.cheat.sh/libicui18n.72.dylib' (no such file), '/usr/local/lib/libicui18n.72.dylib' (no such file), '/usr/lib/libicui18n.72.dylib' (no such file, not in dyld cache)

>> Running self-tests
...

Question, are there hardcoded paths in cht.sh? If yes, /opt/homebrew/{bin,sbin} should be added for M1/M2 Macs running HomeBrew.

Thanks for looking at this. I'm here to test and provide logs for the M1/M2 Mac support.

from cheat.sh.

abitrolly avatar abitrolly commented on May 24, 2024

Wow. I can just remove comments here. Nice. :D Well, not really, but whatever.

from cheat.sh.

abitrolly avatar abitrolly commented on May 24, 2024

@hackdefendr try this route #372 - should get rid of the ICU.

from cheat.sh.

hackdefendr avatar hackdefendr commented on May 24, 2024

Hi hi,
I just am getting to this. Let me pull that branch and see how it goes.
I will update this comment with details.

UPDATE

➜  ~ curl localhost:8002
      _                _         _    __
  ___| |__   ___  __ _| |_   ___| |__ \ \      The only cheat sheet you need
 / __| '_ \ / _ \/ _` | __| / __| '_ \ \ \     Unified access to the best
| (__| | | |  __/ (_| | |_ _\__ \ | | |/ /     community driven documentation
 \___|_| |_|\___|\__,_|\__(_)___/_| |_/_/      repositories of the world

+------------------------+ +------------------------+ +------------------------+
| $ curl cheat.sh/ls     | | $ cht.sh btrfs         | | $ cht.sh lua/:learn    |
| $ curl cht.sh/btrfs    | | $ cht.sh tar~list      | | Learn any* programming |
| $ curl cht.sh/tar~list | |                        | | language not leaving   |
| $ curl https://cht.sh  | |                        | | your shell             |
|                        | |                        | | *) any of 60           |
|                        | |                        | |                        |
+-- queries with curl ---+ +- own optional client --+ +- learn, learn, learn! -+
+------------------------+ +------------------------+ +------------------------+
| $ cht.sh go/f<tab><tab>| | $ cht.sh --shell       | | $ cht.sh go zip lists  |
| go/for   go/func       | | cht.sh> help           | | Ask any question using |
| $ cht.sh go/for        | | ...                    | | cht.sh or curl cht.sh: |
| ...                    | |                        | | /go/zip+lists          |
|                        | |                        | | (use /,+ when curling) |
|                        | |                        | |                        |
+---- TAB-completion ----+ +-- interactive shell ---+ +- programming questions-+
+------------------------+ +------------------------+ +------------------------+
| $ curl cht.sh/:help    | | $ vim prg.py           | | $ time curl cht.sh/    |
| see /:help and /:intro | | ...                    | | ...                    |
| for usage information  | | zip lists _            | | real    0m0.075s       |
| and README.md on GitHub| | <leader>KK             | |                        |
| for the details        | |             *awesome*  | |                        |
|            *start here*| |                        | |                        |
+--- self-documented ----+ +- queries from editor! -+ +---- instant answers ---+

[Follow @igor_chubin for updates][github.com/chubin/cheat.sh]

from cheat.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.