KiKit SyntaxError

I am attempting to get KiKit working. To do so I followed the instructions at:

for installation on Linux. My OS is Pop!_OS 20.04, which is based on Ubuntu.
I upgraded the pip command to the latest version, installed setup tools, and installed KiKit, with this command sequence:

sudo pip install --upgrade pip
sudo pip install setuptools
sudo pip install kikit

I get this response to this command:

$ kikit --version
Traceback (most recent call last):
  File "/usr/local/bin/kikit", line 11, in <module>
    load_entry_point('KiKit==0.6.1', 'console_scripts', 'kikit')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/dist-packages/kikit/ui.py", line 15
    raise RuntimeError(f"Fillet radius ({radius} mm) has to be greater than " \
                                                                            ^
SyntaxError: invalid syntax

What can be done about this error?

Wasn’t KiKit 1.0 just released? That looks like an old Python 2 version that pip installed. Maybe delete this version and use the PCM to install KiKit 1.0?

Alternatively shouldn’t you be using pip3?

Run your installation command with python3 and pip3. Your OS defaults python and pip to the deprecated Python 2, but Kikit and KiCAD use Python 3.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.