I am trying to use the pycells in Klayout, but som...
# ihp-sg13g2
b
I am trying to use the pycells in Klayout, but somehow the lib imported in the autorun file is not found, though I added that folder location. I must be missing something basic, any ideas?
Copy code
ERROR: /foss/pdks/sg13g2/libs.tech/klayout/tech/pymacros/autorun.lym:4: ModuleNotFoundError: No module named 'sg13g2_pycell_lib'
  /foss/pdks/sg13g2/libs.tech/klayout/tech/pymacros/autorun.lym:4
m
Does it work if you copy
sg13g2_pycell_lib
to
klayout/tech/pymacros
?
b
That doesn't help unfortunately.
m
Sorry. While you’re waiting on advice from someone who actually knows what they’re doing, you might try copying to
$HOME/.klayout/pymacros
or
$HOME/.klayout/python
b
Still no luck. I also tried running the
__init__
file in
sg13g2_pycell_lib
directly, but then its dependencies in a parallel directory also do not get resolved. I must be missing something basic or something's broken, may have to do with the fact that I am running things in the tool container. Would be interesting to hear from someone who has gotten this to work or understands the the inner workings of Klayout better.
m
@Matthias Köfferlein can you help?
h
@Krzysztof Herman Can you help on this?
I only did simulations in xschem so far, I really need to get started in KLayout doing a layout in SG13G2.
@Krzysztof Herman@Boris Murmann If you need a fix in the Docker image please let me know.
k
@Boris Murmann @Harald Pretl please try to run klayout using this command
KLAYOUT_HOME= <your_location>/IHP-Open-PDK/ihp-sg13g2/libs.tech/klayout klayout -e
👍 1
b
Thank you @Krzysztof Herman, this solves the problem. @Harald Pretl, would be good to set
KLAYOUT_HOME=$PDKPATH/libs.tech/klayout
in the container.
👍 2
h
@Boris Murmann I’ll add this setting.
🙌 2