yaqwsx / PcbDraw

Convert your KiCAD board into a nicely looking 2D drawing suitable for pinout diagrams
MIT License
1.13k stars 90 forks source link

Kicad nightly (5.99) #70

Closed perigoso closed 2 years ago

perigoso commented 2 years ago

Having trouble generating for nightly projects, i was under the impression specifying the python path was enough, but I'm getting this error:

Traceback (most recent call last):
  File "/usr/bin/pcbdraw", line 33, in <module>
    sys.exit(load_entry_point('PcbDraw==0.6.1', 'console_scripts', 'pcbdraw')())
  File "/usr/lib/python3.9/site-packages/pcbdraw/pcbdraw.py", line 793, in main
    board_cont.append(get_board_substrate(board, style, not args.no_drillholes, args.back))
  File "/usr/lib/python3.9/site-packages/pcbdraw/pcbdraw.py", line 433, in get_board_substrate
    popt.SetTextMode(pcbnew.PLOTTEXTMODE_STROKE)
AttributeError: module 'pcbnew' has no attribute 'PLOTTEXTMODE_STROKE'

Is this due to some api change?

version 5.99.0_12876_gfb5fef9f5f

yaqwsx commented 2 years ago

This is due to API change. I plan to revisit the changes in nightly soon, however, I can't promise you any deadline.

perigoso commented 2 years ago

I was trying to use a system install of this, through the arch repository, when i cloned and ran the script directly i was able to generate, so i don't think the issue is an api change after all

perigoso commented 2 years ago

seems like its just missing the pcbnewTransition module

yaqwsx commented 2 years ago

The compatibility with nightly was introduced in version 0.8. I just noticed from your log that you used version 0.6.1. Please, install the recent stable version (e.g., from pip).