Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 2220403

Summary: F39FailsToInstall: python3-pendulum
Product: [Fedora] Fedora Reporter: Fedora Fails To Install <fti-bugs>
Component: python-pendulumAssignee: Fabian Affolter <mail>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, mail
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-30 15:38:52 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:    
Bug Blocks: 2168845, 2135404, 2220069, 2220144, 2226094    

Description Fedora Fails To Install 2023-07-05 19:17:46 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 (python-pendulum) Fails To Install in Fedora 39:

can't install python3-pendulum:
  - nothing provides python(abi) = 3.11 needed by python3-pendulum-2.1.2-9.fc38.x86_64
  - nothing provides (python3.11dist(python-dateutil) < 3~~ with python3.11dist(python-dateutil) >= 2.6) needed by python3-pendulum-2.1.2-9.fc38.x86_64
  - nothing provides python3.11dist(pytzdata) >= 2020.1 needed by python3-pendulum-2.1.2-9.fc38.x86_64
  
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-39-x86_64 --config-opts mirrored=False install python3-pendulum


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 Fedora Fails To Install 2023-07-13 11:56:31 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 devel.org if you are unsure how to fix this bug.

Comment 2 Ben Beasley 2023-07-25 13:11:33 UTC
$ fedpkg mockbuild --enablerepo=local

Building wheels for collected packages: pendulum
  Building wheel for pendulum (pyproject.toml): started
  Running command Building wheel for pendulum (pyproject.toml)
  Traceback (most recent call last):
    File "/builddir/build/BUILD/pendulum-2.1.2/build.py", line 5, in <module>
      from distutils.command.build_ext import build_ext
  ModuleNotFoundError: No module named 'distutils'
  Traceback (most recent call last):
    File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/site-packages/poetry/core/masonry/api.py", line 57, in build_wheel
      return WheelBuilder.make_in(
             ^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 86, in make_in
      wb.build(target_dir=directory)
    File "/usr/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 121, in build
      self._build(zip_file)
    File "/usr/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 170, in _build
      self._run_build_script(self._package.build_script)
    File "/usr/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 230, in _run_build_script
      subprocess.check_call([self.executable.as_posix(), build_script])
    File "/usr/lib64/python3.12/subprocess.py", line 413, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['/usr/bin/python3', 'build.py']' returned non-zero exit status 1.
  error: subprocess-exited-with-error

  × Building wheel for pendulum (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /usr/bin/python3 /usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /builddir/build/BUILD/pendulum-2.1.2/.pyproject-builddir/tmpqk1w0hqq
  cwd: /builddir/build/BUILD/pendulum-2.1.2
  Building wheel for pendulum (pyproject.toml): finished with status 'error'
  ERROR: Failed building wheel for pendulum

Comment 3 Ben Beasley 2023-07-25 13:22:22 UTC
Here is a PR that makes the minimal change to build with Python 3.12.

https://src.fedoraproject.org/rpms/python-pendulum/pull-request/2

It would be really great if this package could get some attention. The test suite can easily be run, as demonstrated in https://src.fedoraproject.org/rpms/python-pendulum/pull-request/1.

Comment 4 Ben Beasley 2023-07-30 15:38:52 UTC
The package still needs attention, but merging and building the minimal fix in https://src.fedoraproject.org/rpms/python-pendulum/pull-request/2 has made it installable again. Thanks!

https://bodhi.fedoraproject.org/updates/FEDORA-2023-ea35e4020c