-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
An error occurred: Expected '(', got '' #783
Comments
And scratch the 'fixed' bit. couple of runs later and back to failing with not being able to reproduce a success, even when attempting with other input files as well. |
You haven't provided enough information (i.e., the source files) to reproduce the issue. Until you provide precise steps to reproduce, no action will be taken. |
Sorry for slow reply and lack of source file, attempted with another file at the time and it behaved the same. Now tried two other files and its working perfectly. Added .log to the kicad_pcb to allow upload. esp8266 wled board.kicad_pcb.log as input any any name for output, h/vspacing:1mm row/cols:5 Tried comparing the file with one that worked and nothing jumped out as wrong. Tried removing things and testing, ended up with a blank pcbfile apart from edge cuts and it still generated the same error...... |
@yaqwsx @uggima I encountered this today, my first time using kikit 1.7.0 to panelize a board designed in Kicad 8.0.9. Looking at
Github won't let me attach the resulting |
Prerequisites
KiKit version
1.6.0
KiCAD version
8.0.8 (although was the same in 8.0.6)
Operating system
Windows
Description
Gui and CLI both presented me with:
An error occurred: Expected '(', got ''
Steps to Reproduce
Running any panelize command.
kikit panelize "esp8266 wled board.kicad_pcb" "pannel esp8266 wled board.kicad_pcb" --debug trace:true -p ..\..\kikit_panel3.json
Its the same with my json as it is with h/vspace and row/cols set.
%userprofile%\Documents\Kicad\esp8266 wled\esp8266 wled board>kikit panelize "esp8266 wled board.kicad_pcb" "pannel esp8266 wled board.kicad_pcb" --debug trace:true -p ....\kikit_panel3.json
An error occurred: Expected '(', got ''
No output files produced
Traceback (most recent call last):
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\panelize_ui.py", line 217, in panelize
doPanelization(input, output, preset, plugin)
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\panelize_ui.py", line 271, in doPanelization
ki.buildLayout(preset, panel, input, sourceArea)
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\panelize_ui_impl.py", line 257, in buildLayout
substrates = panel.makeGrid(
^^^^^^^^^^^^^^^
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\panelize.py", line 1331, in makeGrid
boardSize = self.appendBoard(
^^^^^^^^^^^^^^^^^
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\panelize.py", line 1044, in appendBoard
self._inheriCustomDrcRules(board, netRenamerFn)
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\panelize.py", line 818, in _inheriCustomDrcRules
rules = parseSexprListF(f)
^^^^^^^^^^^^^^^^^^
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\sexpr.py", line 213, in parseSexprListF
s = readSexpr(stream, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\sexpr.py", line 165, in readSexpr
stream.shift("(")
File "%userprofile%\Documents\KiCad\8.0\3rdparty\Python311\site-packages\kikit\sexpr.py", line 33, in shift
raise ParseError(f"Expected '{expected}', got {repr(c)}")
kikit.sexpr.ParseError: Expected '(', got ''
%userprofile%\Documents\Kicad\esp8266 wled\esp8266 wled board>python --version
Python 3.11.5
%userprofile%\Documents\Kicad\esp8266 wled\esp8266 wled board>kikit --version
kikit, version 1.6.0
%userprofile%\Documents\Kicad\esp8266 wled\esp8266 wled board>pip install kikit
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: kikit in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (1.6.0)
Requirement already satisfied: click>=7.1 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from kikit) (8.1.7)
Requirement already satisfied: commentjson>=0.9 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from kikit) (0.9.0)
Requirement already satisfied: markdown2>=2.4 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from kikit) (2.5.0)
Requirement already satisfied: numpy in c:\program files\kicad\8.0\bin\lib\site-packages (from kikit) (2.2.1)
Requirement already satisfied: pcbnewTransition<=0.5,>=0.4.1 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from kikit) (0.4.2)
Requirement already satisfied: pybars3>=0.9 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from kikit) (0.9.7)
Requirement already satisfied: shapely>=2.0.3 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from kikit) (2.0.6)
Requirement already satisfied: solidpython>=1.1.2 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from kikit) (1.1.3)
Requirement already satisfied: colorama in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from click>=7.1->kikit) (0.4.6)
Requirement already satisfied: lark-parser<0.8.0,>=0.7.1 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from commentjson>=0.9->kikit) (0.7.8)
Requirement already satisfied: PyMeta3>=0.5.1 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from pybars3>=0.9->kikit) (0.5.1)
Requirement already satisfied: PrettyTable==0.7.2 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from solidpython>=1.1.2->kikit) (0.7.2)
Requirement already satisfied: euclid3<0.2.0,>=0.1.0 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from solidpython>=1.1.2->kikit) (0.1)
Requirement already satisfied: ply<4.0,>=3.11 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from solidpython>=1.1.2->kikit) (3.11)
Requirement already satisfied: pypng<0.0.20,>=0.0.19 in %userprofile%\documents\kicad\8.0\3rdparty\python311\site-packages (from solidpython>=1.1.2->kikit) (0.0.19)
Solution was to remove
from after the "def buildLayout(preset, panel, sourceBoard, sourceArea):" line in panelize_ui_impl.py and it works? Not written any python in 6+ years so no idea why it works but it does.
The text was updated successfully, but these errors were encountered: