Open maxsxu opened 6 years ago
IIRC this is caused by an invalid version of sqlparse. We should update mycli in Ubuntu but in the meantime I suggest you install mycli using pip. See: http://www.mycli.net/install
@meeuw Yeah, I don't know if we have anyone actively packing mycli for Ubuntu. @amjith, who used to help us with that?
I don't think anyone is doing it. Last time it was packaged by @lhw. But I don't think he's doing it anymore.
Hmm I've installed mycli in Ubuntu Xenial (from docker, ubuntu:xenial) and ran:
apt-get update
apt-get install mycli
And that seems to work. Could you check the version of python3-sqlparse? I'm using 0.1.18-1...
I use sqlparse 0.2.4
. So it's caused by the version of sqlparse. @meeuw
Debian package dependencies for sqlparse are >=0.2.2, <= 0.3.0. The only version in debian from stable to unstable is 0.2.2.
Also new versions of the packages are in my gits on salsa.debian.org: https://salsa.debian.org/lhw-guest/mycli https://salsa.debian.org/lhw-guest/pgcli
But both need the additional library you have added recently: https://salsa.debian.org/lhw-guest/cli_helpers
When that one is in debian I can upload the other clis again.
I instead vendorized the cli_helpers. pgcli and mycli are updated in unstable
Thank you!
🕺
I got the below error when I try to auto-complete the SQL command:
I install
mycli
viasudo apt install mycli
Below is my environment:
But i
mycli
works fine when I installmycli
viasudo pip3 install mycli
.