Package Details: py-cidr 3.11.0-1

Git Clone URL: https://aur.archlinux.org/py-cidr.git (read-only, click to copy)
Package Base: py-cidr
Description: python module providing network / CIDR tools
Upstream URL: https://github.com/gene-git/py-cidr
Licenses: GPL-2.0-or-later
Submitter: GeneArch
Maintainer: GeneArch
Last Packager: GeneArch
Votes: 2
Popularity: 0.000712
First Submitted: 2025-01-18 19:17 (UTC)
Last Updated: 2026-01-04 22:10 (UTC)

Latest Comments

GeneArch commented on 2026-01-12 14:20 (UTC)

Terrific @simona

simona commented on 2026-01-12 14:16 (UTC)

solved

GeneArch commented on 2026-01-12 11:59 (UTC) (edited on 2026-01-12 12:20 (UTC) by GeneArch)

Hi @simona - sorry you're having trouble building the package. This seems to be failing due to missing a module. After python was updated to 3.14 all python packages need to be rebuilt.

Can you please rebuild / reinstall the pynotify package (and any other AUR python package) and see if that fixes it for you..

simona commented on 2026-01-12 11:45 (UTC)

ImportError while importing test module '/home/simona/.cache/yay/py-cidr/src/py-cidr/tests/test_cache_file.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test_cache_file.py:7: in <module>
from py_cidr import IPvxNetwork
py_cidr/init.py:19: in <module>
from .cidr_map import CidrMap
py_cidr/cidr_map.py:14: in <module>
from ._cidr_cache import (CidrCache)
py_cidr/_cidr_cache.py:23: in <module>
from lockmgr import LockMgr
/usr/lib/python3.14/site-packages/lockmgr/init.py:4: in <module>
from .class_lock import LockMgr
/usr/lib/python3.14/site-packages/lockmgr/class_lock.py:10: in <module>
from pynotify import Inotify, InotifyMask
E   ModuleNotFoundError: No module named 'pynotify'

――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting test_cidr_map.py ―――――――――――――――――――――――――――――――――――――――――――――― ImportError while importing test module '/home/simona/.cache/yay/py-cidr/src/py-cidr/tests/test_cidr_map.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.14/importlib/init.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ test_cidr_map.py:8: in <module> from py_cidr import CidrMap py_cidr/init.py:19: in <module> from .cidr_map import CidrMap py_cidr/cidr_map.py:14: in <module> from ._cidr_cache import (CidrCache) py_cidr/_cidr_cache.py:23: in <module> from lockmgr import LockMgr /usr/lib/python3.14/site-packages/lockmgr/init.py:4: in <module> from .class_lock import LockMgr /usr/lib/python3.14/site-packages/lockmgr/class_lock.py:10: in <module> from pynotify import Inotify, InotifyMask E ModuleNotFoundError: No module named 'pynotify' collected 6 items / 2 errors

================================================== short test summary info =================================================== FAILED test_cache_file.py FAILED test_cidr_map.py </ode>

GeneArch commented on 2025-07-17 09:52 (UTC)

@piater - so sorry about that and thanks for letting me know. The getlogin line was accidentally left instead of being deleted. Should be fixed in 3.7.0

piater commented on 2025-07-17 07:47 (UTC)

The os.getlogin() error during check() is back despite an apparent attempt in the code to work around it:

        user = _get_lock_user()

        if user:
>           user = os.getlogin()
                   ^^^^^^^^^^^^^
E           OSError: [Errno -25] Unknown error -25

GeneArch commented on 2025-05-20 23:05 (UTC)

@piater thanks for letting me know - good catch. Should be fixed in 3.4.0. Let me know if you have any further issues.

piater commented on 2025-05-20 20:16 (UTC)

When building in a clean chroot (I guess this triggers the problem), check() fails because one test contains a os.getlogin() that throws an exception. Presumably his test should be rewritten to e.g. use the tempfile module instead.

GeneArch commented on 2025-05-19 09:29 (UTC)

Fixed in 3.2.2 - thank you for letting me know @reylak

Reylak commented on 2025-05-19 07:00 (UTC)

Hello, this PKGBUILD is missing py-test in checkdepends.