It looks like you're new here. If you want to get involved, click one of these buttons!
Although I can use pya's most of the classes, my pya version doesn't support classes like Application or LayoutView for some reason.
I get this error:
'pya' has no attribute 'Application'
'pya' has no attribute 'LayoutView'
Is there a simple way I can fix it? I used "pip install pya" from command prompt of my windows to install it. (Also installed pya from pycharm IDE- from settings, import package)- But still doesn't work.
Also, I tried to find it from Anaconda navigator to add it to my virtual environment but couldn't see the package there.
Did you read documentation?
Which part of the documentation?
@EugeneZelenko , I looked through the forum but still couldn't solve the problem. Could you please direct me which part of the document should I focus?
Also do you know the reason of this problem?
Python code should be in macro file (.lym) or called from such file. Code itself is executed inside KLayout, not external Python. See documentation. I provided link to sample scripts in yout past discussion.
Thanks, will look into that