Bug 2291493

Summary: F41FailsToInstall: bodhi-composer, bodhi-server. TypeError: EnumSymbol.__init__() missing 2 required positional arguments: 'value' and 'description'
Product: [Fedora] Fedora Reporter: Fedora Fails To Install <fti-bugs>
Component: bodhi-serverAssignee: Mattia Verga <mattia.verga>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aurelien, lenka, mattia.verga, mhroncok, thrcka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: bodhi-server-8.1.1-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-24 08:17:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2245641, 2291658, 2291872, 2291873, 2291874, 2291971, 2291973    
Bug Blocks: 2260877, 2244836    

Description Fedora Fails To Install 2024-06-12 11:16:49 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

Your package (bodhi-server) Fails To Install in Fedora 41:

can't install bodhi-composer:
  - nothing provides python(abi) = 3.12 needed by bodhi-composer-8.1.0-1.fc41.noarch
  
can't install bodhi-server:
  - nothing provides python(abi) = 3.12 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(packaging) >= 21.3 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(jinja2) >= 2.11.3 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(requests) >= 2.25.1 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(python-bugzilla) >= 3.2 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(pyyaml) >= 5.4.1 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides (python3.12dist(beautifulsoup4) < 5~~ with python3.12dist(beautifulsoup4) >= 4.12) needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides (python3.12dist(bodhi-messages) < 9~~ with python3.12dist(bodhi-messages) >= 8) needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides (python3.12dist(libcomps) < 0.2~~ with python3.12dist(libcomps) >= 0.1.20) needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides (python3.12dist(pymediawiki) < 0.8~~ with python3.12dist(pymediawiki) >= 0.7) needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides (python3.12dist(zstandard) < 0.23~~ with python3.12dist(zstandard) >= 0.21) needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(alembic) >= 1.5.5 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(arrow) >= 0.17 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(authlib) >= 0.15.4 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(backoff) >= 1.10 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(bleach) >= 3.2.3 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(celery) >= 5.2.1 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(click) >= 7.1.2 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(colander) >= 1.8.3 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(dogpile-cache) >= 1.1.2 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(fedora-messaging) >= 3 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(feedgen) >= 0.9 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(koji) >= 1.27.1 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(markdown) >= 3.3.6 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(munch) >= 2.5 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(prometheus-client) >= 0.13.1 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(psycopg2) >= 2.8.6 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(py3dns) >= 3.2.1 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(pyasn1-modules) >= 0.2.8 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(pylibravatar) >= 1.6 needed by bodhi-server-8.1.0-1.fc41.noarch
  - nothing provides python3.12dist(waitress) >= 1.4.4 needed by bodhi-server-8.1.0-1.fc41.noarch
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-41-x86_64 --config-opts mirrored=False install bodhi-composer bodhi-server


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Miro Hrončok 2024-06-18 12:14:11 UTC
==================================== ERRORS ====================================
___________________ ERROR collecting tests/test___init__.py ____________________
/usr/lib/python3.13/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/usr/lib/python3.13/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.13/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/usr/lib/python3.13/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/usr/lib/python3.13/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/usr/lib/python3.13/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/usr/lib/python3.13/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/usr/lib/python3.13/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
    ???
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test___init__.py:25: in <module>
    from bodhi.server import models
bodhi/server/models.py:204: in <module>
    class DeclEnum(metaclass=EnumMeta):
bodhi/server/models.py:190: in __init__
    sym = reg[v[0]] = EnumSymbol(cls, k, *v)
E   TypeError: EnumSymbol.__init__() missing 2 required positional arguments: 'value' and 'description'

...

=========================== short test summary info ============================
ERROR tests/test___init__.py - TypeError: EnumSymbol.__init__() missing 2 req...
ERROR tests/test_bugs.py - TypeError: EnumSymbol.__init__() missing 2 require...
ERROR tests/test_mail.py - TypeError: EnumSymbol.__init__() missing 2 require...
ERROR tests/test_metadata.py - TypeError: EnumSymbol.__init__() missing 2 req...
ERROR tests/test_models.py - TypeError: EnumSymbol.__init__() missing 2 requi...
ERROR tests/test_notifications.py - TypeError: EnumSymbol.__init__() missing ...
ERROR tests/test_push.py - TypeError: EnumSymbol.__init__() missing 2 require...
ERROR tests/test_renderers.py - TypeError: EnumSymbol.__init__() missing 2 re...
ERROR tests/test_schemas.py - TypeError: EnumSymbol.__init__() missing 2 requ...
ERROR tests/test_security.py - TypeError: EnumSymbol.__init__() missing 2 req...
ERROR tests/test_util.py - TypeError: EnumSymbol.__init__() missing 2 require...
ERROR tests/test_validators.py - TypeError: EnumSymbol.__init__() missing 2 r...
ERROR tests/auth/test_fedora.py - TypeError: EnumSymbol.__init__() missing 2 ...
ERROR tests/auth/test_oauth.py - TypeError: EnumSymbol.__init__() missing 2 r...
ERROR tests/auth/test_utils.py - TypeError: EnumSymbol.__init__() missing 2 r...
ERROR tests/auth/test_views.py - TypeError: EnumSymbol.__init__() missing 2 r...
ERROR tests/consumers/test_automatic_updates.py - TypeError: EnumSymbol.__ini...
ERROR tests/consumers/test_ci.py - TypeError: EnumSymbol.__init__() missing 2...
ERROR tests/consumers/test_consumers.py - TypeError: EnumSymbol.__init__() mi...
ERROR tests/consumers/test_resultsdb.py - TypeError: EnumSymbol.__init__() mi...
ERROR tests/consumers/test_signed.py - TypeError: EnumSymbol.__init__() missi...
ERROR tests/consumers/test_waiverdb.py - TypeError: EnumSymbol.__init__() mis...
ERROR tests/functional/test_packages.py - TypeError: EnumSymbol.__init__() mi...
ERROR tests/functional/test_users.py - TypeError: EnumSymbol.__init__() missi...
ERROR tests/scripts/test_compat.py - TypeError: EnumSymbol.__init__() missing...
ERROR tests/scripts/test_initializedb.py - TypeError: EnumSymbol.__init__() m...
ERROR tests/scripts/test_sar.py - TypeError: EnumSymbol.__init__() missing 2 ...
ERROR tests/scripts/test_untag_branched.py - TypeError: EnumSymbol.__init__()...
ERROR tests/services/test_builds.py - TypeError: EnumSymbol.__init__() missin...
ERROR tests/services/test_comments.py - TypeError: EnumSymbol.__init__() miss...
ERROR tests/services/test_composes.py - TypeError: EnumSymbol.__init__() miss...
ERROR tests/services/test_csrf.py - TypeError: EnumSymbol.__init__() missing ...
ERROR tests/services/test_errors.py - TypeError: EnumSymbol.__init__() missin...
ERROR tests/services/test_overrides.py - TypeError: EnumSymbol.__init__() mis...
ERROR tests/services/test_releases.py - TypeError: EnumSymbol.__init__() miss...
ERROR tests/services/test_schemas.py - TypeError: EnumSymbol.__init__() missi...
ERROR tests/services/test_updates.py - TypeError: EnumSymbol.__init__() missi...
ERROR tests/tasks/test_approve_testing.py - TypeError: EnumSymbol.__init__() ...
ERROR tests/tasks/test_check_policies.py - TypeError: EnumSymbol.__init__() m...
ERROR tests/tasks/test_check_signed_builds.py - TypeError: EnumSymbol.__init_...
ERROR tests/tasks/test_clean_old_composes.py - TypeError: EnumSymbol.__init__...
ERROR tests/tasks/test_composer.py - TypeError: EnumSymbol.__init__() missing...
ERROR tests/tasks/test_expire_overrides.py - TypeError: EnumSymbol.__init__()...
ERROR tests/tasks/test_fetch_test_cases.py - TypeError: EnumSymbol.__init__()...
ERROR tests/tasks/test_handle_side_and_related_tags.py - TypeError: EnumSymbo...
ERROR tests/tasks/test_tag_update_builds.py - TypeError: EnumSymbol.__init__(...
ERROR tests/tasks/test_work_on_bugs.py - TypeError: EnumSymbol.__init__() mis...
ERROR tests/views/test_generic.py - TypeError: EnumSymbol.__init__() missing ...
!!!!!!!!!!!!!!!!!!! Interrupted: 48 errors during collection !!!!!!!!!!!!!!!!!!!
================== 4 warnings, 48 errors in 105.85s (0:01:45) ==================

Comment 2 Mattia Verga 2024-06-19 08:14:56 UTC
See https://github.com/fedora-infra/bodhi/pull/5686
Do you think it's the correct way to handle it? (a local rebuild passes)

Comment 3 Miro Hrončok 2024-06-19 08:51:14 UTC
I have no idea what is the code trying to achieve. But if it makes the tests pass 🤷

Comment 4 Fedora Fails To Install 2024-06-19 20:00:29 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 5 Mattia Verga 2024-06-21 15:50:03 UTC
I've merged the PR upstream. I was planning to make a 8.1.1 bugfix release with some other fixes, but it's taking longer than expected, so I think I'll simply backport a couple of urgent patches and fix the FTB/FTI.

Comment 6 Fedora Update System 2024-06-24 08:14:45 UTC
FEDORA-2024-fea3f9f3f1 (bodhi-server-8.1.1-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-fea3f9f3f1

Comment 7 Fedora Update System 2024-06-24 08:17:27 UTC
FEDORA-2024-fea3f9f3f1 (bodhi-server-8.1.1-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.