Bug 2099065 - python-pydata-sphinx-theme: F37FailsToInstall and build: invalid mode: 'rU' passed to open() in bundled gyp
Summary: python-pydata-sphinx-theme: F37FailsToInstall and build: invalid mode: 'rU' p...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pydata-sphinx-theme
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11 F37FTBFS F37FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2022-06-20 09:40 UTC by Miro Hrončok
Modified: 2022-06-23 22:01 UTC (History)
1 user (show)

Fixed In Version: python-pydata-sphinx-theme-0.8.1-3.fc37
Clone Of:
Environment:
Last Closed: 2022-06-23 22:01:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2022-06-20 09:40:50 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

Your package (python-pydata-sphinx-theme) Fails To Install in Fedora 37:

can't install python3-pydata-sphinx-theme:
  - nothing provides python3.10dist(packaging) needed by python3-pydata-sphinx-theme-0.8.1-2.fc37.noarch
  - nothing provides python3.10dist(beautifulsoup4) needed by python3-pydata-sphinx-theme-0.8.1-2.fc37.noarch
  - nothing provides python(abi) = 3.10 needed by python3-pydata-sphinx-theme-0.8.1-2.fc37.noarch
  - nothing provides (python3.10dist(docutils) < 0.17 or python3.10dist(docutils) > 0.17) needed by python3-pydata-sphinx-theme-0.8.1-2.fc37.noarch
  - nothing provides (python3.10dist(sphinx) < 5~~ with python3.10dist(sphinx) >= 3.5.4) needed by python3-pydata-sphinx-theme-0.8.1-2.fc37.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-37-x86_64 --disablerepo='*' --enablerepo=local install python3-pydata-sphinx-theme


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 2022-06-20 10:08:35 UTC
This bugzilla is likely a fallout from the Python 3.11 rebuild.

If your package (or some of the dependencies it has) failed to rebuild during the Python 3.11 rebuild, they now fail to install. To fix this, packages need to be rebuilt in Rawhide.

We will slowly triage the bugzillas, but we'd appreciate your help.

If you know this is blocked by an existing reported build failure or another package not yet rebuilt with Python 3.11, please mark it as such by using the "Depends On"/"Blocks" bugzilla fields. That will help us determine what failures to prioritize.

If this is not Python 3.11 related, please remove the PYTHON3.11 blocking tracker.

Thank you and sorry for the inconvenience. Let me know if you need any help.

Comment 2 Miro Hrončok 2022-06-21 14:57:14 UTC
Traceback (most recent call last):
  File "/builddir/build/BUILD/pydata-sphinx-theme-0.8.1/node_modules/node-gyp/gyp/gyp_main.py", line 51, in <module>
    sys.exit(gyp.script_main())
             ^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pydata-sphinx-theme-0.8.1/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 670, in script_main
    return main(sys.argv[1:])
           ^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pydata-sphinx-theme-0.8.1/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in main
    return gyp_main(args)
           ^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pydata-sphinx-theme-0.8.1/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_main
    [generator, flat_list, targets, data] = Load(
                                            ^^^^^
  File "/builddir/build/BUILD/pydata-sphinx-theme-0.8.1/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 150, in Load
    result = gyp.input.Load(
             ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pydata-sphinx-theme-0.8.1/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Load
    LoadTargetBuildFile(
    ^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pydata-sphinx-theme-0.8.1/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFile
    build_file_data = LoadOneBuildFile(
                      ^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pydata-sphinx-theme-0.8.1/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFile
    build_file_contents = open(build_file_path, "rU").read()
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid mode: 'rU' while trying to load binding.gyp







https://docs.python.org/3.11/whatsnew/3.11.html#changes-in-the-python-api

open(), io.open(), codecs.open() and fileinput.FileInput no longer accept 'U' (“universal newline”) in the file mode. This flag was deprecated since Python 3.3. In Python 3, the “universal newline” is used by default when a file is open in text mode. The newline parameter of open() controls how universal newlines works.

Comment 3 Jerry James 2022-06-23 20:15:06 UTC
Thank you for the fix, Miro.

Comment 4 Miro Hrončok 2022-06-23 22:01:13 UTC
You are welcome.


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