mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-26 07:42:02 +00:00
[PR #619] Fix Python 3.13 compatibility #630
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TencentARC/GFPGAN/pull/619
Author: @Disty0
Created: 6/11/2025
Status: 🔄 Open
Base:
master← Head:master📝 Commits (3)
09b1190Fix Python 3.1386c4253add pyproject.tomlae0f7e4fix dependencies📊 Changes
2 files changed (+29 additions, -2 deletions)
View changed files
➕
pyproject.toml(+28 -0)📝
setup.py(+1 -2)📄 Description
Fixes Python 3.13 compatibility.
exec doesn't update locals with Python 3.13.
This PR parses the version file as a text instead of running exec.
GFPGAN cannot be installed with Python 3.13 without this PR.
Relevant issue from BasicSR repo is this: https://github.com/XPixelGroup/BasicSR/issues/725
Issue thread is from BasicSR but the issue and the trace is the same in GFPGAN.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.