Hi all! I am not able to access and install SKY130...
# klayout
a
Hi all! I am not able to access and install SKY130 pdk in #C01DH7SPX41 Did anyone else face this issue and could solve it? Thanks
l
Hi @Abhay Kulkarni did you click on the small checkmark in the top left corner and press "Apply"?
a
Hi @Leo Moser Okay, so I just installed a newer version and I could install the package. But, I still can't get it in the library when I click "Instance".
l
To be able to create Pcells, you need to install the gdsfactory Python library on your system. For more information see here: https://github.com/efabless/sky130_klayout_pdk
a
I can see something happened after installing gdsfactory. But, not sure where to set the environment variables in Ubuntu. Still trying. Thanks @Leo Moser .
l
Since you installed the package via KLayout's package manager you don't need to specify
KLAYOUT_PATH
to load the package. Simply running
pip install --upgrade gdsfactory
and restarting KLayout should be enough.
a
Thanks. Did that. But not letting me see sky130 option in the instance.
l
Alright, if you start klayout from a terminal what output do you get?
a
When i start from terminal, Klayout opens. I can see sky130 configured on the toolbar also. But when I open instance, so that I can select the library of sky130, i can't see it there. Two options in the drop down menu 1. Local and 2. Basic only appear. In a youtube video

here

, I can see him selecting sky130. I am missing something.
l
Yes, but do you get
Info: To enable the sky130 PCells you need to install gdsfactory in your system-wide Python installation.
in your terminal output? Right now I too have issues getting KLayout to recognize gdsfactory, I'll get back to you once I fixed the problem on my side.
a
I see. This is what I am getting. Do you have Python 3.10 or above. That could be an issue. Correct me if I am wrong.
l
I'm using Python 3.12.6, which version do you have? Okay, in your case it seems KLayout could import gdsfactory, but gdsfactory is too old. Only recent versions use kfactory as backend. Did you try updating gdsfactory to the latest version using
pip install --upgrade gdsfactory
? Or is your Python interpreter too old? Which Ubuntu version are you running?
In my case, KLayout can't find gdsfactory at all, although I have installed it to
/home/leo/.local/lib/python3.12/site-packages/gdsfactory/
and
/home/leo/.local/lib/python3.12/site-packages
is in sys.path of KLayout. This worked before, very strange.
Alright, I found the issue in my case. I'm running an older version of klayout and encountered this issue: https://github.com/KLayout/klayout/issues/1774 Now the Pcells are working. This should not be a problem for you as you're using 0.29.7. In your case simply updating gdsfactory should be the solution.
a
oh great okay. Congrats ! My python version was 3.8. I need to upgrade that. I shall try doing that. Thanks
l
You're welcome! Let me know how it goes 😃
a
Okay, so apparently there is gdsfactory package in the package manager itself. I did install that too. But no luck.
l
Yes, I tried that too. It seems it does not work for another package to get access to the Python library installed this way.
👍 1