[Bug 1594437] Re: ImportError: No module named locked_file
This bug was fixed in the package python-googleapi - 1.4.2-1ubuntu1.1 --- python-googleapi (1.4.2-1ubuntu1.1) xenial; urgency=medium * d/p/0001-Allow-using-oauth2client-versions-2.patch: Fix oauth2client cache module import (LP: #1594437). -- Felipe ReyesMon, 20 Jun 2016 12:06:43 -0400 ** Changed in: python-googleapi (Ubuntu Xenial) Status: Fix Committed => Fix Released -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1594437] Re: ImportError: No module named locked_file
The package available in xenial-proposed fixes the issue. Evidence: $ gcalcli 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 from oauth2client.locked_file import LockedFile ImportError: No module named locked_file Sun Jun 26 [...] $ sudo apt-get install python-googleapi Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gir1.2-lokdocview-0.1 libjpeg62 libreoffice-gtk3 libvala-0.28-0 linux-tools-4.4.0-22 linux-tools-4.4.0-22-generic python-charmworldlib squashfs-tools ubuntu-core-launcher valac-0.28-vapi Use 'sudo apt autoremove' to remove them. The following packages will be upgraded: python-googleapi 1 upgraded, 0 newly installed, 0 to remove and 17 not upgraded. Need to get 0 B/36.7 kB of archives. After this operation, 1,024 B of additional disk space will be used. (Reading database ... 340557 files and directories currently installed.) Preparing to unpack .../python-googleapi_1.4.2-1ubuntu1.1_all.deb ... Unpacking python-googleapi (1.4.2-1ubuntu1.1) over (1.4.2-1ubuntu1) ... Setting up python-googleapi (1.4.2-1ubuntu1.1) ... $ gcalcli agenda Sun Jun 26 [...] ** Tags removed: verification-needed ** Tags added: verification-done ** Changed in: python-googleapi (Ubuntu Xenial) Assignee: (unassigned) => Felipe Reyes (freyes) -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1594437] Re: ImportError: No module named locked_file
Hello Felipe, or anyone else affected, Accepted python-googleapi into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/python- googleapi/1.4.2-1ubuntu1.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: python-googleapi (Ubuntu Xenial) Status: In Progress => Fix Committed ** Tags added: verification-needed -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1594437] Re: ImportError: No module named locked_file
Uploaded, thanks. Now awaiting SRU team review. Note that I ran "update-maintainer" before uploading, as evidently this was missed in the original upload of 1.4.2-1ubuntu1. ** Changed in: python-googleapi (Ubuntu Xenial) Status: Triaged => In Progress -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1594437] Re: ImportError: No module named locked_file
** Also affects: python-googleapi (Ubuntu Xenial) Importance: Undecided Status: New ** Changed in: python-googleapi (Ubuntu Xenial) Importance: Undecided => Medium ** Changed in: python-googleapi (Ubuntu Xenial) Status: New => Triaged ** Changed in: python-googleapi (Ubuntu) Status: New => Fix Released -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1594437] Re: ImportError: No module named locked_file
** Changed in: python-googleapi (Ubuntu) Importance: Undecided => Medium -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1594437] Re: ImportError: No module named locked_file
** 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 - 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 + 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1594437] Re: ImportError: No module named locked_file
Here I'm attaching a patch to fix Xenial, I've been testing it locally and it works OK for my use cases. ** Changed in: python-googleapi (Ubuntu) Assignee: (unassigned) => Felipe Reyes (freyes) ** Patch added: "lp1594437_xenial.debdiff" https://bugs.launchpad.net/ubuntu/+source/python-googleapi/+bug/1594437/+attachment/4687365/+files/lp1594437_xenial.debdiff -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs