Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

There is an error now when I install tensorflow 2.15.0 in Colab but yesterday, it was normal #872

Open
Khanhdii opened this issue Mar 26, 2025 · 0 comments

Comments

@Khanhdii
Copy link


RecursionError Traceback (most recent call last)
in <cell line: 0>()
----> 1 import tensorflow as tf
2 import tensorflow_quantum as tfq
3
4 import cirq
5 import sympy

16 frames
/usr/local/lib/python3.11/dist-packages/tensorflow/init.py in
46 _tf2.enable()
47
---> 48 from tensorflow._api.v2 import internal
49 from tensorflow._api.v2 import operators
50 from tensorflow._api.v2 import audio

/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/internal/init.py in
6 import sys as _sys
7
----> 8 from tensorflow._api.v2.internal import autograph
9 from tensorflow._api.v2.internal import decorator
10 from tensorflow._api.v2.internal import dispatch

/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/internal/autograph/init.py in
6 import sys as _sys
7
----> 8 from tensorflow.python.autograph.core.ag_ctx import control_status_ctx # line: 34
9 from tensorflow.python.autograph.impl.api import tf_convert # line: 493

/usr/local/lib/python3.11/dist-packages/tensorflow/python/autograph/core/ag_ctx.py in
19 import threading
20
---> 21 from tensorflow.python.autograph.utils import ag_logging
22 from tensorflow.python.util.tf_export import tf_export
23

/usr/local/lib/python3.11/dist-packages/tensorflow/python/autograph/utils/init.py in
15 """Utility module that contains APIs usable in the generated code."""
16
---> 17 from tensorflow.python.autograph.utils.context_managers import control_dependency_on_returns
18 from tensorflow.python.autograph.utils.misc import alias_tensors
19 from tensorflow.python.autograph.utils.tensor_list import dynamic_list_append

/usr/local/lib/python3.11/dist-packages/tensorflow/python/autograph/utils/context_managers.py in
17 import contextlib
18
---> 19 from tensorflow.python.framework import ops
20 from tensorflow.python.ops import tensor_array_ops
21

/usr/local/lib/python3.11/dist-packages/tensorflow/python/framework/ops.py in
43 from tensorflow.python import tf2
44 from tensorflow.python.client import pywrap_tf_session
---> 45 from tensorflow.python.eager import context
46 from tensorflow.python.eager import core
47 from tensorflow.python.eager import monitoring

/usr/local/lib/python3.11/dist-packages/tensorflow/python/eager/context.py in
35 from tensorflow.python.client import pywrap_tf_session
36 from tensorflow.python.eager import cancellation
---> 37 from tensorflow.python.eager import execute
38 from tensorflow.python.eager import executor
39 from tensorflow.python.eager import monitoring

/usr/local/lib/python3.11/dist-packages/tensorflow/python/eager/execute.py in
19 from tensorflow.python import pywrap_tfe
20 from tensorflow.python.eager import core
---> 21 from tensorflow.python.framework import dtypes
22 from tensorflow.python.framework import tensor_conversion_registry
23 from tensorflow.python.framework import tensor_shape

/usr/local/lib/python3.11/dist-packages/tensorflow/python/framework/dtypes.py in
19 from typing import Type, Sequence, Optional
20
---> 21 import ml_dtypes
22 import numpy as np
23

/usr/local/lib/python3.11/dist-packages/ml_dtypes/init.py in
38 from ml_dtypes._custom_floats import int4
39 from ml_dtypes._custom_floats import uint4
---> 40 from ml_dtypes._finfo import finfo
41 from ml_dtypes._iinfo import iinfo
42

/usr/local/lib/python3.11/dist-packages/ml_dtypes/_finfo.py in
26 import numpy as np
27
---> 28 _bfloat16_dtype = np.dtype(bfloat16)
29 _float8_e4m3b11fnuz_dtype = np.dtype(float8_e4m3b11fnuz)
30 _float8_e4m3fn_dtype = np.dtype(float8_e4m3fn)

/usr/local/lib/python3.11/dist-packages/numpy/core/_dtype.py in repr(dtype)
44
45 def repr(dtype):
---> 46 arg_str = _construction_repr(dtype, include_align=False)
47 if dtype.isalignedstruct:
48 arg_str = arg_str + ", align=True"

/usr/local/lib/python3.11/dist-packages/numpy/core/_dtype.py in _construction_repr(dtype, include_align, short)
98 return _subarray_str(dtype)
99 else:
--> 100 return _scalar_str(dtype, short=short)
101
102

/usr/local/lib/python3.11/dist-packages/numpy/core/_dtype.py in _scalar_str(dtype, short)
141 return "'%sm8%s'" % (byteorder, _datetime_metadata_str(dtype))
142
--> 143 elif np.issubdtype(dtype, np.number):
144 # Short repr with endianness, like '<f8'
145 if short or dtype.byteorder not in ('=', '|'):

/usr/local/lib/python3.11/dist-packages/numpy/_core/numerictypes.py in issubdtype(arg1, arg2)

... last 4 frames repeated, from the frame below ...

/usr/local/lib/python3.11/dist-packages/numpy/core/_dtype.py in repr(dtype)
44
45 def repr(dtype):
---> 46 arg_str = _construction_repr(dtype, include_align=False)
47 if dtype.isalignedstruct:
48 arg_str = arg_str + ", align=True"

RecursionError: maximum recursion depth exceeded while getting the repr of an object

@Khanhdii Khanhdii changed the title There are an error now when I install tensorflow 2.15.0 in Colab but yesterday, it is normal There is an error now when I install tensorflow 2.15.0 in Colab but yesterday, it was normal Mar 26, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant