mycli icon indicating copy to clipboard operation
mycli copied to clipboard

'less' is not recognized as an internal or external command,

Open claws99 opened this issue 3 years ago • 4 comments

Hello I've installed this program using pip install mycli. All the commands are working fine, but none of the data (tables, databases, are being displayed on the screen).

Rather I keep getting the error: 'less' is not recognized as an internal or external command, operable program or batch file.

image

claws99 avatar Sep 17 '22 09:09 claws99

Yes, it seems that 'less' is required for the actual results to show. I suppose it'd be nice if there was a fallback option of just outputting the data without a pager, but in the meanwhile you can solve the problem by installing less (I installed it myself via chocolatey install less).

jbusk avatar Sep 20 '22 17:09 jbusk

you can use git bash shell instead

MarvinXu avatar Sep 26 '22 09:09 MarvinXu

You can install less from this site: https://gnuwin32.sourceforge.net/packages/less.htm. And append less path into the windows SysPath. Make sure the command 'less' works

ThinkingAgain avatar Oct 17 '22 09:10 ThinkingAgain

You need to install less. I used scoop to install it via scoop install less and that's pretty much all I had to do. Probably the easiest way to fix this. Although it should just be installed along with mycli imo.

Ravencentric avatar Dec 13 '22 19:12 Ravencentric