[issue2551395] Use of os.path.stat.ST_MTIME in python 3.13 crashes roundup on windows

John Rouillard <[email protected]> Thu, 30 Jan 2025 22:49:09 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

On IRC Randy reported a crash with Roundup 2.4 running under windows Python 3.13.

Around 15:08.21 a fix was proposed (with Bitdancer's help):

  add "import stat" at top of engine_zopetal.py
  then change "os.path.stat.ST_MTIME" to stat.ST_MTIME

It looks like os.path.stat was removed as part of the windows build somehow.
Bitdancer reported that it did work with Python 3.13 on Unix, which explains
why CI didn't catch this.

Possible bug in ntpath module? Consider checking/submitting upstream.

Randy reported that the fix worked around 15:54.

See: https://github.com/rouilj/RoundupIrcLog/blob/master/roundup/2025-01-30.md
for details.

----------
assignee: rouilj
components: Web interface
messages: 8333
nosy: randy, rouilj
priority: high
severity: major
status: new
title: Use of os.path.stat.ST_MTIME in python 3.13 crashes roundup on windows
type: crash

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551395>
_________________________________________________