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

KLayout does not work on MacOS Catalina #381

Closed
garethsion opened this issue Oct 14, 2019 · 13 comments
Closed

KLayout does not work on MacOS Catalina #381

garethsion opened this issue Oct 14, 2019 · 13 comments

Comments

@garethsion
Copy link

@garethsion garethsion commented Oct 14, 2019

Hi there,

I've just updated my MacBook OS to the new Catalina. However, upon doing so, I've found that Layout no longer works, and there doesn't seem to be a version which will work. Are there any plans to roll KLayout out for Catalina in the immediate future / is there any way I can ameliorate this?

Thanks
G

@Kazzz-S
Copy link
Contributor

@Kazzz-S Kazzz-S commented Oct 14, 2019

Hi,

I think the main reason is the difference in the Ruby versions: expected (2.3) and actual (2.6).
Please refer to #297. If you do not need Ruby, a special binary package https://www.dropbox.com/sh/qeny6se8fepgois/AACnthqtYTGxN78XhF02rav3a?dl=0 will work.

However, this is version 0.25.9, not the latest 0.26.
The status for 0.26 is here (#360).
To get KLayout 0.26 for Catalina, we need to build it on Catalina itself.
Unfortunately, I'm not in a position to use Catalina for the time being;-(.

Thanks
Kazzz

@garethsion
Copy link
Author

@garethsion garethsion commented Oct 15, 2019

Hi Kazzz,

Thank you very much for your reply. I've downloaded the binary you attached, and so far it seems to work well on the new OS. I'll run through and make sure it all works properly, but so far so good. Thanks again - much appreciated.

G

@thbesson
Copy link

@thbesson thbesson commented Oct 18, 2019

Thanks for the package without ruby, it works perfectly with catalina :) Life saver!

@atait
Copy link
Contributor

@atait atait commented Oct 28, 2019

I built 0.26 on Catalina. No ruby. The DMGs are here
https://www.dropbox.com/sh/40myqi8brunje6s/AACW3_iVJiTq7zHI8mEOT9Xka?dl=0

One of them has system python 2.7. The other has homebrew python 3.7, which I need. As far as I know, there hasn't been a public python3 binary since 0.25.3, so I hope that is helpful for someone.

If you are interested in the compile details, I put some notes in #360

Best,
Alex

@thbesson
Copy link

@thbesson thbesson commented Oct 28, 2019

Thanks, it seems to work really well.

@lukasc-ubc
Copy link

@lukasc-ubc lukasc-ubc commented Oct 28, 2019

@atait
Copy link
Contributor

@atait atait commented Oct 29, 2019

Hi Lukas,

This one has Qt 5.11.1 and the other one I have is using had Qt 5.10.1. I can get your error in the new one, and I don't get it in the old one. That is likely the issue. The latest stable release of Qt on brew is 5.13.1. Perhaps they patched this incompatibility. I will rebuild and get back to you.

Also, I encountered an odd thing with SiEPIC-Tools. It does not find PCellDeclarationHelper via a star import. I think the issue is it not being added to pya's __all__ attribute. To fix it, I added this line

from pya import PCellDeclarationHelper

after the below line in "SiEPIC - General Library.lym". I don't know why that isn't a problem for everyone or in 0.25
https://github.com/lukasc-ubc/SiEPIC-Tools/blob/f5b5f14c57217c20695a4ffd6503cd7f7d331b9b/klayout_dot_config/pymacros/SiEPIC%20-%20General%20Library.lym#L25

@lukasc-ubc
Copy link

@lukasc-ubc lukasc-ubc commented Oct 29, 2019

@atait
Copy link
Contributor

@atait atait commented Oct 29, 2019

Building with Qt 5.13.1 did not solve the problem unfortunately. I cannot figure out how to downgrade to Qt 5.10.1 through brew. In #360, Matt was also able to compile on Catalina. I think he uses SiEPIC-Tools. You'd have to ask him whether it works for him. In either case, it might become necessary to update SiEPIC-Tools for the latest Qt. Hopefully that will be a matter of googling and then find-all/replace.
-Alex

@garethsion
Copy link
Author

@garethsion garethsion commented Oct 29, 2019

Thanks very much for working on this Alex.

@lukasc-ubc
Copy link

@lukasc-ubc lukasc-ubc commented Nov 2, 2019

@atait
Copy link
Contributor

@atait atait commented Nov 2, 2019

I am getting the same warnings. They do not seem to affect my code like they do to SiEPIC code. Starting a new thread in SiEPIC
SiEPIC/SiEPIC-Tools#103

@klayoutmatthias
Copy link
Collaborator

@klayoutmatthias klayoutmatthias commented Jun 29, 2020

This topic has been addressed and fixed in #589. Please note, that on MacOS certain build variants are not working reliably. Those are marked as "experimental" in the downloads section.

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

6 participants