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

klayout package should set KLAYOUT_PATH #281

Open
proppy opened this issue Jan 25, 2023 · 2 comments
Open

klayout package should set KLAYOUT_PATH #281

proppy opened this issue Jan 25, 2023 · 2 comments

Comments

@proppy
Copy link
Contributor

proppy commented Jan 25, 2023

@erendn filed

I managed to find one of the issues. $KLAYOUT_PATH was pointing to another klayout installation, and klayout failed to load those plugins. Now, I'm getting the following error (klayout 0.28.3):

ERROR: In freepdk45.lydrc: 'source': Stream has unknown format: sram_bank.gds in Layout::read
ERROR: 'source': Stream has unknown format: sram_bank.gds in Layout::read in Executable::execute
  freepdk45.lydrc:13:in `execute'
  :/built-in-macros/drc_interpreters.lym:27:in `instance_eval'
  :/built-in-macros/drc_interpreters.lym:27:in `execute'
@proppy
Copy link
Contributor Author

proppy commented Jan 25, 2023

@erendn filed

I fixed this issue by setting $KLAYOUT_PATH to miniconda/lib/klayout.

@proppy - I can reproduce the same issue with conda-eda/klayout if $KLAYOUT_PATH is unset.

@erendn
Copy link

erendn commented Jan 25, 2023

I realized that klayout searches for plugins in miniconda/lib but the plugins are copied to miniconda/lib/klayout. Is there a reason why you create this directory in build.sh?

mkdir -p ${PREFIX}/lib/klayout/
cp -ar pymod *_plugins ${PREFIX}/lib/klayout/

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

2 participants