Package Details: mycli 1.29.2-1

Git Clone URL: https://aur.archlinux.org/mycli.git (read-only, click to copy)
Package Base: mycli
Description: A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting
Upstream URL: https://github.com/dbcli/mycli
Keywords: cli mariadb mysql
Licenses: BSD
Submitter: aabmass
Maintainer: loonies
Last Packager: loonies
Votes: 47
Popularity: 0.85
First Submitted: 2015-08-05 15:33 (UTC)
Last Updated: 2025-01-17 11:13 (UTC)

Pinned Comments

loonies commented on 2019-12-06 11:43 (UTC) (edited on 2024-12-31 08:15 (UTC) by loonies)

Prior to flagging the package out-of-date or reporting build errors please:

  • Make sure that your system is up-to-date (pacman -Syu)
  • Rebuild and reinstall dependencies (especially ones from AUR)
  • Rebuild and reinstall the package

Do not expect AUR packages to trigger rebuild or suggest bumping pkgrel number. This is expected behaviour and the way Arch packing is designed to work.

For more information read the official documentation and man pages.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

enkeyz commented on 2022-05-09 12:43 (UTC)

Can't install, because python-cli_helpers is no longer available: https://aur.archlinux.org/packages/python-cli_helpers

ishaanbhimwal commented on 2022-04-05 15:26 (UTC)

@sp-merrow

File "/usr/lib/python3.10/site-packages/mycli/main.py", line 1057, in get_reserved_space _, height = click.get_terminal_size() AttributeError: module 'click' has no attribute 'get_terminal_size'

This was fixed recently. See https://github.com/dbcli/mycli/pull/1042. Consider replacing mycli with mycli-git available in the AUR.

sp-merrow commented on 2022-03-30 00:53 (UTC)

Crashes on startup. Gives the following traceback:

Traceback (most recent call last): File "/usr/bin/mycli", line 33, in <module> sys.exit(load_entry_point('mycli==1.24.3', 'console_scripts', 'mycli')()) File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(args, **kwargs) File "/usr/lib/python3.10/site-packages/mycli/main.py", line 1296, in cli mycli.run_cli() File "/usr/lib/python3.10/site-packages/mycli/main.py", line 808, in run_cli reserve_space_for_menu=self.get_reserved_space(), File "/usr/lib/python3.10/site-packages/mycli/main.py", line 1057, in get_reserved_space _, height = click.get_terminal_size() AttributeError: module 'click' has no attribute 'get_terminal_size'

My currently installed Python version is 3.10.4-1

SZanko commented on 2021-02-04 18:58 (UTC)

cli helpers package https://aur.archlinux.org/packages/python-cli_helpers/ was updated 4 days ago

loonies commented on 2021-01-24 17:37 (UTC)

Waiting for https://aur.archlinux.org/packages/python-cli_helpers/ (dependency) update.

SZanko commented on 2021-01-14 20:45 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index bcace65..6a01533 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,11 @@
 # Maintainer: Miodrag Tokić
 # Contributor: Yuanji <self@gimo.me>
 # Contributor: Aaron Abbott <aabmass at gmail dot com>
+# Contributor: Stefan Zanko szanko at protonmail dot com

 pkgname=mycli
-pkgver=1.22.2
-pkgrel=2
+pkgver=1.23.0
+pkgrel=1
 pkgdesc='A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting'
 arch=('any')
 url='https://github.com/dbcli/mycli'
@@ -19,6 +20,7 @@ depends=(
     'python-pymysql'
     'python-sqlparse'
     'python-cli_helpers'
+       'python-pyperclip'
 )
 makedepends=('python-setuptools')
 optdepends=('python-paramiko: SSH support')
@@ -26,16 +28,16 @@ options=(!emptydirs)

 source=(
     "$pkgname-$pkgver.tar.gz::https://github.com/dbcli/mycli/archive/v${pkgver}.tar.gz"
-    "completion_engine.py.patch"
+    #"completion_engine.py.patch"
 )
 sha256sums=(
-    '4427442cf3e66ebbbb480bc5112bdf7e0432c70645f320313e2e0dbf0ae147fb'
-    '33f3e60abfe68bc7375dacead9676b3cc4920e1d16c7b57dcf5f474c0c3e6aad'
+    '8c2efa716f994ac0ffb9e21da59c4696754b201d823b61cd63f2948c1bbd702c'
+    #'33f3e60abfe68bc7375dacead9676b3cc4920e1d16c7b57dcf5f474c0c3e6aad'
 )

 prepare() {
     cd "$srcdir/$pkgname-$pkgver"
-    patch -N -p1 -i "$srcdir/completion_engine.py.patch"
+    #patch -N -p1 -i "$srcdir/completion_engine.py.patch"
 }

 build() {

loonies commented on 2020-10-24 21:16 (UTC)

sqlparse 4.0 compatibility fixed. Thanks @mtorromeo

cmonkey commented on 2020-10-10 02:10 (UTC)

mycli -P 3306 -u root -h 127.0.0.1
Traceback (most recent call last):
File "/bin/mycli", line 33, in <module>
sys.exit(load_entry_point('mycli==1.22.1', 'console_scripts', 'mycli')())
File "/bin/mycli", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3.8/site-packages/mycli/main.py", line 39, in <module>
from .sqlcompleter import SQLCompleter
File "/usr/lib/python3.8/site-packages/mycli/sqlcompleter.py", line 7, in <module>
from .packages.completion_engine import suggest_type
File "/usr/lib/python3.8/site-packages/mycli/packages/completion_engine.py", line 5, in <module>
from sqlparse.compat import text_type ModuleNotFoundError: No module named 'sqlparse.compat'

mycli 1.22.1-1

mtorromeo commented on 2020-10-08 08:09 (UTC)

I've opened a pull request upstream to fix the incompatibility with sqlparse 0.4, you might want to backport the patch: https://patch-diff.githubusercontent.com/raw/dbcli/mycli/pull/900.patch