can anyone please help me with this. HTB password attack module, ATTACKING SAM.

I just had the same problem, and solved. crackmapexec was fine 1 hour ago.

The reason why I had this problem is that I git cloned impacket and run pip install on it.

To fix that, I went to CrackMapExec source code, and run pip3 install -e .