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

Error 'type' object is not subscriptable #3

Closed
altheeagle opened this issue Apr 23, 2022 · 4 comments
Closed

Error 'type' object is not subscriptable #3

altheeagle opened this issue Apr 23, 2022 · 4 comments

Comments

@altheeagle
Copy link

I get the following error when I run it with Python3:
Traceback (most recent call last):
File "deep-web-scanner.py", line 17, in
output_strings: list[str] = []
TypeError: 'type' object is not subscriptable

@Leetcore
Copy link
Owner

Which specific version of python 3 are you using?

@IluPlays
Copy link

I get the same problem. I'm using python 3.7.3.

@0815Cracky
Copy link

0815Cracky commented Apr 23, 2022

yep, same here!

root@dream:~/deepweb# python3 deep-web-scanner.py Traceback (most recent call last): File "deep-web-scanner.py", line 17, in <module> output_strings: list[str] = [] TypeError: 'type' object is not subscriptable root@dream:~/deepweb#

I'm using Python 3.8.10
On Ubuntu 20.04

@Leetcore
Copy link
Owner

The script was written with python 3.9. I tested it with python 3.8 and got the same error. The solution is to install python3.9 additionally:

sudo apt install python3.9
python3.9 -m pip install -r requirements.txt
python3.9 deep-web-scanner.py

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants