Bug 1791963 - python-Pympler fails to build with Python 3.9: uses removed threading.Thread.isAlive()
Summary: python-Pympler fails to build with Python 3.9: uses removed threading.Thread....
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-Pympler
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominik 'Rathann' Mierzejewski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-01-16 19:08 UTC by Miro Hrončok
Modified: 2020-05-02 22:20 UTC (History)
3 users (show)

Fixed In Version: python-Pympler-0.8-3.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-02 22:20:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pympler pympler issues 104 0 None closed ERROR in test_background_monitoring (tracker.test_classtracker.SnapshotTestCase) with Python 3.9.0a2 2020-05-02 21:24:51 UTC

Description Miro Hrončok 2020-01-16 19:08:52 UTC
python-Pympler fails to build with Python 3.9.0a2.

======================================================================
ERROR: test_background_monitoring (tracker.test_classtracker.SnapshotTestCase)
Test background monitoring.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Pympler-0.8/test/tracker/test_classtracker.py", line 237, in test_background_monitoring
    self.tracker.stop_periodic_snapshots()
  File "/builddir/build/BUILDROOT/python-Pympler-0.8-1.fc32.x86_64/usr/lib/python3.9/site-packages/pympler/classtracker.py", line 514, in stop_periodic_snapshots
    if self._periodic_thread and self._periodic_thread.isAlive():
AttributeError: 'PeriodicThread' object has no attribute 'isAlive'

======================================================================
ERROR: test_background_monitoring (tracker.test_classtracker.SnapshotTestCase)
Test background monitoring.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Pympler-0.8/test/tracker/test_classtracker.py", line 151, in tearDown
    self.tracker.stop_periodic_snapshots()
  File "/builddir/build/BUILDROOT/python-Pympler-0.8-1.fc32.x86_64/usr/lib/python3.9/site-packages/pympler/classtracker.py", line 514, in stop_periodic_snapshots
    if self._periodic_thread and self._periodic_thread.isAlive():
AttributeError: 'PeriodicThread' object has no attribute 'isAlive'

See https://docs.python.org/3.9/whatsnew/3.9.html#removed

"The isAlive() method of threading.Thread has been removed. It was deprecated since Python 3.8. Use is_alive() instead."


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01148694-python-Pympler/

For all our attempts to build python-Pympler with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-Pympler/

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

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
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 Dominik 'Rathann' Mierzejewski 2020-01-16 22:27:55 UTC
Reported upstream.

Comment 2 Dominik 'Rathann' Mierzejewski 2020-01-29 23:56:28 UTC
And fixed upstream.

Comment 3 Ben Cotton 2020-02-11 17:22:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.


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