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

python 2 compatibility #1

Closed
joamatab opened this issue Jul 19, 2018 · 2 comments
Closed

python 2 compatibility #1

joamatab opened this issue Jul 19, 2018 · 2 comments

Comments

@joamatab
Copy link

Thank you Alex for sharing Klayout_ipc!

Im getting the same error message both in Ubuntu and Mac, after installing the salt package I get

/Users/joaquin/.klayout/salt/klayout_ipc/python/lyipc/init.py:31: invalid syntax
/Users/joaquin/.klayout/salt/klayout_ipc/pymacros/start.lym:4

SyntaxError: invalid syntax

Im using python2 and klayout-0.25.3-macOS-HighSierra-1-Qt5101mp

@joamatab
Copy link
Author

the error got solved with python3 version of klayout for the server
klayout-0.25.3-macOS-HighSierra-1-Qt5101brew-Py364-9708d35.dmg (macOS 10.13 - Homebrew, Python 3)

and pip3 install for the client

@atait
Copy link
Owner

atait commented Jul 20, 2018

Hi @joamatab, thanks for testing it out.

I think python 2 will be feasible. The trick is that PyQt5 does not install in python 2 as readily as it does with python 3. The client side socket would have to be rewritten to use the regular "socket" package, which I think is a good goal anyways to remove the PyQt dependency. I tried writing the server with "socket," and klayout's Qt did not like that for some reason.

@atait atait closed this as completed Mar 6, 2020
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