Getting issue on creating my first snap - Python

Hi

I am trying create new snap using https://snapcraft.io/first-snap, while building snapcraft i am getting below error

error: unknown flag `check-skeleton’
Failed to verify directory to pack.

Please help me to fix this

Thanks in advance

What’s the output of snap version?

snap 2.39.2+18.04
snapd 2.39.2+18.04
series 16
ubuntu 18.04
kernel 4.15.0-55-generic

I think you might be running snapcraft from the deb package. What’s the output of which snapcraft? If it’s not /snap/bin/snapcraft, then

apt remove snapcraft
snap install snapcraft

and try again.

@chipaca i have installed snapcraft through snap only

for me which snapcraft returning /snap/bin/snapcraft only

What’s the output of snap list core?

core 16-2.32.5 4486 stable canonical* core

why hasn’t that core refreshed in … over a year? How?

Could you sudo apt install pastebinit, and then

sudo journalctl -u snapd | pastebinit

and share that URL?
thanks

I am new to this, what version of core i need to use

I am getting error for this command

Failed to contact the server: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

smells like you have some network issue there, pastebinit can apparently not access the paste.ubuntu.com server (which is probably also the reason that core did not get updated)

are you using a https proxy or some such ?