Closed tdouglas91 closed 3 months ago
Thank you for reporting this. Yet, I could not reproduce this issue.
Could you please confirm that you have the required packages & versions installed as in the provided requirements file https://github.com/INLnano/pyMOE/blob/main/requirements.txt ?
Other possible reasons, though it is hard to know from the information provided:
infile
, which I guess is "circle.gds", hence is the file "circle.gds" provided in same folder? Can you open "circle.gds" outside pyMOE (e.g. with KLayout) and check if is it fine (e.g. is not corrupted, etc)? Hi João,
I am running this in pycharm... but gdspy I have 1.6.13 (if I remember correctly it wouldn't let me install an earlier version), klayout 0.29.2, pillow 10.3.0, shapely 2.0.4... it wouldn't let me install zernike for some reason... maybe that is why. But what is odd, is that sometimes it runs to the end and sometimes it gives this error...
Temple
On Wed, Jul 17, 2024 at 6:41 PM Joao Cunha @.***> wrote:
Thank you for reporting this. Yet, I could not reproduce this issue.
Could you please confirm that you have the required packages & versions installed as in the provided requirements file https://github.com/INLnano/pyMOE/blob/main/requirements.txt ?
Other possible reasons, though it is hard to know from the information provided:
- The error reports it cannot open the infile, which I guess is "circle.gds", hence is the file "circle.gds" provided in same folder? Can you open "circle.gds" outside pyMOE (e.g. with KLayout) and check if is it fine (e.g. is not corrupted, etc)?
- Does this error appear when running the cells sequentially one after the other as they appear in the example? Because jumping across cells could cause initialization/attribution mix up.
— Reply to this email directly, view it on GitHub https://github.com/INLnano/pyMOE/issues/44#issuecomment-2233852693, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACS6VA7JMVTH62LYZBJWNZTZM2UETAVCNFSM6AAAAABLBACMBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTHA2TENRZGM . You are receiving this because you authored the thread.Message ID: @.***>
I don't have experience with pycharm, but it does seem very strange that you only get the error sometimes which might point to some particularities of the IDE in your system. Debugging in this particular case needs to be performed at your system/IDE, as I could not reproduce it in my end.
Furthermore the mismatch to the recommended package versions might create trouble, and might lead some differences in outcome, but it seems to not be the case here as you report you are actually able to run without errors sometimes.
For a smooth running experience, we recommend Jupyter Notebook or Lab with installed dependencies in the requirements.txt file.
I am closing this issue as it seems IDE/ system dependent. If in the contrary you find that it is inherent to pyMOE please open again.
Sometimes I get this error halfway through .gds generation in the metalens example. It generates the fresnel_metasurface_pillars_instance.gds file but not the fresnel_metasurface_pillars.gds file and then crashes out.