klayout
klayout copied to clipboard
KLayout MacOS - The operation couldn’t be completed. (OSStatus error 99999.)
Can't start the application.
The operation couldn’t be completed. (OSStatus error 99999.)
This is running MacOS High Sierra, 10.13.4, and klayout-0.25.3-macOS-HighSierra-1-Qt5101brew-Py364-9708d35.dmg
I think this is the version I compiled. Did this just happen out of nowhere? Can you launch from terminal to try to check what is generating the error?
From terminal, it works. Probably it breaks in the GUI because of the errors, which should be caught by the Log…
iMac-Hickup:klayout-25-3-Qt51brew-Py3.app lukasc$ cd Contents/MacOS/ iMac-Hickup:MacOS lukasc$ ./klayout ERROR: Reading zoom_animate.lym in /Users/lukasc/.klayout/macros: XML parser error: error occurred while parsing element in line 47, column 16 ERROR: Reading zoom_animate.lym in /Users/lukasc/.klayout/macros: XML parser error: error occurred while parsing element in line 47, column 16 KLayout 0.25.3 loading Lumerical_INTC_CMLs.txt resetting Lumerical INTERCONNECT Python integration resetting Lumerical FDTD Python integration resetting Lumerical Python integration loading SiEPIC.github Initializing 'SiEPIC General' Library. ERROR: /Users/lukasc/.klayout/pymacros/SiQL_PCells/SiQL_PCells.lym:531: No module named 'numpy' /Users/lukasc/.klayout/pymacros/SiQL_PCells/SiQL_PCells.lym:531 /Users/lukasc/.klayout/pymacros/SiQL_PCells/SiQL_PCells.lym:527 (class ModuleNotFoundError) Initializing 'EBeam' Library. Initializing 'EBeam' Library. reading: /Users/lukasc/SiEPIC_EBeam_PDK/klayout_dot_config/tech/EBeam/pymacros/SiEPIC-EBeam.gds Initializing 'EBeam-dev' Library. ERROR: /Users/lukasc/.klayout/tech/EBeam/pymacros/photonic_crystals/photonic_crystals.py:528: No module named 'numpy' /Users/lukasc/.klayout/tech/EBeam/pymacros/photonic_crystals/photonic_crystals.py:528 /Users/lukasc/.klayout/tech/EBeam/pymacros/photonic_crystals/photonic_crystals.py:524 /Users/lukasc/.klayout/tech/EBeam/pymacros/SiEPIC_EBeam-dev Library.lym:3385 /Users/lukasc/.klayout/tech/EBeam/pymacros/SiEPIC_EBeam-dev Library.lym:3430 (class ModuleNotFoundError) Initializing 'GSiP' Library. Initializing 'SiEPIC_IME' Library. ERROR: /Users/lukasc/.klayout/python/SiEPIC/utils/geometry.py:8: No module named 'numpy' /Users/lukasc/.klayout/python/SiEPIC/utils/geometry.py:8 /Users/lukasc/Documents/GitHub/SiEPIC_IME_Library/SiEPIC_IME_KLayout_Library/tech/SiEPIC_IME/pymacros/SiEPIC_IME_Lightwave.py:5 /Users/lukasc/.klayout/tech/SiEPIC_IME/pymacros/0_Load_Libraries.lym:7 (class ModuleNotFoundError)
@lukasc-ubc i need to compile a version with the python ssl module embedded, otherwise pip 10 is going to fail to install these modules automatically, but this is a discussion to be had in siepic-tools. i don't know why python errors are causing this OS error 99999. my klayout doesn't crash. wish i could reproduce this right now.
In the older versions, I get the same list of errors in the File | Log Viewer.
Can you create an error in one of the lyp libraries, e.g., replace import numpy with import numpyxxx?
Errors are treated normally over here.
Maybe try reinstalling from the .dmg?
-
Log viewer: doesn’t let me resize.
-
I fixed all the SiEPIC errors so that from Terminal it loads error free. Note that I added a MessageBox query for all the places you had auto-pip-install.
It still doesn't start for me. Here is the output of the Console.App:

I will run an OS update and see if that fixes it.
interesting. have you tried right-click -> open? security assessment... I am not quite a Mac developer, but I know launching third party apps require a manual authorization from contents downloaded from the internet.
hmm. didn't help. Yes, I did right-click open... it did a check for a while, then asks if I want to open. then waits for a while, then the error.
Can you show me the result of xattr -l /Applications/klayout.app/ from terminal?
On another MacOS computer, I was able to get it working. So something specific with my desktop or user account.
iMac-Hickup:~ lukasc$ xattr -l /Applications/klayout.app/ com.apple.quarantine: 0181;5b311c9b;Chrome;B495252B-B98B-4C48-832C-4F9206493D0D
on the working computer, I downloaded it using Safari...
There it says that this file was downloaded using Chrome. If you trust the source, maybe try removing these special quarantine attributes? xattr -dr com.apple.quarantine /Applications/klayout.app
wow, that fixed it!
prior to that, I tried on a different user account, but that didn't help.
Great! I have no idea how you got there though. I think the bug might be in the OS itself.
I am working on compiling a new version with Qt5.11, which fixes the resizing issue.
Done in #138 .
@klayoutmatthias I believe this issue can be closed.
this issue should be closed, no ?