Bug 2368969 - python-wcwidth fails to build with Python 3.14: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
Summary: python-wcwidth fails to build with Python 3.14: DeprecationWarning: codecs.op...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-wcwidth
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-05-28 14:44 UTC by Karolina Surma
Modified: 2025-05-28 15:07 UTC (History)
6 users (show)

Fixed In Version: python-wcwidth-0.2.13-11.fc43
Clone Of:
Environment:
Last Closed: 2025-05-28 15:07:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-wcwidth pull-request 13 0 None None None 2025-05-28 14:57:35 UTC
Github jquast wcwidth pull 141 0 None open Don't use codecs.open on Python 3 2025-05-28 14:57:35 UTC

Description Karolina Surma 2025-05-28 14:44:46 UTC
python-wcwidth fails to build with Python 3.14.0b2.

_____________________ test_recommended_emoji_zwj_sequences _____________________

    @pytest.mark.skipif(NARROW_ONLY, reason="Some sequences in text file are not compatible with 'narrow' builds")
    def test_recommended_emoji_zwj_sequences():
        """
        Test wcswidth of all of the unicode.org-published emoji-zwj-sequences.txt
        """
        # given,
>       lines, sequences = read_sequences_from_file('emoji-zwj-sequences.txt')

tests/test_emojis.py:164: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_emojis.py:149: in read_sequences_from_file
    fp = codecs.open(os.path.join(os.path.dirname(__file__), filename), 'r', encoding='utf-8')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

filename = '/builddir/build/BUILD/python-wcwidth-0.2.13-build/wcwidth-0.2.13/tests/emoji-zwj-sequences.txt'
mode = 'r', encoding = 'utf-8', errors = 'strict', buffering = -1

>   ???
E   DeprecationWarning: codecs.open() is deprecated. Use open() instead.

<frozen codecs>:916: DeprecationWarning
___________________ test_recommended_variation_16_sequences ____________________

    def test_recommended_variation_16_sequences():
        """
        Test wcswidth of all of the unicode.org-published emoji-variation-sequences.txt
        """
        # given,
>       lines, sequences = read_sequences_from_file('emoji-variation-sequences.txt')

tests/test_emojis.py:190: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_emojis.py:149: in read_sequences_from_file
    fp = codecs.open(os.path.join(os.path.dirname(__file__), filename), 'r', encoding='utf-8')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

filename = '/builddir/build/BUILD/python-wcwidth-0.2.13-build/wcwidth-0.2.13/tests/emoji-variation-sequences.txt'
mode = 'r', encoding = 'utf-8', errors = 'strict', buffering = -1

>   ???
E   DeprecationWarning: codecs.open() is deprecated. Use open() instead.

<frozen codecs>:916: DeprecationWarning
=========================== short test summary info ============================
FAILED tests/test_emojis.py::test_recommended_emoji_zwj_sequences - DeprecationWarning: codecs.open() is deprecated. Use open() instead.
FAILED tests/test_emojis.py::test_recommended_variation_16_sequences - DeprecationWarning: codecs.open() is deprecated. Use open() instead.
=================== 2 failed, 36 passed, 1 skipped in 0.15s ====================

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09093401-python-wcwidth/

For all our attempts to build python-wcwidth with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/python-wcwidth/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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.


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