Bug 295663 - www/py-html5rdf: Build fails with Python 3.14
Summary: www/py-html5rdf: Build fails with Python 3.14
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-05-28 12:07 UTC by Dean E. Weimer
Modified: 2026-05-28 12:20 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
patch to setup.py file to fix py314 compatibility (430 bytes, text/plain)
2026-05-28 12:07 UTC, Dean E. Weimer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dean E. Weimer 2026-05-28 12:07:07 UTC
Created attachment 271289 [details]
patch to setup.py file to fix py314 compatibility

=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for py314-html5rdf-1.2
* Getting build dependencies for wheel...
setup.py:77: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
  with codecs.open(join(here, 'README.rst'), 'r', 'utf8') as readme_file:
setup.py:78: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
  with codecs.open(join(here, 'CHANGES.rst'), 'r', 'utf8') as changes_file:
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
    ~~~~^^
  File "/usr/local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
    return hook(config_settings)
  File "/usr/local/lib/python3.14/site-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
    return self._get_build_requires(
           ~~~~~~~~~~~~~~~~~~~~~~~~^
        config_settings, requirements=['wheel'])
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
    self.run_setup()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/site-packages/setuptools/build_meta.py", line 174, in run_setup
    exec(compile(code, __file__, 'exec'), locals())
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "setup.py", line 90, in <module>
    isinstance(a.value, ast.Str)):
                        ^^^^^^^
AttributeError: module 'ast' has no attribute 'Str'

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/www/py-html5rdf
=>> Cleaning up wrkdir
===>  Cleaning for py314-html5rdf-1.2
build of www/py-html5rdf@py314 | py314-html5rdf-1.2 ended at 2026-05-27T14:53:44-05:00
build time: 00:00:03
times end [shell] (user/sys/real): 0m0.007s 0m0.028s 0m3.000s
times end [child] (user/sys/real): 0m2.196s 0m1.262s 0m3.000s
!!! build failure encountered !!!

I have attached a patch that fixes it for me.