[PR #117] [bug fix] No module named 'gfpgan.version' #571

Closed
opened 2026-01-29 21:48:53 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/TencentARC/GFPGAN/pull/117

State: closed
Merged: Yes


The following error occurred when I tried to run the script with Pythone3, I simply removed this line from .version import * at gfpgan/__init__.py, and the problem fixed

File "/Users/Desktop/GFPGAN/inference_gfpgan.py", line 9, in <module>
    from gfpgan import GFPGANer
  File "/Users/Desktop/GFPGAN/gfpgan/__init__.py", line 6, in <module>
    from .version import *
ModuleNotFoundError: No module named 'gfpgan.version'

Machine: Mac

CPU: Intel

macOS: Monterey 12.1

Python: 3.x

Occurs with:

python3 inference_gfpgan.py --upscale 2 --test_path inputs/whole_imgs --save_root results

**Original Pull Request:** https://github.com/TencentARC/GFPGAN/pull/117 **State:** closed **Merged:** Yes --- The following error occurred when I tried to run the script with Pythone3, I simply removed this line `from .version import *` at `gfpgan/__init__.py`, and the problem fixed ``` File "/Users/Desktop/GFPGAN/inference_gfpgan.py", line 9, in <module> from gfpgan import GFPGANer File "/Users/Desktop/GFPGAN/gfpgan/__init__.py", line 6, in <module> from .version import * ModuleNotFoundError: No module named 'gfpgan.version' ``` ### Machine: Mac ### CPU: Intel ### macOS: Monterey 12.1 ### Python: 3.x ### Occurs with: ```python3 inference_gfpgan.py --upscale 2 --test_path inputs/whole_imgs --save_root results```
claunia added the pull-request label 2026-01-29 21:48:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#571