Closed MarlNox closed 3 years ago
@MarlNox could you run pip freeze
on both machines please? To see that we have all the dependencies installed properly. Also, is there a log of the pip install
command? That would be helpful.
While i dont have a log of the pip install command; Here are the packages from the VM that doesn't work:
And here are the packages from my local Ubuntu machine:
@MarlNox thanks! Not able to reproduce with Python 3.8 and the same set of dependencies.
Is it a new, clean instance? How do install those packages.
Also, a few things to check, just in case:
/home/user/.local/lib/python3.8/site-packages/googleapiclient/discovery.py
- exists and has def build
in itpython
and do from googleapiclient.discovery import build
from the command line@MarlNox thanks! Not able to reproduce with Python 3.8 and the same set of dependencies.
Is it a new, clean instance? How do install those packages.
Also, a few things to check, just in case:
/home/user/.local/lib/python3.8/site-packages/googleapiclient/discovery.py
- exists and hasdef build
in it- Run
python
and dofrom googleapiclient.discovery import build
from the command line
i fixed it by installing these depedencies: google-api-core==1.22.2 google-api-python-client==1.12.6 google-auth==1.22.0 google-auth-httplib2==0.0.4 google-auth-oauthlib==0.4.1 google-pasta==0.2.0 google-trans-new==1.1.3 googleapis-common-protos==1.52.0
@MarlNox good! I was not able to reproduce it even with the initial set of dependencies. But I guess we can wait to see if there are other complains.
@MarlNox actually, I think the problem might that you have PyDrive 1.6 which is pretty old, and I remember we had some changes related to google lib dependencies.
Ive ditched PyDrive for PyDrive2, its in my local machine bcs i havent removed it yet.
@MarlNox yeah, sorry I meant that PyDrive2 1.6.0 is also, old. On your local machine you have the latest version I think 1.7. I would try to install the same on the Azure VM.
Hi there, I have building a django app that uses pydrive2. When running it in my local machine, it works. While when i try to run it on my Azure VM, it doesnt work, and gives out this error message:
File "step_1.py", line 16, in
from pydrive2.auth import GoogleAuth
File "/home/user/.local/lib/python3.8/site-packages/pydrive2/auth.py", line 8, in
from googleapiclient.discovery import build
ImportError: cannot import name 'build' from 'googleapiclient.discovery' (/home/user/.local/lib/python3.8/site-packages/googleapiclient/discovery.py)