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

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

📋 Pull Request Information

Original PR: https://github.com/TencentARC/GFPGAN/pull/117
Author: @darbazali
Created: 12/14/2021
Status: Merged
Merged: 12/16/2021
Merged by: @xinntao

Base: masterHead: master


📝 Commits (1)

  • 35b3484 [bug fix] No module named 'gfpgan.version'

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 gfpgan/__init__.py (+1 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TencentARC/GFPGAN/pull/117 **Author:** [@darbazali](https://github.com/darbazali) **Created:** 12/14/2021 **Status:** ✅ Merged **Merged:** 12/16/2021 **Merged by:** [@xinntao](https://github.com/xinntao) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`35b3484`](https://github.com/TencentARC/GFPGAN/commit/35b3484c516685df189f674439c0962e5151a30e) [bug fix] No module named 'gfpgan.version' ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `gfpgan/__init__.py` (+1 -1) </details> ### 📄 Description 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``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 21:48:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#568