Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3381  / 2 Years ago, fri, october 21, 2022, 10:43:06

I found this Linux Journal article and really would like to get gcalcli working on my PC.
I tried both installing from source, as per article and from Ubuntu repository sudo apt-get install gcalcli. Either way I get the same Traceback by running $ gcalcli in terminal



Traceback (most recent call last):
File "/usr/local/bin/gcalcli", line 369, in <module>
class gcalcli:
File "/usr/local/bin/gcalcli", line 388, in gcalcli
dateParser = DateTimeParser()
File "/usr/local/bin/gcalcli", line 321, in __init__
self.pdtCalendar = parsedatetime.Calendar()
File "/usr/lib/python2.7/dist-packages/parsedatetime/__init__.py", line 216, in __init__
self.ptc = Constants()
File "/usr/lib/python2.7/dist-packages/parsedatetime/__init__.py", line 1733, in __init__
self.locale = pdtLocales['icu'](self.localeID)
File "/usr/lib/python2.7/dist-packages/parsedatetime/pdt_locales.py", line 151, in __init__
self.icu = pyicu.Locale(localeID)
icu.InvalidArgsError: (<type 'icu.Locale'>, '__init__', (None,))


This is another good article, essentially the same as previous one. I tried all the steps and nothing.



I also did get another error during my attempts ERROR: Missing module - cannot import name __version__ but resolved it with $ easy_install --upgrade google-api-python-client which got me back to original Traceback


More From » 14.04

 Answers
0

gcalcli is using a Python library (parsedatetime) that is out of date in 14.04, I found the solution in this bug report:





So basically we need to upgrade python-parsedatetime, you can either do this with pip if this is your preferred method:



sudo pip install --upgrade parsedatetime


Or via Chris Johnson's PPA. I didn't want to add an entire PPA just to get gcalcli working, so I just grabbed the package:



wget https://launchpad.net/~cjohnston/+archive/ubuntu/ppa/+files/python-parsedatetime_1.2-1~ubuntu14.04.1~ppa1_all.deb


And then installed it:



sudo dpkg -i https://launchpad.net/~cjohnston/+archive/ubuntu/ppa/+files/python-parsedatetime_1.2-1~ubuntu14.04.1~ppa1_all.deb
sudo apt-get -f install

[#25137] Saturday, October 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
egantfis

Total Points: 406
Total Questions: 108
Total Answers: 108

Location: Austria
Member since Thu, Jan 7, 2021
3 Years ago
egantfis questions
Mon, Nov 1, 21, 03:37, 3 Years ago
Fri, Mar 18, 22, 23:26, 2 Years ago
Mon, Mar 6, 23, 05:03, 1 Year ago
Sun, Oct 3, 21, 23:30, 3 Years ago
Thu, Mar 10, 22, 12:28, 2 Years ago
;