bharadwaj-raju / TextSuggest

MOVED: https://gitlab.com/bharadwaj-raju/TextSuggest
https://gitlab.com/bharadwaj-raju/TextSuggest
GNU General Public License v3.0
241 stars 20 forks source link

__init__() got an unexpected keyword argument 'allow_abbrev' #47

Closed jjnilton closed 7 years ago

jjnilton commented 7 years ago

I'm trying to use TextSuggest in a different system now, the OS is Lubuntu 14.04, but when I try to use the textsuggest command I always get the error below:

$ rofi -v
Version: 0.15.11
$ xdotool --version
xdotool version 3.20140217.1
$ xsel --version
xsel version 1.2.0 by Conrad Parker <conrad@vergenet.net>
$ textsuggest --version (cloned today from repo)
Traceback (most recent call last):
  File "/usr/bin/textsuggest", line 59, in <module>
    - Full README: /usr/share/doc/textsuggest/README'''.replace('\t', '').replace('    ', ''))
TypeError: __init__() got an unexpected keyword argument 'allow_abbrev'
bharadwaj-raju commented 7 years ago

I suppose 14.04 has a too old Python version. allow_abbrev is a relatively recent feature.

Please upgrade Python.

jjnilton commented 7 years ago

@bharadwaj-raju that's right. Seems allow_abbrev is available from Python 3.5, and the version available in the Ubuntu repository is 3.4.2. Maybe it could be listed as a requirement.

$ python3 --version
Python 3.4.3

Thanks!

bharadwaj-raju commented 7 years ago

I'll update the README or better: just add a try-except clause to it.

bharadwaj-raju commented 7 years ago

Fixed as of commit 5548e2870198.