dirhunt icon indicating copy to clipboard operation
dirhunt copied to clipboard

it dont work (ModuleNotFoundError: No module named 'cgi')

Open CF-Cat-Boy opened this issue 3 months ago • 2 comments

Command that causes the issue

when i do any command with dirhunt it has this error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Scripts\dirhunt.exe\__main__.py", line 2, in <module>
    from dirhunt.management import main
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\management.py", line 13, in <module>
    from dirhunt.crawler import Crawler
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\crawler.py", line 14, in <module>
    from dirhunt import processors
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\processors.py", line 15, in <module>
    from dirhunt.crawler_url import CrawlerUrl
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\crawler_url.py", line 3, in <module>
    import cgi
ModuleNotFoundError: No module named 'cgi'

Expected behavior

for it to work and not have any errors

Actual behavior

it had this error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Scripts\dirhunt.exe\__main__.py", line 2, in <module>
    from dirhunt.management import main
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\management.py", line 13, in <module>
    from dirhunt.crawler import Crawler
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\crawler.py", line 14, in <module>
    from dirhunt import processors
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\processors.py", line 15, in <module>
    from dirhunt.crawler_url import CrawlerUrl
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\crawler_url.py", line 3, in <module>
    import cgi
ModuleNotFoundError: No module named 'cgi'

Traceback

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Scripts\dirhunt.exe\__main__.py", line 2, in <module>
    from dirhunt.management import main
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\management.py", line 13, in <module>
    from dirhunt.crawler import Crawler
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\crawler.py", line 14, in <module>
    from dirhunt import processors
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\processors.py", line 15, in <module>
    from dirhunt.crawler_url import CrawlerUrl
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\crawler_url.py", line 3, in <module>
    import cgi
ModuleNotFoundError: No module named 'cgi'

Dirhunt version

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Scripts\dirhunt.exe\__main__.py", line 2, in <module>
    from dirhunt.management import main
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\management.py", line 13, in <module>
    from dirhunt.crawler import Crawler
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\crawler.py", line 14, in <module>
    from dirhunt import processors
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\processors.py", line 15, in <module>
    from dirhunt.crawler_url import CrawlerUrl
  File "C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt\crawler_url.py", line 3, in <module>
    import cgi
ModuleNotFoundError: No module named 'cgi'

(dirhunt v1.0.0, install path: C:\Users\cf86c\AppData\Local\Programs\Python\Python313\Lib\site-packages\dirhunt)

Operating system (including distribution name and version)

Windows 11 24H2

Other details

No response

Checklist

  • [x] The error is in the project's code, and not in my own.
  • [x] I have searched for this issue before posting it and there isn't an open duplicate.
  • [x] I ran pip install -U dirhunt and triggered the bug in the latest version.

CF-Cat-Boy avatar Sep 19 '25 01:09 CF-Cat-Boy

The tool only supports Python up to 3.12. cgi was removed on Python 3.13 onwards.

falcononrails avatar Sep 22 '25 11:09 falcononrails

sad

CF-Cat-Boy avatar Sep 22 '25 23:09 CF-Cat-Boy