Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Example is not runable under python 3.10.12 #252

Open
yejingxin opened this issue Jul 15, 2024 · 0 comments
Open

Example is not runable under python 3.10.12 #252

yejingxin opened this issue Jul 15, 2024 · 0 comments

Comments

@yejingxin
Copy link

folllow the pip installation instructions and not able to run the example

cmds to reproduce the issue

mkdir test_airio
cd test_airio
python3 -m venv .
git clone https://github.com/google/airio.git
cd airio
pip install -e .
cd airio/example
python3 quickstart.py

got the following error

Traceback (most recent call last):
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/numpy/__init__.py", line 159, in <module>
    from . import ma
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/numpy/ma/__init__.py", line 42, in <module>
    from . import core
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/numpy/ma/core.py", line 7940, in <module>
    inner.__doc__ = doc_note(np.inner.__doc__,
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/numpy/ma/core.py", line 125, in doc_note
    notesplit = re.split(r'\n\s*?Notes\n\s*?-----', inspect.cleandoc(initialdoc))
AttributeError: partially initialized module 'inspect' has no attribute 'cleandoc' (most likely due to a circular import)
ImportError: numpy.core._multiarray_umath failed to import
Traceback (most recent call last):
  File "/home/yejingxin/test_airio/airio/airio/examples/quickstart.py", line 19, in <module>
    from absl import app
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/absl/app.py", line 31, in <module>
    import pdb
  File "/usr/lib/python3.10/pdb.py", line 75, in <module>
    import bdb
  File "/usr/lib/python3.10/bdb.py", line 6, in <module>
    from inspect import CO_GENERATOR, CO_COROUTINE, CO_ASYNC_GENERATOR
  File "/home/yejingxin/test_airio/airio/airio/examples/inspect.py", line 20, in <module>
    import airio.pygrain as airio
  File "/home/yejingxin/test_airio/airio/airio/pygrain.py", line 19, in <module>
    from ._src.pygrain import data_sources
  File "/home/yejingxin/test_airio/airio/airio/_src/pygrain/data_sources.py", line 23, in <module>
    import grain.python as grain
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/grain/python.py", line 21, in <module>
    from . import python_experimental as experimental
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/grain/python_experimental.py", line 22, in <module>
    from . import python_lazy_dataset as lazy_dataset
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/grain/python_lazy_dataset.py", line 21, in <module>
    from ._src.python.lazy_dataset.data_loader import DataLoader
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/grain/_src/python/lazy_dataset/data_loader.py", line 6, in <module>
    from grain._src.python.lazy_dataset import lazy_dataset
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/grain/_src/python/lazy_dataset/lazy_dataset.py", line 55, in <module>
    from grain._src.python import grain_pool
  File "/home/yejingxin/test_airio/lib/python3.10/site-packages/grain/_src/python/grain_pool.py", line 53, in <module>
    import pstats
  File "/usr/lib/python3.10/pstats.py", line 58, in <module>
    class FunctionProfile:
  File "/usr/lib/python3.10/dataclasses.py", line 1175, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
  File "/usr/lib/python3.10/dataclasses.py", line 1093, in _process_class
    str(inspect.signature(cls)).replace(' -> None', ''))
AttributeError: partially initialized module 'inspect' has no attribute 'signature' (most likely due to a circular import)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant