Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop-up windows after installing SiEPIC Tools on Mac #238

Open
Yellowshiba opened this issue Feb 14, 2025 · 4 comments
Open

Pop-up windows after installing SiEPIC Tools on Mac #238

Yellowshiba opened this issue Feb 14, 2025 · 4 comments

Comments

@Yellowshiba
Copy link

I just successfully installed SiEPIC Tools. But Klayout start to pop up windows for installing packages evey time I start Klayout. No matter if I click "Yes" or "No".
Image
Image
Image
Image
Image
Image
Image
Image
Image
I tried to manually install the packages via terminal, but it seems the build-in python kernel doesnt allow me to.

Image
I tried to use subprocess to install in build-in python console, it doesn't work neither.
I also tried deleting the software in "Application" and ".klayout" in "User" and start from scratch, desn't work.
I belive this is not an issue with Apple Silicon, cuz I noticed this issue on my Intel mac as well.

I wonder if anyone had similar issue or know how to solve this (maybe install all these packages manually, but how?)? Any advice appreciated! Thanks!

@lukasc-ubc
Copy link
Member

Thank you for reporting this. I will troubleshoot on 0.29.11. In the meantime, I have OSX and 0.29.10, klayout HW-klayout-0.29.10-macOS-Sequoia-1-qt5MP-RsysPhb311, and it doesn't have this problem. Could you try that version?

thank you

@lukasc-ubc
Copy link
Member

I just installed 0.29.11. KLayout: HW-klayout-0.29.11-macOS-Sequoia-1-qt5MP-RsysPhb311

It looks like it is using my system-installed Python, since it didn't ask me to install all those Python modules.

In the Python Macro Development console:

import numpy
numpy
<module 'numpy' from '/Users/lukasc/Library/Python/3.11/lib/python/site-packages/numpy/init.py'>

import sys
sys.version
'3.11.11 (main, Dec 3 2024, 17:20:40) [Clang 16.0.0 (clang-1600.0.26.4)]'

sys.path
['/Users/lukasc/Documents/GitHub/SiEPIC_EBeam_PDK/klayout/EBeam/pymacros', '/Applications/KLayout HW-klayout-0.29.11-macOS-Sequoia-1-qt5MP-RsysPhb311.app/Contents/Frameworks/pymod', '/Applications/KLayout HW-klayout-0.29.11-macOS-Sequoia-1-qt5MP-RsysPhb311.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python311.zip', '/Applications/KLayout HW-klayout-0.29.11-macOS-Sequoia-1-qt5MP-RsysPhb311.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11', '/Applications/KLayout HW-klayout-0.29.11-macOS-Sequoia-1-qt5MP-RsysPhb311.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload', '/Users/lukasc/Library/Python/3.11/lib/python/site-packages', '/Applications/KLayout HW-klayout-0.29.11-macOS-Sequoia-1-qt5MP-RsysPhb311.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages', '/Users/lukasc/.klayout/python', '/Users/lukasc/Documents/GitHub/KLayout_plugins/klayout_dot_config/pymacros/../python', ...]

Can you check if yours also includes the system-wide site-packages?

I don't recall how it got there for me. I have several Python environments installed, perhaps via HomeBrew or similar. So perhaps KLayout can now find packages located in your system if the versions match...

@lukasc-ubc
Copy link
Member

Unfortunately, KLayout doesn't come with pip. It would be nice if it would, and we can ask Matthias at KLayout, for advice.

@Yellowshiba
Copy link
Author

Hi Lukas,

sys.path
['/Users/Shangxuan/.klayout/salt/siepic_ebeam_pdk/EBeam/pymacros', '/Applications/klayout.app/Contents/Frameworks/pymod', '/Applications/klayout.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python311.zip', '/Applications/klayout.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11', '/Applications/klayout.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload', '/Applications/klayout.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages', '/Users/Shangxuan/.klayout/python', '/Users/Shangxuan/.klayout/salt/Python_packages_for_KLayout/python', '/Users/Shangxuan/.klayout/salt/siepic_tools/python']

It seems mine only included the buildt-in packages. But interestingly, I just find that Klayout does come with pip and it can be called to install packages as following:

Image

I think my issue is solved. Thanks for helping me checking it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants