Issues installing pycharm community

I have tried installing PyCharm community edition on my Kali Linux machine and i am facing some issues it would be great if any one could help it says as follows:

mastersaha@kali:~$ sudo snap install pycharm-community --classic
error: cannot communicate with server: Post “http://localhost/v2/snaps/pycharm-community”: dial unix /run/snapd.socket: connect: no such file or directory

What is the output of snap version?

Its showing as (2.45.2-1)

Can you show the full output of snap version?