Package Details: python-etils 1.10.0-1

Git Clone URL: https://aur.archlinux.org/python-etils.git (read-only, click to copy)
Package Base: python-etils
Description: Collection of common python utils
Upstream URL: https://github.com/google/etils
Licenses: Apache-2.0
Submitter: yan12125
Maintainer: carlosal1015 (AutoUpdateBot)
Last Packager: carlosal1015
Votes: 4
Popularity: 0.010945
First Submitted: 2022-06-07 14:51 (UTC)
Last Updated: 2024-10-18 04:16 (UTC)

Dependencies (15)

Sources (1)

Latest Comments

Denzy7 commented on 2024-05-01 19:22 (UTC) (edited on 2024-05-01 19:25 (UTC) by Denzy7)

build fails on python 3.12 log

hashworks commented on 2024-04-28 01:12 (UTC)

Check seems to depend on python-distutils.

Rubo commented on 2024-03-27 20:43 (UTC)

I think python-importlib_resources should be moved to depends, as it is used in etils/epath/resource_utils.py.

emceebois commented on 2023-09-26 15:35 (UTC)

I'm seeing multiple check() failures:

==> Starting check()...
========================================= test session starts =========================================
platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/username/.cache/yay/python-etils/src/etils-1.5.0
plugins: benchmark-4.0.0, flake8-1.1.1, cov-4.1.0, subtests-0.11.0, anyio-3.7.1
collected 214 items / 7 errors                                                                        

=============================================== ERRORS ================================================
____________________________ ERROR collecting etils/enp/array_spec_test.py ____________________________
ImportError while importing test module '/home/username/.cache/yay/python-etils/src/etils-1.5.0/etils/enp/array_spec_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
etils/enp/array_spec_test.py:24: in <module>
    import tensorflow as tf
/usr/lib/python3.11/site-packages/tensorflow/__init__.py:38: in <module>
    from tensorflow.python.tools import module_util as _module_util
/usr/lib/python3.11/site-packages/tensorflow/python/__init__.py:37: in <module>
    from tensorflow.python.eager import context
/usr/lib/python3.11/site-packages/tensorflow/python/eager/context.py:29: in <module>
    from tensorflow.core.framework import function_pb2
/usr/lib/python3.11/site-packages/tensorflow/core/framework/function_pb2.py:5: in <module>
    from google.protobuf.internal import builder as _builder
/usr/lib/python3.11/site-packages/google/protobuf/internal/builder.py:41: in <module>
    from google.protobuf.internal import python_message
/usr/lib/python3.11/site-packages/google/protobuf/internal/python_message.py:61: in <module>
    from google.protobuf.internal import decoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/decoder.py:87: in <module>
    from google.protobuf.internal import encoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/encoder.py:71: in <module>
    from google.protobuf.internal import wire_format
/usr/lib/python3.11/site-packages/google/protobuf/internal/wire_format.py:36: in <module>
    from google.protobuf import descriptor
/usr/lib/python3.11/site-packages/google/protobuf/descriptor.py:51: in <module>
    from google.protobuf.pyext import _message
E   ImportError: libabsl_die_if_null.so.2308.0.0: cannot open shared object file: No such file or directory
_____________________________ ERROR collecting etils/enp/checking_test.py _____________________________
ImportError while importing test module '/home/username/.cache/yay/python-etils/src/etils-1.5.0/etils/enp/checking_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
etils/enp/checking_test.py:53: in <module>
    @enp.testing.parametrize_xnp()
etils/enp/testing.py:61: in parametrize_xnp
    'tnp': lazy.tnp,
etils/enp/numpy_utils.py:98: in tnp
    import tensorflow.experimental.numpy as tnp  # pylint: disable=g-import-not-at-top  # pytype: disable=import-error
/usr/lib/python3.11/site-packages/tensorflow/__init__.py:38: in <module>
    from tensorflow.python.tools import module_util as _module_util
/usr/lib/python3.11/site-packages/tensorflow/python/__init__.py:37: in <module>
    from tensorflow.python.eager import context
/usr/lib/python3.11/site-packages/tensorflow/python/eager/context.py:29: in <module>
    from tensorflow.core.framework import function_pb2
/usr/lib/python3.11/site-packages/tensorflow/core/framework/function_pb2.py:5: in <module>
    from google.protobuf.internal import builder as _builder
/usr/lib/python3.11/site-packages/google/protobuf/internal/builder.py:41: in <module>
    from google.protobuf.internal import python_message
/usr/lib/python3.11/site-packages/google/protobuf/internal/python_message.py:61: in <module>
    from google.protobuf.internal import decoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/decoder.py:87: in <module>
    from google.protobuf.internal import encoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/encoder.py:71: in <module>
    from google.protobuf.internal import wire_format
/usr/lib/python3.11/site-packages/google/protobuf/internal/wire_format.py:36: in <module>
    from google.protobuf import descriptor
/usr/lib/python3.11/site-packages/google/protobuf/descriptor.py:51: in <module>
    from google.protobuf.pyext import _message
E   ImportError: libabsl_die_if_null.so.2308.0.0: cannot open shared object file: No such file or directory
____________________________ ERROR collecting etils/enp/geo_utils_test.py _____________________________
ImportError while importing test module '/home/username/.cache/yay/python-etils/src/etils-1.5.0/etils/enp/geo_utils_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
etils/enp/geo_utils_test.py:38: in <module>
    @enp.testing.parametrize_xnp(restrict=['np'])
etils/enp/testing.py:61: in parametrize_xnp
    'tnp': lazy.tnp,
etils/enp/numpy_utils.py:98: in tnp
    import tensorflow.experimental.numpy as tnp  # pylint: disable=g-import-not-at-top  # pytype: disable=import-error
/usr/lib/python3.11/site-packages/tensorflow/__init__.py:38: in <module>
    from tensorflow.python.tools import module_util as _module_util
/usr/lib/python3.11/site-packages/tensorflow/python/__init__.py:37: in <module>
    from tensorflow.python.eager import context
/usr/lib/python3.11/site-packages/tensorflow/python/eager/context.py:29: in <module>
    from tensorflow.core.framework import function_pb2
/usr/lib/python3.11/site-packages/tensorflow/core/framework/function_pb2.py:5: in <module>
    from google.protobuf.internal import builder as _builder
/usr/lib/python3.11/site-packages/google/protobuf/internal/builder.py:41: in <module>
    from google.protobuf.internal import python_message
/usr/lib/python3.11/site-packages/google/protobuf/internal/python_message.py:61: in <module>
    from google.protobuf.internal import decoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/decoder.py:87: in <module>
    from google.protobuf.internal import encoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/encoder.py:71: in <module>
    from google.protobuf.internal import wire_format
/usr/lib/python3.11/site-packages/google/protobuf/internal/wire_format.py:36: in <module>
    from google.protobuf import descriptor
/usr/lib/python3.11/site-packages/google/protobuf/descriptor.py:51: in <module>
    from google.protobuf.pyext import _message
E   ImportError: libabsl_die_if_null.so.2308.0.0: cannot open shared object file: No such file or directory
___________________________ ERROR collecting etils/enp/interp_utils_test.py ___________________________
ImportError while importing test module '/home/username/.cache/yay/python-etils/src/etils-1.5.0/etils/enp/interp_utils_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
etils/enp/interp_utils_test.py:25: in <module>
    @enp.testing.parametrize_xnp()
etils/enp/testing.py:61: in parametrize_xnp
    'tnp': lazy.tnp,
etils/enp/numpy_utils.py:98: in tnp
    import tensorflow.experimental.numpy as tnp  # pylint: disable=g-import-not-at-top  # pytype: disable=import-error
/usr/lib/python3.11/site-packages/tensorflow/__init__.py:38: in <module>
    from tensorflow.python.tools import module_util as _module_util
/usr/lib/python3.11/site-packages/tensorflow/python/__init__.py:37: in <module>
    from tensorflow.python.eager import context
/usr/lib/python3.11/site-packages/tensorflow/python/eager/context.py:29: in <module>
    from tensorflow.core.framework import function_pb2
/usr/lib/python3.11/site-packages/tensorflow/core/framework/function_pb2.py:5: in <module>
    from google.protobuf.internal import builder as _builder
/usr/lib/python3.11/site-packages/google/protobuf/internal/builder.py:41: in <module>
    from google.protobuf.internal import python_message
/usr/lib/python3.11/site-packages/google/protobuf/internal/python_message.py:61: in <module>
    from google.protobuf.internal import decoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/decoder.py:87: in <module>
    from google.protobuf.internal import encoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/encoder.py:71: in <module>
    from google.protobuf.internal import wire_format
/usr/lib/python3.11/site-packages/google/protobuf/internal/wire_format.py:36: in <module>
    from google.protobuf import descriptor
/usr/lib/python3.11/site-packages/google/protobuf/descriptor.py:51: in <module>
    from google.protobuf.pyext import _message
E   ImportError: libabsl_die_if_null.so.2308.0.0: cannot open shared object file: No such file or directory
______________________________ ERROR collecting etils/enp/linalg_test.py ______________________________
ImportError while importing test module '/home/username/.cache/yay/python-etils/src/etils-1.5.0/etils/enp/linalg_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
etils/enp/linalg_test.py:24: in <module>
    @enp.testing.parametrize_xnp()
etils/enp/testing.py:61: in parametrize_xnp
    'tnp': lazy.tnp,
etils/enp/numpy_utils.py:98: in tnp
    import tensorflow.experimental.numpy as tnp  # pylint: disable=g-import-not-at-top  # pytype: disable=import-error
/usr/lib/python3.11/site-packages/tensorflow/__init__.py:38: in <module>
    from tensorflow.python.tools import module_util as _module_util
/usr/lib/python3.11/site-packages/tensorflow/python/__init__.py:37: in <module>
    from tensorflow.python.eager import context
/usr/lib/python3.11/site-packages/tensorflow/python/eager/context.py:29: in <module>
    from tensorflow.core.framework import function_pb2
/usr/lib/python3.11/site-packages/tensorflow/core/framework/function_pb2.py:5: in <module>
    from google.protobuf.internal import builder as _builder
/usr/lib/python3.11/site-packages/google/protobuf/internal/builder.py:41: in <module>
    from google.protobuf.internal import python_message
/usr/lib/python3.11/site-packages/google/protobuf/internal/python_message.py:61: in <module>
    from google.protobuf.internal import decoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/decoder.py:87: in <module>
    from google.protobuf.internal import encoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/encoder.py:71: in <module>
    from google.protobuf.internal import wire_format
/usr/lib/python3.11/site-packages/google/protobuf/internal/wire_format.py:36: in <module>
    from google.protobuf import descriptor
/usr/lib/python3.11/site-packages/google/protobuf/descriptor.py:51: in <module>
    from google.protobuf.pyext import _message
E   ImportError: libabsl_die_if_null.so.2308.0.0: cannot open shared object file: No such file or directory
___________________________ ERROR collecting etils/enp/numpy_utils_test.py ____________________________
ImportError while importing test module '/home/username/.cache/yay/python-etils/src/etils-1.5.0/etils/enp/numpy_utils_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
etils/enp/numpy_utils_test.py:22: in <module>
    import tensorflow as tf
/usr/lib/python3.11/site-packages/tensorflow/__init__.py:38: in <module>
    from tensorflow.python.tools import module_util as _module_util
/usr/lib/python3.11/site-packages/tensorflow/python/__init__.py:37: in <module>
    from tensorflow.python.eager import context
/usr/lib/python3.11/site-packages/tensorflow/python/eager/context.py:29: in <module>
    from tensorflow.core.framework import function_pb2
/usr/lib/python3.11/site-packages/tensorflow/core/framework/function_pb2.py:5: in <module>
    from google.protobuf.internal import builder as _builder
/usr/lib/python3.11/site-packages/google/protobuf/internal/builder.py:41: in <module>
    from google.protobuf.internal import python_message
/usr/lib/python3.11/site-packages/google/protobuf/internal/python_message.py:61: in <module>
    from google.protobuf.internal import decoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/decoder.py:87: in <module>
    from google.protobuf.internal import encoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/encoder.py:71: in <module>
    from google.protobuf.internal import wire_format
/usr/lib/python3.11/site-packages/google/protobuf/internal/wire_format.py:36: in <module>
    from google.protobuf import descriptor
/usr/lib/python3.11/site-packages/google/protobuf/descriptor.py:51: in <module>
    from google.protobuf.pyext import _message
E   ImportError: libabsl_die_if_null.so.2308.0.0: cannot open shared object file: No such file or directory
________________________ ERROR collecting etils/enp/array_types/dtypes_test.py ________________________
ImportError while importing test module '/home/username/.cache/yay/python-etils/src/etils-1.5.0/etils/enp/array_types/dtypes_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
etils/enp/array_types/dtypes_test.py:198: in <module>
    @enp.testing.parametrize_xnp()
etils/enp/testing.py:61: in parametrize_xnp
    'tnp': lazy.tnp,
etils/enp/numpy_utils.py:98: in tnp
    import tensorflow.experimental.numpy as tnp  # pylint: disable=g-import-not-at-top  # pytype: disable=import-error
/usr/lib/python3.11/site-packages/tensorflow/__init__.py:38: in <module>
    from tensorflow.python.tools import module_util as _module_util
/usr/lib/python3.11/site-packages/tensorflow/python/__init__.py:37: in <module>
    from tensorflow.python.eager import context
/usr/lib/python3.11/site-packages/tensorflow/python/eager/context.py:29: in <module>
    from tensorflow.core.framework import function_pb2
/usr/lib/python3.11/site-packages/tensorflow/core/framework/function_pb2.py:5: in <module>
    from google.protobuf.internal import builder as _builder
/usr/lib/python3.11/site-packages/google/protobuf/internal/builder.py:41: in <module>
    from google.protobuf.internal import python_message
/usr/lib/python3.11/site-packages/google/protobuf/internal/python_message.py:61: in <module>
    from google.protobuf.internal import decoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/decoder.py:87: in <module>
    from google.protobuf.internal import encoder
/usr/lib/python3.11/site-packages/google/protobuf/internal/encoder.py:71: in <module>
    from google.protobuf.internal import wire_format
/usr/lib/python3.11/site-packages/google/protobuf/internal/wire_format.py:36: in <module>
    from google.protobuf import descriptor
/usr/lib/python3.11/site-packages/google/protobuf/descriptor.py:51: in <module>
    from google.protobuf.pyext import _message
E   ImportError: libabsl_die_if_null.so.2308.0.0: cannot open shared object file: No such file or directory
========================================== warnings summary ===========================================
../../../../../../../usr/lib/python3.11/site-packages/google/protobuf/internal/api_implementation.py:110
  /usr/lib/python3.11/site-packages/google/protobuf/internal/api_implementation.py:110: UserWarning: Selected implementation cpp is not available.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================= short test summary info =======================================
ERROR etils/enp/array_spec_test.py
ERROR etils/enp/checking_test.py
ERROR etils/enp/geo_utils_test.py
ERROR etils/enp/interp_utils_test.py
ERROR etils/enp/linalg_test.py
ERROR etils/enp/numpy_utils_test.py
ERROR etils/enp/array_types/dtypes_test.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================== 1 warning, 7 errors in 4.57s =====================================
==> ERROR: A failure occurred in check().
    Aborting...

zxeoc commented on 2023-09-21 07:06 (UTC) (edited on 2023-09-21 07:06 (UTC) by zxeoc)

I got an error when installing.

ModuleNotFoundError: No module named 'mediapy'

carlosal1015 commented on 2023-07-11 17:34 (UTC)

Hi @Henry-ZHR, looks like an upstream issue in interp_utils_test.py.

 python
Python 3.11.3 (main, Jun  5 2023, 09:32:32) [GCC 13.1.1 20230429] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from etils import enp
>>> import numpy as np
>>> enable_tf_np_mode = enp.testing.set_tnp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'etils.enp' has no attribute 'testing'

Henry-ZHR commented on 2023-07-11 12:09 (UTC)

check() failed

etils/enp/interp_utils_test.py:70: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (<function assert_allclose.<locals>.compare at 0x7f1148914c20>, array([[0.99999994, 0.99999994, 0.        ],
       [0...     , 0.       ],
       [1.       , 0.5019608, 0.       ],
       [1.       , 0.       , 0.5019608]], dtype=float32))
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True}

    @wraps(func)
    def inner(*args, **kwds):
        with self._recreate_cm():
>           return func(*args, **kwds)
E           AssertionError: 
E           Not equal to tolerance rtol=1e-07, atol=0
E           
E           Mismatched elements: 2 / 9 (22.2%)
E           Max absolute difference: 5.9604645e-08
E           Max relative difference: 1.1874362e-07
E            x: array([[1.      , 1.      , 0.      ],
E                  [1.      , 0.501961, 0.      ],
E                  [1.      , 0.      , 0.501961]], dtype=float32)
E            y: array([[1.      , 1.      , 0.      ],
E                  [1.      , 0.501961, 0.      ],
E                  [1.      , 0.      , 0.501961]], dtype=float32)

/usr/lib/python3.11/contextlib.py:81: AssertionError

Is this expected?

yan12125 commented on 2023-01-05 09:09 (UTC)

Gonna orphan along with python-tensorflow-datasets