PadishahIII / RFGuess

基于机器学习的社工字典生成工具. A Machine Learning Approach for Password Guessing. The reproduction of (https://www.usenix.org/conference/usenixsecurity23/presentation/wang-ding-password-guessing)
https://www.usenix.org/conference/usenixsecurity23/presentation/wang-ding-password-guessing
MIT License
18 stars 5 forks source link

TypeError: Parameters to generic types must be types. Got <BaseTypes.PhoneNumber: 5000>. #2

Open allewwaly opened 7 months ago

allewwaly commented 7 months ago

C:\Users\john\RFGuess>python main.py Traceback (most recent call last): File "C:\Users\john\RFGuess\main.py", line 2, in from ui.slots import File "C:\Users\john\RFGuess\ui\slots.py", line 18, in from Generators.GeneralPIIGenerators import File "C:\Users\john\RFGuess\Generators\GeneralPIIGenerators.py", line 4, in from Parser.GeneralPIIParsers import File "C:\Users\john\RFGuess\Parser\GeneralPIIParsers.py", line 3, in from Parser.PIIParsers import File "C:\Users\john\RFGuess\Parser\PIIParsers.py", line 608, in class PIIToTagParser: File "C:\Users\john\RFGuess\Parser\PIIParsers.py", line 750, in PIIToTagParser def parsePhoneNumToTagDict(cls, phoneNum: str) -> typing.Dict[BasicTypes.PIIType.BaseTypes.PhoneNumber, list]: File "C:\Programs\Python\Python39\lib\typing.py", line 275, in inner return func(*args, **kwds) File "C:\Programs\Python\Python39\lib\typing.py", line 827, in getitem params = tuple(_type_check(p, msg) for p in params) File "C:\Programs\Python\Python39\lib\typing.py", line 827, in params = tuple(_type_check(p, msg) for p in params) File "C:\Programs\Python\Python39\lib\typing.py", line 164, in _type_check raise TypeError(f"{msg} Got {arg!r:.100}.") TypeError: Parameters to generic types must be types. Got <BaseTypes.PhoneNumber: 5000>.

PadishahIII commented 5 months ago

Hi, it seems like you are using a python interpreter older than 3.9, just move to 3.11 and this problem will disappear.