<#290 KLayout PCells Issue> Issue created by <mole...
# ihp-sg13g2
g
#290 KLayout PCells Issue Issue created by mole99 When I use the KLayout PCells, I get the following error:
Copy code
ERROR: /home/leo/projects/IHP-Open-PDK/ihp-sg13g2/libs.tech/klayout/python/pypreprocessor/pypreprocessor/__init__.py:11: ModuleNotFoundError: No module named 'imp'
My Python version is 3.12.7 and it seems that
imp
has been deprecated in favor of
importlib
in version 3.12. A quick solution is to change the import in pypreprocessors
__init__
to:
Copy code
import importlib as imp
A better solution would be to replace all occurrences of
imp
with
importlib
. There's a commit in your pypreprocessor fork that added the
imp
library, I'm not sure if this is for a reason: IHP-GmbH/pypreprocessor@d6088b2 IHP-GmbH/IHP-Open-PDK