Closed balopat closed 3 years ago
dev_tools/Dockerfile does not build
This is picked up by @seunomonije based on our conversations - thanks @seunomonije!
@balopat here is a status update. Unfortunately I haven't made as much progress as I would've liked to yet due to this bug. Currently looking into it and I will come back with a solution.
grpcio-tools
collection seems to be defaulting to an outdated version (1.24.x), as can be seen here
Collecting grpcio-tools~=1.24.0
Using cached grpcio-tools-1.24.3.tar.gz (2.0 MB)
when attempting to install all the packages in the development environment using
python -m pip install -e .[dev_env]
on Python 3.8.5.
Currently looking into whether or not this is an error on my end but it's been holding me up for the past couple days. The wheel doesn't build for grpcio-tools
which isn't allowing me to start actual work and I feel like this may be the cause.
Enclosed is the full error output, currently looking into finding a way default to grpcio-tools (1.30.x) and see if a fix will come from there. Important things to note from this error message is that pip uninstalls a manually updated version of grpcio-tools
(1.30.x), presumably in favor of the older version.
``` Obtaining file:///Users/seunomonije/Desktop/Cirq/cirq Requirement already satisfied: freezegun~=0.3.15 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (0.3.15) Requirement already satisfied: google-api-core[grpc]<2.0.0dev,>=1.14.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (1.22.1) Requirement already satisfied: matplotlib~=3.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (3.3.1) Requirement already satisfied: networkx~=2.4 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (2.5) Requirement already satisfied: numpy<1.19,~=1.16 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (1.18.5) Requirement already satisfied: pandas in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (1.1.1) Requirement already satisfied: protobuf~=3.12.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (3.12.4) Requirement already satisfied: requests~=2.18 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (2.24.0) Requirement already satisfied: sortedcontainers~=2.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (2.2.2) Requirement already satisfied: scipy in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (1.5.2) Requirement already satisfied: sympy in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (1.6.2) Requirement already satisfied: typing_extensions in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (3.7.4.3) Requirement already satisfied: mypy~=0.782.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (0.782) Requirement already satisfied: pylint~=2.3.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (2.3.1) Requirement already satisfied: pytest~=5.4.1 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (5.4.3) Requirement already satisfied: pytest-asyncio~=0.12.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (0.12.0) Requirement already satisfied: pytest-cov~=2.5.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (2.5.1) Requirement already satisfied: pytest-benchmark~=3.2.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (3.2.3) Requirement already satisfied: yapf~=0.27.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (0.27.0) Collecting grpcio-tools~=1.24.0 Using cached grpcio-tools-1.24.3.tar.gz (2.0 MB) Processing /Users/seunomonije/Library/Caches/pip/wheels/d1/25/b2/015dfbde69a44a9470a77112014df69ed3db5be697e671dee2/mypy_protobuf-1.10-py3-none-any.whl Collecting twine Using cached twine-3.2.0-py3-none-any.whl (34 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/97/86/95/d903bbc63471fb73ac4f2f046eb5291fd4ea59cf112a62ce93/pyquil-2.21.0-py3-none-any.whl Processing /Users/seunomonije/Library/Caches/pip/wheels/e5/46/ef/ce6b57d04151da5eacde3144cfa0266caa778bc248b4dd184c/qiskit-0.13.0-py3-none-any.whl Processing /Users/seunomonije/Library/Caches/pip/wheels/27/01/d8/dde8d4ae5c2a6e6dda11cee8c4fb855c9f60f1f8cdc1332cef/pypandoc-1.5-py3-none-any.whl Collecting recommonmark>=0.4.0 Using cached recommonmark-0.6.0-py2.py3-none-any.whl (10 kB) Collecting Sphinx~=3.2.0 Using cached Sphinx-3.2.1-py3-none-any.whl (2.9 MB) Collecting sphinx_rtd_theme Using cached sphinx_rtd_theme-0.5.0-py2.py3-none-any.whl (10.8 MB) Collecting sphinx-markdown-tables Using cached sphinx_markdown_tables-0.0.15-py3-none-any.whl (28 kB) Collecting nbsphinx Using cached nbsphinx-0.7.1-py3-none-any.whl (24 kB) Collecting ipython Using cached ipython-7.18.0-py3-none-any.whl (786 kB) Collecting ipykernel Using cached ipykernel-5.3.4-py3-none-any.whl (120 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/bf/b9/ca/1aa2665648aeaffd559c4096e510ed2b343b808121f8d31efb/rstcheck-3.3.1-py3-none-any.whl Requirement already satisfied: ply>=3.4 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from cirq==0.9.0.dev0) (3.11) Processing /Users/seunomonije/Library/Caches/pip/wheels/1c/7a/3d/ffaea382fdffbdbc6fc1a5a1d8ae23a558e855aa16e70a5f79/PyLaTeX-1.3.4-py3-none-any.whl Collecting quimb Using cached quimb-1.3.0-py3-none-any.whl (216 kB) Collecting opt_einsum Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB) Collecting autoray Using cached autoray-0.2.3-py3-none-any.whl (15 kB) Requirement already satisfied: six in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from freezegun~=0.3.15->cirq==0.9.0.dev0) (1.15.0) Requirement already satisfied: python-dateutil!=2.0,>=1.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from freezegun~=0.3.15->cirq==0.9.0.dev0) (2.8.1) Requirement already satisfied: pytz in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (2020.1) Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.6.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (1.52.0) Requirement already satisfied: setuptools>=34.0.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (49.6.0) Requirement already satisfied: google-auth<2.0dev,>=1.19.1 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (1.21.0) Requirement already satisfied: grpcio<2.0dev,>=1.29.0; extra == "grpc" in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (1.30.0) Requirement already satisfied: pillow>=6.2.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from matplotlib~=3.0->cirq==0.9.0.dev0) (7.2.0) Requirement already satisfied: certifi>=2020.06.20 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from matplotlib~=3.0->cirq==0.9.0.dev0) (2020.6.20) Requirement already satisfied: cycler>=0.10 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from matplotlib~=3.0->cirq==0.9.0.dev0) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from matplotlib~=3.0->cirq==0.9.0.dev0) (1.2.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from matplotlib~=3.0->cirq==0.9.0.dev0) (2.4.7) Requirement already satisfied: decorator>=4.3.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from networkx~=2.4->cirq==0.9.0.dev0) (4.4.2) Requirement already satisfied: idna<3,>=2.5 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from requests~=2.18->cirq==0.9.0.dev0) (2.10) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from requests~=2.18->cirq==0.9.0.dev0) (1.25.10) Requirement already satisfied: chardet<4,>=3.0.2 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from requests~=2.18->cirq==0.9.0.dev0) (3.0.4) Requirement already satisfied: mpmath>=0.19 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from sympy->cirq==0.9.0.dev0) (1.1.0) Requirement already satisfied: typed-ast<1.5.0,>=1.4.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from mypy~=0.782.0->cirq==0.9.0.dev0) (1.4.1) Requirement already satisfied: mypy-extensions<0.5.0,>=0.4.3 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from mypy~=0.782.0->cirq==0.9.0.dev0) (0.4.3) Requirement already satisfied: isort<5,>=4.2.5 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pylint~=2.3.0->cirq==0.9.0.dev0) (4.3.21) Requirement already satisfied: astroid<3,>=2.2.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pylint~=2.3.0->cirq==0.9.0.dev0) (2.4.2) Requirement already satisfied: mccabe<0.7,>=0.6 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pylint~=2.3.0->cirq==0.9.0.dev0) (0.6.1) Requirement already satisfied: py>=1.5.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pytest~=5.4.1->cirq==0.9.0.dev0) (1.9.0) Requirement already satisfied: more-itertools>=4.0.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pytest~=5.4.1->cirq==0.9.0.dev0) (8.4.0) Requirement already satisfied: wcwidth in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pytest~=5.4.1->cirq==0.9.0.dev0) (0.2.5) Requirement already satisfied: packaging in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pytest~=5.4.1->cirq==0.9.0.dev0) (20.4) Requirement already satisfied: pluggy<1.0,>=0.12 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pytest~=5.4.1->cirq==0.9.0.dev0) (0.13.1) Requirement already satisfied: attrs>=17.4.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pytest~=5.4.1->cirq==0.9.0.dev0) (20.1.0) Requirement already satisfied: coverage>=3.7.1 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pytest-cov~=2.5.0->cirq==0.9.0.dev0) (5.2.1) Requirement already satisfied: py-cpuinfo in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pytest-benchmark~=3.2.0->cirq==0.9.0.dev0) (7.0.0) Collecting pkginfo>=1.4.2 Using cached pkginfo-1.5.0.1-py2.py3-none-any.whl (25 kB) Collecting keyring>=15.1 Using cached keyring-21.3.1-py3-none-any.whl (31 kB) Collecting rfc3986>=1.4.0 Using cached rfc3986-1.4.0-py2.py3-none-any.whl (31 kB) Collecting colorama>=0.4.3 Using cached colorama-0.4.3-py2.py3-none-any.whl (15 kB) Collecting requests-toolbelt!=0.9.0,>=0.8.0 Using cached requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB) Collecting readme-renderer>=21.0 Using cached readme_renderer-26.0-py2.py3-none-any.whl (15 kB) Collecting tqdm>=4.14 Using cached tqdm-4.48.2-py2.py3-none-any.whl (68 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/63/93/52/480c17789fbf685f5d0e33e83c311f4a844cd6e2f5cf036c03/antlr4_python3_runtime-4.7.2-py3-none-any.whl Processing /Users/seunomonije/Library/Caches/pip/wheels/20/57/60/d1256fe1109a2d599cbf6fe0fbeb1e150197d66d248a0803dc/rpcq-3.4.0-py3-none-any.whl Processing /Users/seunomonije/Library/Caches/pip/wheels/81/5e/8d/0426d0cff5226f258c12aa6d044b078e0e877c659ae59ec9ec/immutables-0.6-cp38-cp38-macosx_10_9_x86_64.whl Collecting qiskit-ignis==0.2.0 Using cached qiskit_ignis-0.2.0-py3-none-any.whl (100 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/02/5b/ce/5ff1099545c3ba4caa8cea075b447d83bfa9a563d044a7c42f/qiskit_ibmq_provider-0.3.3-py3-none-any.whl Processing /Users/seunomonije/Library/Caches/pip/wheels/43/ec/d8/7acfdb565c066ce32262c876311380812b47e8368cc21fc61f/qiskit_terra-0.10.0-cp38-cp38-macosx_10_9_x86_64.whl Collecting qiskit-aqua==0.6.1 Using cached qiskit_aqua-0.6.1-py3-none-any.whl (979 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/6e/1f/46/3dfb548f96401d4d666933dce639d8675a3f5c1d14cdfd91fa/qiskit_aer-0.3.2-cp38-cp38-macosx_10_9_x86_64.whl Requirement already satisfied: wheel>=0.25.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pypandoc->cirq==0.9.0.dev0) (0.35.1) Requirement already satisfied: pip>=8.1.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from pypandoc->cirq==0.9.0.dev0) (20.2.2) Collecting docutils>=0.11 Using cached docutils-0.16-py2.py3-none-any.whl (548 kB) Collecting commonmark>=0.8.1 Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB) Collecting sphinxcontrib-jsmath Using cached sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB) Collecting sphinxcontrib-serializinghtml Using cached sphinxcontrib_serializinghtml-1.1.4-py2.py3-none-any.whl (89 kB) Collecting alabaster<0.8,>=0.7 Using cached alabaster-0.7.12-py2.py3-none-any.whl (14 kB) Collecting sphinxcontrib-devhelp Using cached sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl (84 kB) Collecting sphinxcontrib-htmlhelp Using cached sphinxcontrib_htmlhelp-1.0.3-py2.py3-none-any.whl (96 kB) Collecting imagesize Using cached imagesize-1.2.0-py2.py3-none-any.whl (4.8 kB) Collecting Pygments>=2.0 Using cached Pygments-2.6.1-py3-none-any.whl (914 kB) Collecting sphinxcontrib-applehelp Using cached sphinxcontrib_applehelp-1.0.2-py2.py3-none-any.whl (121 kB) Collecting sphinxcontrib-qthelp Using cached sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl (90 kB) Collecting Jinja2>=2.3 Using cached Jinja2-2.11.2-py2.py3-none-any.whl (125 kB) Collecting snowballstemmer>=1.1 Using cached snowballstemmer-2.0.0-py2.py3-none-any.whl (97 kB) Collecting babel>=1.3 Using cached Babel-2.8.0-py2.py3-none-any.whl (8.6 MB) Collecting markdown>=3.0.1 Using cached Markdown-3.2.2-py3-none-any.whl (88 kB) Collecting nbformat Using cached nbformat-5.0.7-py3-none-any.whl (170 kB) Collecting nbconvert!=5.4 Using cached nbconvert-5.6.1-py2.py3-none-any.whl (455 kB) Collecting traitlets Using cached traitlets-4.3.3-py2.py3-none-any.whl (75 kB) Collecting pickleshare Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB) Collecting pexpect>4.3; sys_platform != "win32" Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB) Collecting appnope; sys_platform == "darwin" Using cached appnope-0.1.0-py2.py3-none-any.whl (4.0 kB) Collecting backcall Using cached backcall-0.2.0-py2.py3-none-any.whl (11 kB) Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 Using cached prompt_toolkit-3.0.6-py3-none-any.whl (354 kB) Collecting jedi>=0.16 Using cached jedi-0.17.2-py2.py3-none-any.whl (1.4 MB) Processing /Users/seunomonije/Library/Caches/pip/wheels/88/79/e5/598ba17e85eccf2626eab62e4ee8452895636cd542650d450d/tornado-6.0.4-cp38-cp38-macosx_10_9_x86_64.whl Collecting jupyter-client Using cached jupyter_client-6.1.7-py3-none-any.whl (108 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/a1/09/42/0b963b1d5423ddc87cb4ba9f475e09838d3813300b52a866ea/ordered_set-4.0.2-py2.py3-none-any.whl Collecting numba>=0.39 Using cached numba-0.51.1-cp38-cp38-macosx_10_14_x86_64.whl (2.2 MB) Processing /Users/seunomonije/Library/Caches/pip/wheels/7f/71/e7/690b241fea90859f7ed6defe9c56e37ab9b7dcd80a4067dc54/cytoolz-0.10.1-cp38-cp38-macosx_10_9_x86_64.whl Processing /Users/seunomonije/Library/Caches/pip/wheels/91/cf/b0/0c9998060b55ca80ea7a50a8639c3bdc6ba886eeff014bc9ac/psutil-5.7.2-cp38-cp38-macosx_10_9_x86_64.whl Requirement already satisfied: rsa<5,>=3.1.4; python_version >= "3.5" in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from google-auth<2.0dev,>=1.19.1->google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (4.6) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from google-auth<2.0dev,>=1.19.1->google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (4.1.1) Requirement already satisfied: pyasn1-modules>=0.2.1 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from google-auth<2.0dev,>=1.19.1->google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (0.2.8) Requirement already satisfied: wrapt~=1.11 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from astroid<3,>=2.2.0->pylint~=2.3.0->cirq==0.9.0.dev0) (1.12.1) Requirement already satisfied: lazy-object-proxy==1.4.* in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from astroid<3,>=2.2.0->pylint~=2.3.0->cirq==0.9.0.dev0) (1.4.3) Collecting bleach>=2.1.0 Using cached bleach-3.1.5-py2.py3-none-any.whl (151 kB) Collecting python-rapidjson Using cached python_rapidjson-0.9.1-cp38-cp38-macosx_10_9_x86_64.whl (189 kB) Collecting ruamel.yaml Using cached ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB) Collecting pyzmq>=17 Using cached pyzmq-19.0.2-cp38-cp38-macosx_10_9_x86_64.whl (806 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/5d/f2/04/0d19c10080b996bef17c908a6243e6e65d8da1a4094a3f604d/msgpack-0.6.2-cp38-cp38-macosx_10_9_x86_64.whl Collecting nest-asyncio==1.0.0 Using cached nest_asyncio-1.0.0-py3-none-any.whl (3.8 kB) Collecting requests-ntlm>=1.1.0 Using cached requests_ntlm-1.1.0-py2.py3-none-any.whl (5.7 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/ff/66/8a/b0610f3b070460e56f775bfcaafc6123838f3e7ab3cd80aaaf/websockets-7.0-cp38-cp38-macosx_10_9_x86_64.whl Collecting jsonschema>=2.6 Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/53/91/60/2395b43bb3bab3506d35a3c52e749c9b3c149621f2ca7d3447/marshmallow_polyfield-5.9-py3-none-any.whl Collecting marshmallow<4,>=3 Using cached marshmallow-3.7.1-py2.py3-none-any.whl (45 kB) Collecting quandl Using cached Quandl-3.5.2-py2.py3-none-any.whl (25 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/c4/03/f9/7afbf40e0c3d6928d16bcadb46264a6e68704998ec72f7ea13/dlx-1.0.4-py3-none-any.whl Collecting cvxopt Using cached cvxopt-1.2.5-cp38-cp38-macosx_10_9_x86_64.whl (3.1 MB) Processing /Users/seunomonije/Library/Caches/pip/wheels/e9/ac/30/c962f9d759dd68cb5482727c44441fdfb48040fdbe983857e8/fastdtw-0.3.4-py3-none-any.whl Collecting pyscf; sys_platform != "win32" Using cached pyscf-1.7.4-cp38-cp38-macosx_10_13_x86_64.whl (14.3 MB) Collecting h5py Using cached h5py-2.10.0-cp38-cp38-macosx_10_9_x86_64.whl (3.0 MB) Collecting scikit-learn>=0.20.0 Using cached scikit_learn-0.23.2-cp38-cp38-macosx_10_9_x86_64.whl (7.2 MB) Processing /Users/seunomonije/Library/Caches/pip/wheels/9f/72/37/682278ae313764c583d8c10027b83b9a12da7bb148c0ea070b/docplex-2.15.194-py3-none-any.whl Collecting MarkupSafe>=0.23 Using cached MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl (16 kB) Collecting jupyter-core Using cached jupyter_core-4.6.3-py2.py3-none-any.whl (83 kB) Collecting ipython-genutils Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/f6/08/65/e4636b703d0e870cd62692dafd6b47db27287fe80cea433722/pandocfilters-1.4.2-py3-none-any.whl Collecting testpath Using cached testpath-0.4.4-py2.py3-none-any.whl (163 kB) Collecting defusedxml Using cached defusedxml-0.6.0-py2.py3-none-any.whl (23 kB) Collecting mistune<2,>=0.8.1 Using cached mistune-0.8.4-py2.py3-none-any.whl (16 kB) Collecting entrypoints>=0.2.2 Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB) Collecting ptyprocess>=0.5 Using cached ptyprocess-0.6.0-py2.py3-none-any.whl (39 kB) Collecting parso<0.8.0,>=0.7.0 Using cached parso-0.7.1-py2.py3-none-any.whl (109 kB) Collecting llvmlite<0.35,>=0.34.0.dev0 Using cached llvmlite-0.34.0-cp38-cp38-macosx_10_9_x86_64.whl (18.4 MB) Processing /Users/seunomonije/Library/Caches/pip/wheels/a5/2b/b5/05758d5828d65f2adef8fbb5d5484e4adb946ae1827a973a01/toolz-0.10.0-py3-none-any.whl Requirement already satisfied: pyasn1>=0.1.3 in /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages (from rsa<5,>=3.1.4; python_version >= "3.5"->google-auth<2.0dev,>=1.19.1->google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq==0.9.0.dev0) (0.4.8) Collecting webencodings Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB) Processing /Users/seunomonije/Library/Caches/pip/wheels/e4/3e/eb/975034325f52bc0d5897b5f8603974d6a79a964aaeb0ec0293/ruamel.yaml.clib-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl Collecting ntlm-auth>=1.0.2 Using cached ntlm_auth-1.5.0-py2.py3-none-any.whl (29 kB) Collecting cryptography>=1.3 Using cached cryptography-3.1-cp35-abi3-macosx_10_10_x86_64.whl (1.8 MB) Processing /Users/seunomonije/Library/Caches/pip/wheels/17/be/0f/727fb20889ada6aaaaba861f5f0eb21663533915429ad43f28/pyrsistent-0.16.0-cp38-cp38-macosx_10_9_x86_64.whl Collecting inflection>=0.3.1 Using cached inflection-0.5.1-py2.py3-none-any.whl (9.5 kB) Collecting joblib>=0.11 Using cached joblib-0.16.0-py3-none-any.whl (300 kB) Collecting threadpoolctl>=2.0.0 Using cached threadpoolctl-2.1.0-py3-none-any.whl (12 kB) Collecting cffi!=1.11.3,>=1.8 Using cached cffi-1.14.2-cp38-cp38-macosx_10_9_x86_64.whl (176 kB) Collecting pycparser Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB) Building wheels for collected packages: grpcio-tools Building wheel for grpcio-tools (setup.py): started Building wheel for grpcio-tools (setup.py): still running... Building wheel for grpcio-tools (setup.py): still running... Building wheel for grpcio-tools (setup.py): still running... Building wheel for grpcio-tools (setup.py): still running... Building wheel for grpcio-tools (setup.py): finished with status 'error' Running setup.py clean for grpcio-tools Failed to build grpcio-tools Installing collected packages: grpcio-tools, mypy-protobuf, pkginfo, keyring, rfc3986, colorama, requests-toolbelt, webencodings, bleach, docutils, Pygments, readme-renderer, tqdm, twine, antlr4-python3-runtime, python-rapidjson, ruamel.yaml.clib, ruamel.yaml, pyzmq, msgpack, rpcq, immutables, pyquil, psutil, pyrsistent, jsonschema, marshmallow, marshmallow-polyfield, qiskit-terra, qiskit-ignis, nest-asyncio, ntlm-auth, pycparser, cffi, cryptography, requests-ntlm, websockets, qiskit-ibmq-provider, inflection, quandl, dlx, cvxopt, fastdtw, h5py, pyscf, joblib, threadpoolctl, scikit-learn, docplex, qiskit-aqua, qiskit-aer, qiskit, pypandoc, sphinxcontrib-jsmath, sphinxcontrib-serializinghtml, alabaster, sphinxcontrib-devhelp, sphinxcontrib-htmlhelp, imagesize, sphinxcontrib-applehelp, sphinxcontrib-qthelp, MarkupSafe, Jinja2, snowballstemmer, babel, Sphinx, commonmark, recommonmark, sphinx-rtd-theme, markdown, sphinx-markdown-tables, ipython-genutils, traitlets, jupyter-core, nbformat, pandocfilters, testpath, defusedxml, mistune, entrypoints, nbconvert, nbsphinx, pickleshare, ptyprocess, pexpect, appnope, backcall, prompt-toolkit, parso, jedi, ipython, tornado, jupyter-client, ipykernel, rstcheck, ordered-set, pylatex, llvmlite, numba, toolz, cytoolz, quimb, opt-einsum, autoray, cirq Attempting uninstall: grpcio-tools Found existing installation: grpcio-tools 1.30.0 Uninstalling grpcio-tools-1.30.0: Successfully uninstalled grpcio-tools-1.30.0 Running setup.py install for grpcio-tools: started Running setup.py install for grpcio-tools: still running... Running setup.py install for grpcio-tools: still running... Running setup.py install for grpcio-tools: still running... Running setup.py install for grpcio-tools: still running... Running setup.py install for grpcio-tools: finished with status 'error' Rolling back uninstall of grpcio-tools Moving to /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages/grpc_tools/ from /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages/~rpc_tools Moving to /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages/grpcio_tools-1.30.0.dist-info/ from /Users/seunomonije/.virtualenvs/cirq-py3/lib/python3.8/site-packages/~rpcio_tools-1.30.0.dist-info ```
The error did not come up when setting up for development for Python 3.7, so I think this issue either is native to 3.8 or is my own error.
Thanks for the update! Yes, so that is coming from dev_tools/conf/pip-list-dev-tools.txt
. From what I see from their releases is that grpc released python 3.8 wheels starting from 1.25 so we need to upgrade this requirement at least probably to 1.25. Let's see if we can find the minimum required upgrades to make this work!
@balopat looking at the linked release docs you gave me I see release 1.26.0 includes the Python 3.8 wheel.
I changed line 11 in dev_tools/conf/pip-list-dev-tools.txt
to grpcio-tools~=1.26.0
, which fixed my issue and successfully installed all the other packages. Thank you for pointing this out to me. Would this be something you'd like me to submit a pull request for?
I also want to note that while other packages installed successfully, I received a warning message
pyscf 1.7.4 requires scipy<1.5, but you'll have scipy 1.5.2 which is incompatible.
This seems like something I would need to look into and fix, correct? Looking at this release doc like you just did for grpcio-tools
, I see that we would need to downgrade scipy
to 1.4.1, which would be the minimum required to make it work. However, this makes me wonder if there are any other packages which require scipy
> 1.5 to work. Sounds like something I also can look into.
Also, I found that Qiskit needs to be upgraded to 0.15.0 since qiskit-terra
supports Python 3.8 via release 0.12.0, which is addressed first in Qiskit 0.15.0 (sticking to minimum required upgrade rule). Running pytest with Qiskit 0.13.0 yields 161 failed test cases, Qiskit 0.15.0 passes all tests.
dev_tools/Dockerfile does not build
Also, what command are you running to build dev_tools/Dockerfile
? I was able to print the Foxtail system in a Docker image successfully with the two small changes I made, but also I'm new to Docker images so I probably don't have the whole picture.
Also, I found that Qiskit needs to be upgraded to 0.15.0 since
qiskit-terra
supports Python 3.8 via release 0.12.0, which is addressed first in Qiskit 0.15.0 (sticking to minimum required upgrade rule). Running pytest with Qiskit 0.13.0 yields 161 failed test cases, Qiskit 0.15.0 passes all tests.
Great find, probably that was the issue in https://github.com/quantumlib/Cirq/issues/3152 as well.
dev_tools/Dockerfile does not build
Also, what command are you running to build
dev_tools/Dockerfile
? I was able to print the Foxtail system in a Docker image successfully with the two small changes I made, but also I'm new to Docker images so I probably don't have the whole picture.
This should do the trick (make sure you have Docker Desktop installed / Docker for linux):
docker build -t cirq -f dev_tools/Dockerfile .
Looking at the pyscf question:
SciPy 1.5+ will be required only by a coming PR #2872, but even that is going to be in contrib first (i.e. contrib dependencies are installed optionally) - but when it matures it might get added to core cirq in which case this might become a harder requirement (probably not earlier than a year).
I use pipdeptree
to figure out what pulls it in.
...
qiskit==0.13.0
- qiskit-aer [required: ==0.3.2, installed: 0.3.2]
- numpy [required: >=1.13, installed: 1.18.5]
- qiskit-aqua [required: ==0.6.1, installed: 0.6.1]
- cvxopt [required: Any, installed: 1.2.5]
...
- psutil [required: >=5, installed: 5.7.2]
- pyscf [required: Any, installed: 1.7.4] <<<<<<
- h5py [required: >2.2, installed: 2.10.0]
- numpy [required: >=1.7, installed: 1.18.5]
- six [required: Any, installed: 1.15.0]
- numpy [required: >1.8,!=1.17,!=1.16, installed: 1.18.5]
- scipy [required: <1.5, installed: 1.5.2]
- numpy [required: >=1.14.5, installed: 1.18.5]
...
As qiskit is only required by testing currently, I'm not too worried about this requirement - though it might bite us a bit in future tests. If the tests are running (we are using a tiny portion of qiskit that probably does not exercise the scipy 1.4 only paths) then we should be good.
Awesome. pipdeptree
is really cool..just learning about it now. Thank you for the docker help as well.
After running the docker image on my machine, the build failed but due to a different error than you had earlier. Looking at the one you posted before, building the wheel for the typed-ast
package failed (version 1.3.5 attempted), seemingly because the versions didn't match up for whatever reason, because when running it on my machine it opts to use version 1.4.1 which works fine.
My issue comes again with Qiskit, specifically with building the wheel for qiskit-aer
. I'm sure this is just another Qiskit version error..the versions my machine are currently using are:
qiskit-aer
0.3.2qiskit-aqua
0.6.1qiskit-ibmq-provider
0.3.2qiskit-ignis
0.2.0qiskit-terra
0.10.0I'm sure that this is a quick fix of making sure the Qiskit dependencies match up then we'll be good to go, everything else goes through. I'll get on it either later tonight or tomorrow.
Attached is my error output:
``` Stored in directory: /root/.cache/pip/wheels/b4/99/9f/8eb77fdf759c1380719071722f2c37dd0fa1f6aa477c51cb6c Building wheel for qiskit-aer (setup.py): started Building wheel for qiskit-aer (setup.py): finished with status 'error' ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c29v_63a/qiskit-aer/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c29v_63a/qiskit-aer/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-meu2nsy_ cwd: /tmp/pip-install-c29v_63a/qiskit-aer/ Complete output (144 lines): -------------------------------------------------------------------------------- -- Trying "Ninja" generator -------------------------------- --------------------------- ---------------------- ----------------- ------------ ------- -- Not searching for unused variables given on the command line. CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred! See also "/tmp/pip-install-c29v_63a/qiskit-aer/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log". -- ------- ------------ ----------------- ---------------------- --------------------------- -------------------------------- -- Trying "Ninja" generator - failure -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Trying "Unix Makefiles" generator -------------------------------- --------------------------- ---------------------- ----------------- ------------ ------- -- Not searching for unused variables given on the command line. -- The C compiler identification is GNU 9.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- The CXX compiler identification is GNU 9.3.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /tmp/pip-install-c29v_63a/qiskit-aer/_cmake_test_compile/build -- ------- ------------ ----------------- ---------------------- --------------------------- -------------------------------- -- Trying "Unix Makefiles" generator - success -------------------------------------------------------------------------------- Configuring Project Working directory: /tmp/pip-install-c29v_63a/qiskit-aer/_skbuild/linux-x86_64-3.8/cmake-build Command: /tmp/pip-install-c29v_63a/qiskit-aer/.eggs/cmake-3.18.2.post1-py3.8-linux-x86_64.egg/cmake/data/bin/cmake /tmp/pip-install-c29v_63a/qiskit-aer -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-c29v_63a/qiskit-aer/_skbuild/linux-x86_64-3.8/cmake-install -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPYTHON_VERSION_STRING:STRING=3.8.2 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DSKBUILD:BOOL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/local/lib/python3.8/dist-packages/skbuild/resources/cmake -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 -DCMAKE_BUILD_TYPE:STRING=Release -- The CXX compiler identification is GNU 9.3.0 -- The C compiler identification is GNU 9.3.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Performing Test flag_supported -- Performing Test flag_supported - Success -- Looking for OpenMP support... -- OpenMP found! -- Looking for NLOHMANN Json library... -- nlohmann include dir: /tmp/pip-install-c29v_63a/qiskit-aer/src/third-party/headers -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Looking for OpenBLAS library... -- OpenBLAS not found. Looking for any other BLAS library... -- Looking for sgemm_ -- Looking for sgemm_ - not found CMake Error at .eggs/cmake-3.18.2.post1-py3.8-linux-x86_64.egg/cmake/data/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find BLAS (missing: BLAS_LIBRARIES) Call Stack (most recent call first): .eggs/cmake-3.18.2.post1-py3.8-linux-x86_64.egg/cmake/data/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) .eggs/cmake-3.18.2.post1-py3.8-linux-x86_64.egg/cmake/data/share/cmake-3.18/Modules/FindBLAS.cmake:947 (find_package_handle_standard_args) CMakeLists.txt:176 (find_package) -- Configuring incomplete, errors occurred! See also "/tmp/pip-install-c29v_63a/qiskit-aer/_skbuild/linux-x86_64-3.8/cmake-build/CMakeFiles/CMakeOutput.log". See also "/tmp/pip-install-c29v_63a/qiskit-aer/_skbuild/linux-x86_64-3.8/cmake-build/CMakeFiles/CMakeError.log". Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/skbuild/setuptools_wrap.py", line 582, in setup env = cmkr.configure(cmake_args, File "/usr/local/lib/python3.8/dist-packages/skbuild/cmaker.py", line 229, in configure raise SKBuildError( An error occurred while configuring with CMake. Command: /tmp/pip-install-c29v_63a/qiskit-aer/.eggs/cmake-3.18.2.post1-py3.8-linux-x86_64.egg/cmake/data/bin/cmake /tmp/pip-install-c29v_63a/qiskit-aer -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-c29v_63a/qiskit-aer/_skbuild/linux-x86_64-3.8/cmake-install -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPYTHON_VERSION_STRING:STRING=3.8.2 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DSKBUILD:BOOL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/local/lib/python3.8/dist-packages/skbuild/resources/cmake -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 -DCMAKE_BUILD_TYPE:STRING=Release Source directory: /tmp/pip-install-c29v_63a/qiskit-aer Working directory: /tmp/pip-install-c29v_63a/qiskit-aer/_skbuild/linux-x86_64-3.8/cmake-build Please see CMake's output for more information. ---------------------------------------- ERROR: Failed building wheel for qiskit-aer ```
In other news, just had my first class on Quantum Computation and Information today and it went fantastic. We're having to prove a bunch of concepts mathematically for the first assignment so it'll be "fun" for the first few weeks.
In other news, just had my first class on Quantum Computation and Information today and it went fantastic. We're having to prove a bunch of concepts mathematically for the first assignment so it'll be "fun" for the first few weeks.
Great, I hope you're enjoying it! :)
I'm sure that this is a quick fix of making sure the Qiskit dependencies match up then we'll be good to go, everything else goes through.
Let me know if you get stuck!
This issue is to track the problems with Python 3.8. It can be closed as soon as we can develop and run Cirq against 3.8, meaning that we have CI jobs against it as well.