Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Use gdspy in Klayout Macro developement (reopened) #226

Open
atofini opened this issue Jan 12, 2023 · 1 comment
Open

Use gdspy in Klayout Macro developement (reopened) #226

atofini opened this issue Jan 12, 2023 · 1 comment

Comments

@atofini
Copy link

atofini commented Jan 12, 2023

Reopening the issue #139

Can you elaborate how the pre-compiled binary can be ran in KLayout? I get a circular import error when I use it.

Error code:
cannot import name 'clipper' from partially initialized module 'gdspy' (most likely due to a circular import) (C:\Users\Alex.tofini\AppData\Roaming\KLayout\lib\python3.8\site-packages\gdspy_init_.py)
C:\Users\Alex.tofini\AppData\Roaming\KLayout\lib\python3.8\site-packages\gdspy\polygon.py:39

@heitzmann
Copy link
Owner

I don't use Windows, so I can't tell exactly what to do, but you have to use the whl installers from the releases and install them using the python path from Klayout (I believe it ships with its own python on Windows).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants