Skip to content

Cirq compatibility tests failing in CI #884

@mhucka

Description

@mhucka

CI nightly tests are currently failing due to some incompatibility with Cirq

Run set -x
+ which python
/opt/hostedtoolcache/Python/3.10.15/x64/bin/python
+ python --version
Python 3.10.15
+ python -c 'import site; print(site.getsitepackages())'
['/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages']
+ python -c 'import tensorflow; print(tensorflow.version.VERSION)'
2025-08-28 07:18:36.470401: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
2025-08-28 07:18:36.502745: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2025-08-28 07:18:36.502784: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2025-08-28 07:18:36.503963: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2025-08-28 07:18:36.509549: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
2025-08-28 07:18:36.509815: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2025-08-28 07:18:37.367615: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2.15.0
+ python -c 'import cirq; print(cirq.__version__)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/cirq/__init__.py", line 44, in <module>
    from cirq import (
  File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/cirq/circuits/__init__.py", line 17, in <module>
    from cirq.circuits.text_diagram_drawer import TextDiagramDrawer as TextDiagramDrawer
  File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/cirq/circuits/text_diagram_drawer.py", line 17, in <module>
    from typing import Any, Callable, cast, Iterable, Mapping, NamedTuple, Self, Sequence, TYPE_CHECKING
ImportError: cannot import name 'Self' from 'typing' (/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/typing.py)

Metadata

Metadata

Assignees

Labels

area/dependenciesInvolves libraries or other software that TFQ depends onkind/bug-reportSomething doesn't seem to workpriority/p0This is urgent and needs to get done ASAP

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions