gdsfactory / gdsfactory

python library to design chips (Photonics, Analog, Quantum, MEMs, ...), objects for 3D printing or PCBs.
https://gdsfactory.github.io/gdsfactory/
MIT License
451 stars 191 forks source link

ModuleNotFoundError: No module named 'gdsfactory.types' #2706

Open mchen26 opened 2 months ago

mchen26 commented 2 months ago

ERROR: /foss/designs/.klayout/pymacros/cells/via_generator.py:23: ModuleNotFoundError: No module named 'gdsfactory.types' /foss/designs/.klayout/pymacros/cells/via_generator.py:23 /foss/designs/.klayout/pymacros/cells/vias.py:20 /foss/designs/.klayout/pymacros/cells/init.py:21 /foss/designs/.klayout/pymacros/sky130.lym:9 (class ModuleNotFoundError)

I am running into this error when launching klayout using skywater130 pdk. Previously, I did not run into this issue, but is coming up now. I have tried upgrading to the latest version of gdsfactory - same issue. Let me know if you need more context. Thanks

joamatab commented 2 months ago

Hi Matthew,

this seems like your pdk is using an old gdsfactory, and you upgraded gdsfactory to the latest version

You will need to use

pip install sky130 and then use the version that the PDK installs