Snapcraft CLI error

A few days ago my snapcraft CLI was working perfectly fine. I went back to it today to see if I could export my login yet and now every command that I do is giving me this error.

Traceback (most recent call last):
File "/usr/local/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==2.33', 'console_scripts', 'snapcraft')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 564, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2662, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2316, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2322, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python2.7/dist-packages/snapcraft/__init__.py", line 394, in <module>
from snapcraft._baseplugin import BasePlugin        # noqa
File "/usr/local/lib/python2.7/dist-packages/snapcraft/_baseplugin.py", line 21, in <module>
from snapcraft.internal import common
File "/usr/local/lib/python2.7/dist-packages/snapcraft/internal/__init__.py", line 17, in <module>
from snapcraft.internal import cache             # noqa
File "/usr/local/lib/python2.7/dist-packages/snapcraft/internal/cache/__init__.py", line 17, in <module>
from ._apt import AptStagePackageCache  # noqa
File "/usr/local/lib/python2.7/dist-packages/snapcraft/internal/cache/_apt.py", line 28
def __init__(self, *, sources_digest):
                    ^
SyntaxError: invalid syntax

I have snapcraft installed from the snap package, running on ubuntu mate 17.10, tried with sudo and without , just want to export that login :wink:

Thanks for the help in advance!

You have a conflicting version in /usr/local. The error message you received is from the one in /usr/local.