Package Details: python-ubelt 1.4.0-1

Git Clone URL: https://aur.archlinux.org/python-ubelt.git (read-only, click to copy)
Package Base: python-ubelt
Description: A Python utility belt containing simple tools
Upstream URL: https://github.com/Erotemic/ubelt
Licenses: Apache-2.0
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 1
Popularity: 0.98
First Submitted: 2022-05-24 18:34 (UTC)
Last Updated: 2025-09-22 20:06 (UTC)

Latest Comments

Nestor_013 commented on 2025-01-10 08:43 (UTC) (edited on 2025-01-10 08:43 (UTC) by Nestor_013)

It works smoothly now... Thanks.

Nestor_013 commented on 2025-01-09 12:54 (UTC)

@thrasibule I did not install future... Now I saw that you updated the PKGBUILD :-) and is seems the python-requests build dependency is missing :-(

    def __init__(self): >       import requests E       ModuleNotFoundError: No module named 'requests'  tests/test_download.py:457: ModuleNotFoundError 

thrasibule commented on 2025-01-08 18:52 (UTC)

@Nestor_013 ubelt doesn't depend on future directly, so try to remove python-future, and ubelt should install fine.

Nestor_013 commented on 2025-01-05 09:51 (UTC)

Hi I get a failure in check/test part:

DOCTEST PART BREAKDOWN Failed Part:      1 >>> # test with modules that won't be imported in normal circumstances      2 >>> # todo write a test where we guarantee this      3 >>> import ubelt as ub      4 >>> import sys      5 >>> modname_list = [      6 >>>     'pickletools',      7 >>>     'lib2to3.fixes.fix_apply',      8 >>> ]      9 >>> #assert not any(m in sys.modules for m in modname_list)     10 >>> modules = [ub.import_module_from_name(modname) for modname in modname_list]     11 >>> assert [m.__name__ for m in modules] == modname_list     12 >>> assert all(m in sys.modules for m in modname_list) DOCTEST TRACEBACK .... ModuleNotFoundError: No module named 'lib2to3' 

To what I understand, it could be linked to python 3.13 and future ? I'm stuck, also because ubelt is requested by lineprofiler. Any advice on how to solve this ?

Thanks.

lahwaacz commented on 2024-09-24 17:39 (UTC)

The sha256sums were not updated in the PKGBUILD for 1.3.6-1

lahwaacz commented on 2024-01-06 16:10 (UTC)

python-setuptools is missing in the makedepends

thrasibule commented on 2024-01-06 12:11 (UTC)

@mboquien tests pass fine here. It looks like you're trying to run the tests with the old python-ubelt. Are you doing anything strange with your PYTHONPATH?

mboquien commented on 2024-01-05 11:14 (UTC)

The package unfortunately fails to build at the moment.

====================================================== short test summary info ======================================================= FAILED test_autoprofile.py::test_single_function_autoprofile - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_autoprofile.py::test_multi_function_autoprofile - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_autoprofile.py::test_duplicate_function_autoprofile - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_autoprofile.py::test_autoprofile_script_with_module - AttributeError: 'dict' object has no attribute 'stdout' FAILED test_autoprofile.py::test_autoprofile_module - AttributeError: 'dict' object has no attribute 'stdout' FAILED test_autoprofile.py::test_autoprofile_module_list - AttributeError: 'dict' object has no attribute 'stdout' FAILED test_autoprofile.py::test_autoprofile_module_with_prof_imports - AttributeError: 'dict' object has no attribute 'stdout' FAILED test_autoprofile.py::test_autoprofile_script_with_prof_imports - AttributeError: 'dict' object has no attribute 'stdout' FAILED test_complex_case.py::test_complex_example_python_none - AttributeError: module 'ubelt' has no attribute 'udict' FAILED test_complex_case.py::test_varied_complex_invocations - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_explicit_profile.py::test_explicit_profile_with_nothing - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_explicit_profile.py::test_explicit_profile_with_environ_on - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_explicit_profile.py::test_explicit_profile_with_environ_off - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_explicit_profile.py::test_explicit_profile_with_cmdline - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_explicit_profile.py::test_explicit_profile_with_kernprof - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_explicit_profile.py::test_explicit_profile_with_in_code_enable - AttributeError: module 'ubelt' has no attribute 'ChDir' FAILED test_explicit_profile.py::test_explicit_profile_with_duplicate_functions - AttributeError: module 'ubelt' has no attribute 'ChDir' ============================================== 17 failed, 17 passed, 1 warning in 1.60s ============================================== Restoring cwd = '/home/mederic/.cache/yay/python-lineprofiler/src/line_profiler-4.1.2' ==> ERROR: A failure occurred in check().     Aborting.. 

Disabling check solves the issue, allowing the package to build. The module can then be imported without issue.