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

It doesn't work with KiCad version 8 for me #162

Open
wiserst opened this issue Mar 9, 2024 · 4 comments
Open

It doesn't work with KiCad version 8 for me #162

wiserst opened this issue Mar 9, 2024 · 4 comments

Comments

@wiserst
Copy link

wiserst commented Mar 9, 2024

I used the same startup script as in KiCad version 7.
Here is an extract from the running script:

D:\Projects\PCB_designs\KiCad\Projects\LINET\W240228 - MIC Amp\W240228.01>D:\Renda\Documents\KiCad\8.0\3rdparty\Python311\Scripts\pcbdraw.exe plot "D:\Projects\PCB_designs\KiCad\Projects\LINET\W240228 - MIC Amp\W240228.01\W240228.01.kicad_pcb" "D:\Projects\PCB_designs\KiCad\Projects\LINET\W240228 - MIC Amp\W240228.01\Documentation\W240228.01(PCB_Bot).png" --no-components --style D:\Projects\PCB_designs\KiCad__3rdparty_8.0\plugins\ProjectReleaser\wiser-blue-enig.json --side back --dpi 800
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "D:\Renda\Documents\KiCad\8.0\3rdparty\Python311\Scripts\pcbdraw.exe_main
.py", line 4, in
File "D:\Renda\Documents\KiCad\8.0\3rdparty\Python311\site-packages\pcbdraw\ui.py", line 15, in
from .populate import populate
File "D:\Renda\Documents\KiCad\8.0\3rdparty\Python311\site-packages\pcbdraw\populate.py", line 16, in
from mistune.plugins.table import plugin_table # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'plugin_table' from 'mistune.plugins.table' (D:\Renda\Documents\KiCad\8.0\3rdparty\Python311\site-packages\mistune\plugins\table.py)

@yaqwsx
Copy link
Owner

yaqwsx commented Mar 10, 2024

Somehow, during upgrade, PIP managed to mismatch version of the mistune library. We require https://github.com/yaqwsx/PcbDraw/blob/a748a8ed32e5c37aa7517c264f6daf78b4c31bec/setup.py#L29C9-L29C35, but it seems that you have version 3 installed.

@wiserst
Copy link
Author

wiserst commented Mar 11, 2024

I installed PcbDraw via KiCad 8.0 command line - pip install PcbDraw
Can you please advise me what to do? Thank you.

@smkent
Copy link
Contributor

smkent commented Mar 24, 2024

#166 should resolve this.

@wiserst
Copy link
Author

wiserst commented Apr 8, 2024

It still doesn't work for me. It will draw a small square in png.
exam.zip

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

3 participants