Bug 2453850 - alot fails to build with Python 3.15: AttributeError: module 'glob' has no attribute 'glob1'. Did you mean '.glob' instead of '.glob1'?
Summary: alot fails to build with Python 3.15: AttributeError: module 'glob' has no at...
Keywords:
Status: CLOSED COMPLETED
Alias: None
Product: Fedora
Classification: Fedora
Component: alot
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Tomecek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-04-01 14:31 UTC by Karolina Surma
Modified: 2026-04-16 12:09 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-04-16 12:09:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pazz alot issues 1712 0 None open Python 3.15 removed glob1 (used in alot/account.py) 2026-04-03 09:27:22 UTC

Description Karolina Surma 2026-04-01 14:31:37 UTC
alot fails to build with Python 3.15.0a7.

Check import: alot.ui
Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/import_all_modules.py", line 106, in import_modules
    importlib.import_module(module)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/lib64/python3.15/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1317, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1282, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1247, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 857, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 747, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/builddir/build/BUILD/alot-0.12-build/BUILDROOT/usr/lib/python3.15/site-packages/alot/ui.py", line 15, in <module>
    from .buffers import BufferlistBuffer
  File "/builddir/build/BUILD/alot-0.12-build/BUILDROOT/usr/lib/python3.15/site-packages/alot/buffers/__init__.py", line 10, in <module>
    from .thread import ThreadBuffer
  File "/builddir/build/BUILD/alot-0.12-build/BUILDROOT/usr/lib/python3.15/site-packages/alot/buffers/thread.py", line 13, in <module>
    from .. import commands
  File "/builddir/build/BUILD/alot-0.12-build/BUILDROOT/usr/lib/python3.15/site-packages/alot/commands/__init__.py", line 210, in <module>
    pyfiles = glob.glob1(os.path.dirname(__file__), '*.py')
              ^^^^^^^^^^
AttributeError: module 'glob' has no attribute 'glob1'. Did you mean '.glob' instead of '.glob1'?

https://docs.python.org/3.15/whatsnew/3.15.html:
    Removed the undocumented glob.glob0() and glob.glob1() functions, which have been deprecated since Python 3.13. Use glob.glob() and pass a directory to its root_dir argument instead. (Contributed by Barney Gale in gh-137466.)


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10282443-alot/

For all our attempts to build alot with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/alot/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Dick Marinus 2026-04-15 18:52:20 UTC
Thanks! I've applied a patch from upstream in rawhide, let me know if this needs to applied to a specific branch.

Comment 2 Dick Marinus 2026-04-15 18:54:18 UTC
Sorry, I've created a PR: https://bugzilla.redhat.com/show_bug.cgi?id=2453850

Comment 4 Dick Marinus 2026-04-16 12:09:39 UTC
Merged to master


Note You need to log in before you can comment on or make changes to this bug.