GitHub
12/06/2024, 9:17 AMERROR: /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:
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-PDKGitHub
12/18/2024, 11:27 AM