ImportError: No module named locked_file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-googleapi (Ubuntu) |
Fix Released
|
Medium
|
Felipe Reyes | ||
Xenial |
Fix Released
|
Medium
|
Felipe Reyes |
Bug Description
[Impact]
When using google's python client, it's not possible to benefit from caching capabilities provided by oauth2client due to a wrong import.
This was fixed in 1.5.1, which is the version available in yakkety.
[Test Case]
* Install gcalcli (apt-get install gcalcli)
* Run gcalcli and log in to your account
* Run "gcalcli agenda"
Expected Result:
The calendar's agenda view is printed
Actual Result:
A ImportError is printed and then agenda
WARNING:root:No module named locked_file
Traceback (most recent call last):
File "/usr/lib/
from . import file_cache
File "/usr/lib/
from oauth2client.
ImportError: No module named locked_file
[Regression Potential]
* Low, eventually stale caching files may give problems, but this will be unveiling issues in the cache management.
* I've been testing the proposed fix locally and it works OK for my use cases.
[Other Info]
* Upstream fix: https:/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: python-googleapi 1.4.2-1ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Mon Jun 20 11:51:22 2016
InstallationDate: Installed on 2015-10-19 (244 days ago)
InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitec
SourcePackage: python-googleapi
UpgradeStatus: Upgraded to xenial on 2016-04-08 (72 days ago)
description: | updated |
Changed in python-googleapi (Ubuntu): | |
importance: | Undecided → Medium |
Changed in python-googleapi (Ubuntu Xenial): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in python-googleapi (Ubuntu): | |
status: | New → Fix Released |
Here I'm attaching a patch to fix Xenial, I've been testing it locally and it works OK for my use cases.