Python Forum
upgrading google-api generates an error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upgrading google-api generates an error
#1
I am trying to activate overgrive, a python 2.7 based connection app to Google Drive in Linux Mint 19, and it fails with a series errors, some of which I corrected but one error which seems to occur fairly often, I can't.

The developer of overgrive advised me to apply the following: sudo -H pip install --upgrade google-api-python-client and the error it constantly generates is Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-oMAgsk/httplib2/. Since error code 1 indicates an ownership issue, I took ownership of the /tmp folder but it didn't make a difference.

This app worked as installed and without pip in earlier versions of Linux Mint.
Reply
#2
Can you run pip -V successfully?
While you're there, can you check which pip, which python, and python -V? I have a sneaking suspicion that there might be a mismatch between python2 and 3 somewhere.

httplib2 is a builtin package, and there's no reason pip would be doing anything with it other than possibly using it to download something. setup.py is part of distutils, and could be pip trying to install itself.
Reply
#3
Thanks for your reply, unfortunately between the time I posted and now, the motherboard of my Linux box developed a bad flu and had to return it to the manufacturer for replacement.

Will get back to you probably in a week. Thank again.
Reply
#4
nilamo, thanks for opening my eyes and here is the requested information:

pip -V
pip 10.0.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

which pip
/usr/local/bin/pip

python -V
Python 2.7.12

which python
/usr/bin/python

From the overgrive GUI menu entry, I pasted into the terminal python2 /opt/thefanclub/overgrive/overgrive to see if here are any errors and I got the following error message:
Output:
Traceback (most recent call last): File "overgrive.py", line 53, in <module> ImportError: No module named oauth2client.client
So I searched the web for a solution to this error and came up with: pip install --upgrade oauth2client

Which generated the following output:
Output:
Collecting oauth2client Downloading https://files.pythonhosted.org/packages/82/d8/3eab58811282ac7271a081ba5c0d4b875ce786ca68ce43e2a62ade32e9a8/oauth2client-4.1.2-py2.py3-none-any.whl (99kB) 100% |████████████████████████████████| 102kB 2.4MB/s Requirement not upgraded as not directly required: pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from oauth2client) (0.4.3) Requirement not upgraded as not directly required: pyasn1-modules>=0.0.5 in /usr/local/lib/python2.7/dist-packages (from oauth2client) (0.2.2) Requirement not upgraded as not directly required: six>=1.6.1 in /usr/local/lib/python2.7/dist-packages (from oauth2client) (1.11.0) Requirement not upgraded as not directly required: httplib2>=0.9.1 in /usr/local/lib/python2.7/dist-packages (from oauth2client) (0.11.3) Requirement not upgraded as not directly required: rsa>=3.1.4 in /usr/local/lib/python2.7/dist-packages (from oauth2client) (3.4.2) Installing collected packages: oauth2client Successfully installed oauth2client-4.1.2
I tried it again and lo and behold it started to work. Thanks again
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 918 Feb-15-2023, 05:34 PM
Last Post: zsousa
  Upgrading from 2 to 3 and having file write problems KenHorse 2 1,430 May-08-2022, 09:47 PM
Last Post: KenHorse
  Virtual environment and upgrading python 3.5 to 3.9 NeilUK 4 11,972 Jan-24-2021, 01:02 PM
Last Post: snippsat
  Error in Mysql Client when upgrading Django Abi 0 1,851 Sep-21-2020, 06:11 AM
Last Post: Abi
  how to import files in Google Collab wihout downloading them to PC and to Google Disk sveto4ka 9 3,802 Jun-03-2020, 12:40 PM
Last Post: sveto4ka
  Help with Upgrading to Python 3.8 KNSSCyberSec 1 2,351 Jan-31-2020, 08:37 PM
Last Post: Marbelous
  Why does Cython generates bad code for Gentoo? AlekseyPython 1 1,819 Dec-26-2019, 01:57 PM
Last Post: AlekseyPython
  Pymssql library failing when upgrading to Python 3.7 - win32 issue stixmagiggins 5 7,351 Jun-24-2019, 06:46 AM
Last Post: snippsat
  Upgrading to Python 3.5.2 ErnestTBass 6 3,624 Jan-04-2019, 09:22 PM
Last Post: metulburr
  Error: No module named 'google' Amit0503 0 3,330 Dec-27-2018, 07:24 AM
Last Post: Amit0503

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020