Closed yogeshriyat closed 4 years ago
You can run pip install google-api-python-client==1.8.0
(after installing Cirq if you haven't already). Nothing needs to be changed in init or any other files.
This issue is with Cirq (see https://github.com/quantumlib/Cirq/issues/2926) and will be fixed when the new Cirq version is released.
Note this is now fixed by google-api-python-client version 1.8.2. Installing Cirq in a new virtual environment (or reinstalling Cirq) works properly.
Hmm I just installed Cirq yesterday in a virtual environment, but I’ll look into it. Thank you.
On Apr 22, 2020, at 8:34 AM, Ryan LaRose notifications@github.com wrote:
Note this is now fixed by google-api-python-client version 1.8.2. Installing Cirq in a new virtual environment (or reinstalling Cirq) works properly.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I uninstalled Anaconda. It was giving me trouble with installing packages in virtual environments. So for the exercise on p.65 I get the correct output now, but I get the following text also. I do not know what to make of it:
/Users/Yogesh/Cirq/lib/python3.7/site-packages/ipykernel_launcher.py:10: DeprecationWarning: Circuit.from_ops was used but is deprecated.
It will be removed in cirq v0.8.0.
use `cirq.Circuit(*ops)` instead.
# Remove the CWD from sys.path while we load stuff.
I actually tried using cirq.Circuit(*ops) instead of cirq.Circuit.from_ops, but it gave an error that said ops was not recognized.
`--------------------------------------------------------------------------- NameError Traceback (most recent call last)
The first example just says the method Circuit.from_ops
will be removed in Cirq v0.8.0. We'll update the programs in here when appropriate. The second error is because the variable ops
was never defined.
Hello, the following error occurred when I tried to implement the code on p. 65 in Jupyter Notebook. Any guidance?
AttributeError: module 'googleapiclient' has no attribute 'version'
I did read up on SO:
But it looks like this change would be to the init.py file ? I was thinking I could go edit this file, but didn't know if there was some other way?
This is the error text: `--------------------------------------------------------------------------- AttributeError Traceback (most recent call last)