Comments (5)
@spuder probably something for you to take a look.
from uhk60v1-electronics.
Most likely what is going on is an incompatible version of a package that is installed. The travis scripts are only tested on ubuntu 14.04 (trusty).
Are you running these scripts on your workstation? Or is it travis that is failing?
Do you have docker installed? Could you try running these commands and see if it gives the same error?
docker run -it --rm -v $(pwd):/data ubuntu:xenial /bin/bash
apt-get update
apt-get install -y sudo software-properties-common
cd /data
./scripts/1-add-repos.sh
./scripts/2-install-dependencies.sh
./scripts/generate-png-diff.sh
from uhk60v1-electronics.
Hi, thanks.
With manual steps it's even worse:
`root@f9e6f20d857e:/data# ./scripts/generate-png-diff.sh
Copying 187bd8e:drone-kicad-sample.kicad_pcb to ./plot/187bd8e/
Kicad files saved to: './plot/current' and './plot/187bd8e'
Converting ./plot/current/drone-kicad-sample.kicad_pcb to .pdf: Files will be saved to /tmp/pdf
14:10:10: Debug: Skipping general section token 'drawings'
14:10:10: Debug: Skipping general section token 'tracks'
14:10:10: Debug: Skipping general section token 'zones'
14:10:10: Debug: Skipping general section token 'symbol'
Traceback (most recent call last):
File "/tmp/plot_board.py", line 58, in
board = LoadBoard(filename)
File "/usr/lib/python2.7/dist-packages/pcbnew.py", line 12870, in LoadBoard
return _pcbnew.LoadBoard(*args)
IOError: KiCad was unable to open this file, as it was created with a more recent version than the one you are running. To open it, you'll need to upgrade KiCad to a more recent version.
Date of KiCad version required (or newer): 11/30/17
Full error text:
KiCad was unable to open this file, as it was created with a more recent version than the one you are running. To open it, you'll need to upgrade KiCad to a more recent version.
Date of KiCad version required (or newer): 11/30/17
Full error text:
PARSE_ERROR: Expecting 'circle, rectangle, oval, or trapezoid' in input/source
'./plot/current/drone-kicad-sample.kicad_pcb'
line 172
offset 16
from dsnlexer.cpp : Expecting() : line 369
Converting ./plot/187bd8e/drone-kicad-sample.kicad_pcb to .pdf's Files will be saved to /tmp/pdf
14:10:10: Debug: Skipping general section token 'drawings'
14:10:10: Debug: Skipping general section token 'tracks'
14:10:10: Debug: Skipping general section token 'zones'
14:10:10: Debug: Skipping general section token 'symbol'
Traceback (most recent call last):
File "/tmp/plot_board.py", line 58, in
board = LoadBoard(filename)
File "/usr/lib/python2.7/dist-packages/pcbnew.py", line 12870, in LoadBoard
return _pcbnew.LoadBoard(*args)
IOError: KiCad was unable to open this file, as it was created with a more recent version than the one you are running. To open it, you'll need to upgrade KiCad to a more recent version.
Date of KiCad version required (or newer): 11/30/17
Full error text:
KiCad was unable to open this file, as it was created with a more recent version than the one you are running. To open it, you'll need to upgrade KiCad to a more recent version.
Date of KiCad version required (or newer): 11/30/17
Full error text:
PARSE_ERROR: Expecting 'circle, rectangle, oval, or trapezoid' in input/source
'./plot/187bd8e/drone-kicad-sample.kicad_pcb'
line 171
offset 16
from dsnlexer.cpp : Expecting() : line 369
Converting /tmp/pdf/current/.pdf to .png
I/O Error: Couldn't open file '/tmp/pdf/current/.pdf': No such file or directory.
Converting /tmp/pdf/187bd8e/.pdf to .png
I/O Error: Couldn't open file '/tmp/pdf/187bd8e/.pdf': No such file or directory.
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-AssyOutlinesTop-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-AssyTop-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-CuBottom-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-CuTop-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-EdgeCuts-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-Layout-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-MaskBottom-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-MaskTop-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-PasteBottom-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-PasteTop-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-Silk-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-SilkBottom-1.png
Generating composite image ./plot/diff-current-187bd8e/drone-kicad-sample-SilkTop-1.png`
I cannot use 14.04 due to very old KiCAD package. I checked KiCAD source and cannot find where YELLOW and other colors are defined. It's very strange that other literals work and only YELLOW is missing
I think i might just change it to some other color.
By the way, are you going to maintain this script? Maybe it's worth separate repo?
from uhk60v1-electronics.
Still looking into this. The original purpose was to allow the UHK developers to visually see any changes made to the design in merge requests. It needs to be part of this repo so Travis-CI could run the script.
The root cause is that the designs have moved to kicad5, whereas the scripts were written for kicad4.
from uhk60v1-electronics.
We don't need the visual diff feature anymore, so feel free to remove it @spuder. Thanks for your help!
from uhk60v1-electronics.
Related Issues (20)
- Use larger pitch components? HOT 1
- Add fixating pins to the Cherry MX module HOT 1
- Add pins for Matias switches if possible HOT 23
- Cherry MX LED lights HOT 7
- USB type C connector? HOT 1
- Where do you get the libraries from? HOT 1
- Create automated system to compare kicad diffs HOT 10
- Parts need unique names to allow for auto routing HOT 1
- Want to add the opensource logo to the board? HOT 2
- Replace 5 pin TVS array footprints with 6 pin footprints HOT 1
- Reroute D+ and D- tracks according to USB design best practices
- Reverse 4P4C connector pins
- Create 4 layer versions of the left and right PCBs HOT 1
- Protect against reverse polarity bridge cables
- Add more vias to the female connector board
- Change MKL03Z8VFK4 to MKL03Z32VFK4
- USB line impedance seems to be really bad HOT 2
- Version 2? HOT 1
- Where can I find the files, for example in stl format, of the case for this keyboard? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uhk60v1-electronics.