** Description changed:

  [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/python2.7/dist-packages/googleapiclient/discovery_cache/__init__.py", 
line 38, in autodetect
-     from . import file_cache
-   File 
"/usr/lib/python2.7/dist-packages/googleapiclient/discovery_cache/file_cache.py",
 line 32, in <module>
-     from oauth2client.locked_file import LockedFile
+   File 
"/usr/lib/python2.7/dist-packages/googleapiclient/discovery_cache/__init__.py", 
line 38, in autodetect
+     from . import file_cache
+   File 
"/usr/lib/python2.7/dist-packages/googleapiclient/discovery_cache/file_cache.py",
 line 32, in <module>
+     from oauth2client.locked_file import LockedFile
  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.
+ * 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://github.com/google/google-api-python-
  client/commit/bb324623
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: python-googleapi 1.4.2-1ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  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)
  PackageArchitecture: all
  SourcePackage: python-googleapi
  UpgradeStatus: Upgraded to xenial on 2016-04-08 (72 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1594437

Title:
  ImportError: No module named locked_file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-googleapi/+bug/1594437/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to