HFrost0 / bilix

⚡️Lightning-fast async download tool for bilibili and more
Apache License 2.0
1.58k stars 165 forks source link

ImportError due to deprecated 'cgi' module in Python 3.13 #202

Closed OverflowCat closed 5 months ago

OverflowCat commented 5 months ago

Description

The application is failing to import several modules due to a dependency on the deprecated 'cgi' module in Python 3.11. The error message "No module named 'cgi'" is being logged for each module import attempt.

Steps to Reproduce

Run bilix v <SOME BILIBILI VIDEO LINK>.

Observe the ImportError messages in the log.

duo to ImportError <No module named 'cgi'>, skip <module 'bilix.sites.bilibili'>
duo to ImportError <No module named 'cgi'>, skip <module 'bilix.download.base_downloader_part'>
duo to ImportError <No module named 'cgi'>, skip <module 'bilix.sites.douyin'>
duo to ImportError <No module named 'cgi'>, skip <module 'bilix.sites.hanime1'>
duo to ImportError <No module named 'cgi'>, skip <module 'bilix.sites.tiktok'>
duo to ImportError <No module named 'cgi'>, skip <module 'bilix.sites.youtube'>
duo to ImportError <No module named 'execjs'>, skip <module 'bilix.sites.yhdmp'>

Expected Behavior

The modules should be imported without any errors.

Actual Behavior

The application is unable to import the modules and logs an ImportError "No module named 'cgi'". However, the same code works in Python 3.12.

Environment

Python version: 3.13.0a2