Comments (5)
I am not on Mac, so.. when this happens and what do you see?
from cheat.sh.
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.
Wow. I can just remove comments here. Nice. :D Well, not really, but whatever.
from cheat.sh.
@hackdefendr try this route #372 - should get rid of the ICU.
from cheat.sh.
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)
- 500 Internal Server Error when send request to https://cht.sh/:shell-x/ HOT 14
- 500 internal server error HOT 2
- When we ask to write javascript code, It just uses npm library in code, But does not mention it HOT 2
- Hehe
- https://github.com/makerdao/dss/blob/master/src/test/clip.t.sol#L20
- Error installing using pip on windows 10 HOT 2
- Manpage for cht.sh (command line client)
- Open in less if output is too long
- cheat.sh and cht.sh are down HOT 3
- Block this WhatsApp number 739963934 HOT 1
- Block this WhatsApp number 739963934 HOT 2
- [email protected] HOT 1
- حظر حسبي وتس وشكرا الحساب 7/3/99/63/934/
- fsharp examples
- Omit :list from ~search
- Support setting history file location with env variable
- I made a (bash & fish) shell function and alias to use cheat.sh without having to install it. HOT 4
- Cht.sh is down 🤯 HOT 2
- docker ImportError: cannot import name '_plain_int' from 'werkzeug._internal' (/usr/lib/python3.9/site-packages/werkzeug/_internal.py) and seek advice
- raw html in terminal when user-agent is set
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheat.sh.