It looks like you're new here. If you want to get involved, click one of these buttons!
I am trying to install the Anaconda3 enviroment based package on Big Sur. I am using Python 3.8.10 on Big Sur 11.4
I have made the symbolic link etc as described in the package: LW-klayout-0.27.2-macOS-BigSur-1-qt5Ana3-Rana3Pana3.dmg
Everytime I try to run KLayout it does not open and crashes mostly I believe because of a path issue
"Termination Reason: DYLD, [0x1] Library missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
dyld: Using shared cache: 4A889CE9-8D7E-304E-A5F7-84D819B0BF9C
Library not loaded: @rpath/libpython3.8.dylib
Referenced from: /Applications/klayout.app/Contents/MacOS/klayout
Reason: image not found"
Obviously I'm missing something but cannot make it work. Can you help please
Thanks
Mike
Comments
Hi Mike,
Thank you for posting this issue.
It might be an issue with Python version compatibility.
I expect that your Python 3.8.10 can work with the published KLayout binary.
But it does not work actually; weird
[1] My "anaconda3" environment in which I built the LW*dmg is a bit old, as shown below.
[2] KLayout uses dynamic-link libraries:
My suggestions:
Test the
KLayoutAna3.app
script bundle, which is included in the DMG.Please read section [2] through [4] of the "Anaconda3User-ReadMeFirst.txt" file.
Install anaconda3's python 3.8.2 if acceptable.
Build KLayout from the source code. It's easy but takes time.
Regards,
Kazzz-S
Kazzz-S
Thanks for the quick response. Might take me a couple of days to get around to further investigation but I'll keep you posted
Mike
I'm not sure I can follow. But maybe "@rpath/..." is not pointing the to right place?
Another thing I see on other OS: if the message is "shared object not found" this may also mean that this shared object is found, but it depends on other shared objects which are not found. On Linux "LD_DEBUG" is your friend in this case. I think that "DYLD_DEBUG" exists on MacOS. You can set this environment variable to print details about the shared object loading sequence.
Matthias
Hi Matthias,
Thank you for your suggestions.
When KLayout normally starts...
Kazzz-S
I got the reason. A bit embarrassing.
The Catalina version is OK.
I'll rebuild the DMG for Big Sur with Aanaconda3.
Would you please give me some time?
You can try the Catalina version on Big Sure for the time being if you like.
Kazzz-S
The DMGs (for Catalina and Big Sur) with Anaconda3 bind both Python 3.8.x and Ruby 2.5.x.
So you need to install Ruby by:
$ conda install ruby
When installing the Ruby package, Python is downgraded from 3.8.10 to 3.8.2.
Kazzz-S
I have rebuilt the second DMG for
Big Sur + Anaconda3
(LW-klayout-0.27.2-macOS-BigSur-2-qt5Ana3-Rana3Pana3.dmg), which will be published soon.Kazzz-S
@kazzz Thanks for taking care of this!
Let me know when the new version is ready so I can put it on the server.
BTW: I'll publish 0.27.3 soon.
Matthias
Hi Matthias,
It's ready. I have added a comment to the closed ticket: https://github.com/KLayout/klayout/issues/844#issuecomment-879853650 , and sent you a separate mail.
It is in https://www.dropbox.com/sh/l6jin4ggqsm4am1/AAD5kLFVG0QhQVTG6GT2MWtwa?dl=0
Please find
Thank you for your effort in making the next release 0.27.3; I'll do as usual
Kazzz-S
@kazzz Thanks a lot for the update. I have uploaded the 0.27.3 versions and the 0.27.2 fix to the server.
Best regards,
Matthias
Hi all, sorry for the radio silence. Just been busy - thanks for finding the issue. I tried 27.3 and seems to be playing nice with Anaconda now
Mike