friendly-traceback / friendly

Friendly-traceback's version used in most situations
https://friendly-traceback.github.io/docs/index.html
MIT License
40 stars 5 forks source link

Installation issue - module not found #50

Closed ShalokShalom closed 1 year ago

ShalokShalom commented 1 year ago
python3 -m pip install friendly

Requirement already satisfied: friendly in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (0.7.21)
Requirement already satisfied: rich>=11 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly) (13.3.4)
Requirement already satisfied: friendly-styles>=0.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly) (0.2)
Requirement already satisfied: friendly-traceback>=0.7.43 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly) (0.7.61)
Requirement already satisfied: pygments>=2.6 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly) (2.15.0)
Requirement already satisfied: platformdirs in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly) (3.2.0)
Requirement already satisfied: pure-eval>=0.2.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly-traceback>=0.7.43->friendly) (0.2.2)
Requirement already satisfied: stack-data>=0.6.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly-traceback>=0.7.43->friendly) (0.6.2)
Requirement already satisfied: six>=1.16 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly-traceback>=0.7.43->friendly) (1.16.0)
Requirement already satisfied: executing>=1.1.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly-traceback>=0.7.43->friendly) (1.2.0)
Requirement already satisfied: asttokens>=2.0.4 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from friendly-traceback>=0.7.43->friendly) (2.2.1)
Requirement already satisfied: markdown-it-py<3.0.0,>=2.2.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from rich>=11->friendly) (2.2.0)
Requirement already satisfied: mdurl~=0.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from markdown-it-py<3.0.0,>=2.2.0->rich>=11->friendly) (0.1.2)

python3 -m -friendly test.py

/Library/Frameworks/Python.framework/Versions/3.10/bin/python3: No module named -friendly

macOS Monterey

aroberge commented 1 year ago

Remove the - before friendly.

Also, you can likely just type "friendly test.py" and it will likely work.

ShalokShalom commented 1 year ago

Actually, it works when I launch it without the dash:

python3 -m friendly test.py

I recommend to clear that in the documentation and the Readme. Its quite tricky to figure out how to call friendly in the first place.

And the currently shown way (with the dash) seems not to work.