Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Mint install failure #45

Closed
ukoda opened this issue Jan 26, 2021 · 6 comments
Closed

Linux Mint install failure #45

ukoda opened this issue Jan 26, 2021 · 6 comments

Comments

@ukoda
Copy link

ukoda commented Jan 26, 2021

I have tried to install the kibot_0.9.0-1_all.deb on a couple of Linux Mint 20.1 (Ulyssa) workstations. One was a freshly set up system with minimal addtional packages installed. KiCAD 5.1.5 was installed using the package manager.

The error I am seeing is:

david@xps:~$ kibot
Traceback (most recent call last):
File "/usr/bin/kibot", line 15, in
from kibot.main import main
File "/usr/lib/python3/dist-packages/kibot/main.py", line 71, in
from .kiplot import (generate_outputs, load_actions, config_output)
File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 47, in
m = re.search(r'(\d+).(\d+).(\d+)', pcbnew.GetBuildVersion())
AttributeError: module 'pcbnew' has no attribute 'GetBuildVersion'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_kibot.1000.crash'

Original exception was:
Traceback (most recent call last):
File "/usr/bin/kibot", line 15, in
from kibot.main import main
File "/usr/lib/python3/dist-packages/kibot/main.py", line 71, in
from .kiplot import (generate_outputs, load_actions, config_output)
File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 47, in
m = re.search(r'(\d+).(\d+).(\d+)', pcbnew.GetBuildVersion())
AttributeError: module 'pcbnew' has no attribute 'GetBuildVersion'

I have tried searching for existing solutions with out luck. The above error is seen when I try to run kibot with no arguments but also appeared when I installed git using apt.

I apologise if this the wrong place to request help but could not see anywhere else that seemed appropriate.

@paulsykes
Copy link

Same problem here. My KiCad Version information is below.
Version: 5.1.5-52549c5-84-ubuntu18.04.1, release build

@NightSkySK
Copy link

NightSkySK commented Jan 26, 2021

This is the same issue as described in issue #36
You need update your kicad installation up to 5.1.7 or later
KiCad download page

sudo add-apt-repository --yes ppa:kicad/kicad-5.1-releases
sudo apt update
sudo apt install --install-recommends kicad
# If you want demo projects
sudo apt install kicad-demos

@paulsykes
Copy link

I added the following repo from the official kicad install documentation https://kicad.org/download/ubuntu/

sudo add-apt-repository --yes ppa:kicad/kicad-5.1-release

And then updated by installed packages

sudo apt update
sudo apt-get upgrade

@NightSkySK
Copy link

NightSkySK commented Jan 26, 2021

@paulsykes Does your Kicad was upgraded to 5.1.9 on this way?
I think Kicad doesn't support upgrade you need to install new version

@set-soft
Copy link
Member

Thanks for reporting @ukoda and @paulsykes !
And thanks @NightSkySK for pointing in the right direction!
I updated the Debian control file to indicate KiCad 5.1.6 as minimum version.
I also added code to catch the error and generate a warning asking for a newer version.

@ukoda
Copy link
Author

ukoda commented Jan 27, 2021

Thanks for the prompt response. Just confirming that switching to the kicad repo to get a more recent version has resolved the issues I was seeing on a couple systems that were having issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants