You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python -m venv venv --system-site-packages
source venv/bin/activate
pip install kikit mistune==2.0.5 PcbDraw==1.1.2
venv/bin/pcbdraw render ./<project>.kicad_pcb /tmp/test.png
Traceback (most recent call last):
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/renderer.py", line 358, in startPcbnewSession
yield session
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/renderer.py", line 521, in renderBoard
with session.start3DViewer() as viewer:
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/renderer.py", line 206, in start3DViewer
session.waitForResponsiveness()
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/renderer.py", line 232, in waitForResponsiveness
prefId = self._parent.waitForWindow("Preferences")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/renderer.py", line 99, in waitForWindow
return self.waitForWindows([titlePattern], timeout, callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/renderer.py", line 117, in waitForWindows
raise TimeoutError(f"None of '{titlePatterns}' didn't appear within timeout. Available windows:\n{windows_list}")
TimeoutError: None of '['preferences']' didn't appear within timeout. Available windows:
- pcbnew
- <project> — PCB Editor
- 3D Viewer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/ui.py", line 301, in render
images = renderBoard(input, plan, baseResolution=(baseresolution, baseresolution),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/renderer.py", line 520, in renderBoard
with startPcbnewSession(resolution=baseResolution, board=boardFile, adjustConfig=updateConfig) as session:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/renderer.py", line 360, in startPcbnewSession
raise GuiPuppetError(str(e), e, display.grab())
pcbdraw.renderer.GuiPuppetError: None of '['preferences']' didn't appear within timeout. Available windows:
- pcbnew
- <project> — PCB Editor
- 3D Viewer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<project>/venv/bin/pcbdraw", line 8, in <module>
sys.exit(run())
^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<project>/venv/lib/python3.12/site-packages/pcbdraw/ui.py", line 309, in render
raise RuntimeError(f"The following GUI error ocurred{img_save_msg}:\n{e}")
RuntimeError: The following GUI error ocurred:
None of '['preferences']' didn't appear within timeout. Available windows:
- pcbnew
- <project> — PCB Editor
- 3D Viewer
I am trying to create a 3D render of my PCB.
kicad version info:
The text was updated successfully, but these errors were encountered: