Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'type' object is not subscriptable #29

Closed
adchdev opened this issue Nov 10, 2022 · 1 comment · Fixed by #30
Closed

TypeError: 'type' object is not subscriptable #29

adchdev opened this issue Nov 10, 2022 · 1 comment · Fixed by #30
Labels
bug Something isn't working

Comments

@adchdev
Copy link

adchdev commented Nov 10, 2022

I have installed requirements successfully but using Python 3.8 on both on Ubuntu 20.04 and Windows 10 I get the same error after trying to run darkspider.py:

Traceback (most recent call last):
  File "darkspider.py", line 58, in <module>
    from modules.helper import get_tor_proxies, setup_custom_logger
  File "/home/acwh0110/DarkSpider/modules/__init__.py", line 1, in <module>
    from modules.crawler import Crawler
  File "/home/acwh0110/DarkSpider/modules/crawler.py", line 15, in <module>
    from modules.checker import url_canon
  File "/home/acwh0110/DarkSpider/modules/checker.py", line 9, in <module>
    from modules.helper import TorProxyException, TorServiceException, get_requests_header
  File "/home/acwh0110/DarkSpider/modules/helper/__init__.py", line 1, in <module>
    from .helper import *
  File "/home/acwh0110/DarkSpider/modules/helper/helper.py", line 79, in <module>
    name: str, filename: str = "log.log", verbose_: bool = False, filelog: bool = True, argv: list[str] = None
TypeError: 'type' object is not subscriptable
@PROxZIMA
Copy link
Owner

The type hint list[str] is supported in python 3.9 and above. I'll add backward compatibility.

@PROxZIMA PROxZIMA added the bug Something isn't working label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants