Cocos2dx python error when type cocos in cmd windows

When i type cocos in the cmd on windows 10 using cocos v3.17.2
i get this error my python is 2.7.5 and my cocos is 3.17.2 i put the cocos2d console on my path aswell

C:\Users\gupar\OneDrive\Desktop\cpp>cocos new cocostest2 -l cpp
Traceback (most recent call last):
File “D:\ufilesD\cocos2d-x-3.17.2\cocos2d-console-3\bin/cocos.py”, line 1049, in
match = re.match(ver_pattern, COCOS_ENGINE_VERSION)
File “C:\Python27\lib\re.py”, line 141, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or buffer

Please use python 2 and not 3

Oh mistyped meant to say my python is 2.7.5 and cocos is 3.17.2

Interesting because I don’t seem to have this issue.

I have the same issue, too.