Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
3.1k stars 77 forks source link

No lexer fo csv #66

Closed bhintze closed 2 years ago

bhintze commented 2 years ago

Hi all,

I can't seem to remedy this. I uninstalled/reinstalled and get the same thing. Any help would be greatly appreciated.

> rich try.csv
unable to read try.csv: no lexer for filename 'try.csv' found

Thanks!!

willmcgugan commented 2 years ago

What platform?

You definitely have an old version.

What does rich -v give you?

bhintze commented 2 years ago
> rich -v
Usage: rich [OPTIONS] <PATH or TEXT or '-'>
Try 'rich --help' for help.

Error: No such option: -v

> lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04

I guess pip didn't update it as expected. I rarely use python locallly. It's still 3.6. Is that the issue? If so, is there other installation options for debian other than pip?

harkabeeparolus commented 2 years ago

I guess pip didn't update it as expected. I rarely use python locallly. It's still 3.6. Is that the issue? If so, is there other installation options for debian other than pip?

If you're installing command line utilities written in Python, such as rich-cli, the recommended install method is Pipx: https://pypa.github.io/pipx/

Just follow the Pipx installation guide, then type pipx install rich-cli.

Upgrading to a supported Python version sounds more like a question about Debian or Ubuntu package management than a question about Rich.

bhintze commented 2 years ago

Thanks. I am a wierdo who doesn't like to touch the local configuration due to completely irrational sanitation concerns. I just installed it in my Docker container — I develope there aneway.