Bug 2093926 - python-param fails to build with Python 3.11: TypeError: The only supported seed types are: None, int, float, str, bytes, and bytearray.
Summary: python-param fails to build with Python 3.11: TypeError: The only supported s...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-param
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2022-06-06 12:00 UTC by Tomáš Hrnčiar
Modified: 2022-06-14 16:02 UTC (History)
3 users (show)

Fixed In Version: python-param-1.12.0-7.fc37
Clone Of:
Environment:
Last Closed: 2022-06-14 16:02:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github holoviz param issues 602 0 None open numbergen - DeprecationWarning: Seeding based on hashing is deprecated since Python 3.9 2022-06-14 12:54:58 UTC

Description Tomáš Hrnčiar 2022-06-06 12:00:07 UTC
python-param fails to build with Python 3.11.0b3.


==================================== ERRORS ====================================
_______________ ERROR collecting tests/API0/testdynamicparams.py _______________
tests/API0/testdynamicparams.py:14: in <module>
    import numbergen
numbergen/__init__.py:277: in <module>
    class TimeAwareRandomState(TimeAware):
numbergen/__init__.py:310: in TimeAwareRandomState
    default=random.Random((500,500)), doc=
/usr/lib64/python3.11/random.py:125: in __init__
    self.seed(x)
/usr/lib64/python3.11/random.py:160: in seed
    raise TypeError('The only supported seed types are: None,\n'
E   TypeError: The only supported seed types are: None,
E   int, float, str, bytes, and bytearray.
_________________ ERROR collecting tests/API0/testnumbergen.py _________________
tests/API0/testnumbergen.py:6: in <module>
    import numbergen
numbergen/__init__.py:277: in <module>
    class TimeAwareRandomState(TimeAware):
numbergen/__init__.py:310: in TimeAwareRandomState
    default=random.Random((500,500)), doc=
/usr/lib64/python3.11/random.py:125: in __init__
    self.seed(x)
/usr/lib64/python3.11/random.py:160: in seed
    raise TypeError('The only supported seed types are: None,\n'
E   TypeError: The only supported seed types are: None,
E   int, float, str, bytes, and bytearray.
____________ ERROR collecting tests/API0/testparameterizedobject.py ____________
tests/API0/testparameterizedobject.py:7: in <module>
    import numbergen
numbergen/__init__.py:277: in <module>
    class TimeAwareRandomState(TimeAware):
numbergen/__init__.py:310: in TimeAwareRandomState
    default=random.Random((500,500)), doc=
/usr/lib64/python3.11/random.py:125: in __init__
    self.seed(x)
/usr/lib64/python3.11/random.py:160: in seed
    raise TypeError('The only supported seed types are: None,\n'
E   TypeError: The only supported seed types are: None,
E   int, float, str, bytes, and bytearray.
_______________ ERROR collecting tests/API0/testtimedependent.py _______________
tests/API0/testtimedependent.py:7: in <module>
    import numbergen
numbergen/__init__.py:277: in <module>
    class TimeAwareRandomState(TimeAware):
numbergen/__init__.py:310: in TimeAwareRandomState
    default=random.Random((500,500)), doc=
/usr/lib64/python3.11/random.py:125: in __init__
    self.seed(x)
/usr/lib64/python3.11/random.py:160: in seed
    raise TypeError('The only supported seed types are: None,\n'
E   TypeError: The only supported seed types are: None,
E   int, float, str, bytes, and bytearray.
_______________ ERROR collecting tests/API1/testdynamicparams.py _______________
tests/API1/testdynamicparams.py:13: in <module>
    import numbergen
numbergen/__init__.py:277: in <module>
    class TimeAwareRandomState(TimeAware):
numbergen/__init__.py:310: in TimeAwareRandomState
    default=random.Random((500,500)), doc=
/usr/lib64/python3.11/random.py:125: in __init__
    self.seed(x)
/usr/lib64/python3.11/random.py:160: in seed
    raise TypeError('The only supported seed types are: None,\n'
E   TypeError: The only supported seed types are: None,
E   int, float, str, bytes, and bytearray.
_________________ ERROR collecting tests/API1/testnumbergen.py _________________
tests/API1/testnumbergen.py:4: in <module>
    import numbergen
numbergen/__init__.py:277: in <module>
    class TimeAwareRandomState(TimeAware):
numbergen/__init__.py:310: in TimeAwareRandomState
    default=random.Random((500,500)), doc=
/usr/lib64/python3.11/random.py:125: in __init__
    self.seed(x)
/usr/lib64/python3.11/random.py:160: in seed
    raise TypeError('The only supported seed types are: None,\n'
E   TypeError: The only supported seed types are: None,
E   int, float, str, bytes, and bytearray.
____________ ERROR collecting tests/API1/testparameterizedobject.py ____________
tests/API1/testparameterizedobject.py:6: in <module>
    import numbergen
numbergen/__init__.py:277: in <module>
    class TimeAwareRandomState(TimeAware):
numbergen/__init__.py:310: in TimeAwareRandomState
    default=random.Random((500,500)), doc=
/usr/lib64/python3.11/random.py:125: in __init__
    self.seed(x)
/usr/lib64/python3.11/random.py:160: in seed
    raise TypeError('The only supported seed types are: None,\n'
E   TypeError: The only supported seed types are: None,
E   int, float, str, bytes, and bytearray.
_______________ ERROR collecting tests/API1/testtimedependent.py _______________
tests/API1/testtimedependent.py:6: in <module>
    import numbergen
numbergen/__init__.py:277: in <module>
    class TimeAwareRandomState(TimeAware):
numbergen/__init__.py:310: in TimeAwareRandomState
    default=random.Random((500,500)), doc=
/usr/lib64/python3.11/random.py:125: in __init__
    self.seed(x)
/usr/lib64/python3.11/random.py:160: in seed
    raise TypeError('The only supported seed types are: None,\n'
E   TypeError: The only supported seed types are: None,
E   int, float, str, bytes, and bytearray.
=========================== short test summary info ============================
ERROR tests/API0/testdynamicparams.py - TypeError: The only supported seed ty...
ERROR tests/API0/testnumbergen.py - TypeError: The only supported seed types ...
ERROR tests/API0/testparameterizedobject.py - TypeError: The only supported s...
ERROR tests/API0/testtimedependent.py - TypeError: The only supported seed ty...
ERROR tests/API1/testdynamicparams.py - TypeError: The only supported seed ty...
ERROR tests/API1/testnumbergen.py - TypeError: The only supported seed types ...
ERROR tests/API1/testparameterizedobject.py - TypeError: The only supported s...
ERROR tests/API1/testtimedependent.py - TypeError: The only supported seed ty...
!!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!
========================= 3 skipped, 8 errors in 0.65s =========================

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04497527-python-param/

For all our attempts to build python-param with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-param/

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

Let us know here if you have any questions.

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

Comment 1 Miro Hrončok 2022-06-14 16:02:52 UTC
Thank you.


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