-
Notifications
You must be signed in to change notification settings - Fork 205
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
Salt manager, error downloading #973
Comments
Hi Lukas, actually this seems to be generated by a timeout (the message could be more intuitive). I hardcoded 10 seconds which appeared enough to me. Do you think it's likely that 10 seconds are exceeded? I can easily extend it to something like 60 seconds. I just wonder if there is an upper limit. I think it's also possible - although harder - to implement infinite timeout with a way to cancel the download. For my records: code is tlHttpStreamQt.cc, lines 421+ Best regards, Matthias |
Could this be a parameter that can be modified by script config variable, or OS environment, or software configuration window?
Infinite with cancel would be nicest, but 30-60 s in the meantime would be better perhaps.
Lukas Chrostowski
Professor, Electrical and Computer Engineering
University of British Columbia
Quantum Matter Institute
Member, College of the Royal Society of Canada
http://siepic.ca Silicon Photonics
http://quantumbc.ca Quantum Computing CREATE program
https://qmi.ubc.ca/about/directory/lukas-chrostowski
… On Jan 15, 2022, at 11:58 AM, Matthias Köfferlein ***@***.***> wrote:
Hi Lukas,
actually this seems to be generated by a timeout (the message could be more intuitive). I hardcoded 10 seconds which appeared enough to me. Do you think it's likely that 10 seconds are exceeded?
I can easily extend it to something like 60 seconds. I just wonder if there is an upper limit. I think it's also possible - although harder - to implement infinite timeout with a way to cancel the download.
For my records: code is tlHttpStreamQt.cc, lines 421+
Best regards,
Matthias
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Sure, I'll take a look. I have not though 10 seconds would become a problem, but I could confirm that for big files there really is a latency in the order of seconds. |
0.27.8 is released which should fix this problem. |
I have problems downloading using the package manager. We've seen this for the SiEPIC-Tools and the SiEPIC-EBeam-PDK packages. The errors occur for larger files - in this case, they are 9 MB in size. The solutions I've had are: ask people to install the package using a different means (GitHub Desktop with a symbolic link so they can still receive updates). |
You mean 60 seconds timeout is not enough? |
I am also having issues with the package manager for SiEPIC-Tools. It seems to download all but one of the files, then it fails the whole installation :( For reference the error says: |
It could be because of the filename which contained ( and ). I changed the filename, and released v0.4.1. Can you please try again?
|
Works now! Thank you! |
Hi @CSG81, this is because GitHub closed the SVN bridge and the package URL was still referring to this feature. I migrated the package to my backup SVN instance and changed the URL, but this is the last time this will be possible. In the future, the package should use the Git interface and a corresponding URL. From your side this will require a recent KLayout version which supports Git-hosted packages. I'd recommend 0.28.15. Matthias |
This is not a KLayout issue, but rather should be reported here: https://github.com/SiEPIC/SiEPIC-Tools/issues |
I just checked myself - there is no obvious problem with this package. Matthias |
Hi Matthias,
Thx for your email.
No I am not able to install it either (see below). Can it be related to my firewall?
Regards.
|
Firewall may be an issue, yes. Matthias |
ok thx. i will try that. |
Maybe it's also a permission issue on the folder? Could you check whether the folder Matthias mentioned is write protected by chance? As it fails immediately that would be my guess, or otherwise as Matthias mentioned a firewall / DNS issue (though the latter is unlikely due to you being able to resolve the saltmine successful). Also irrelevant but related, completely forgot to make the metainfo_ports 0.28.17+ as I just did with klive (people don't like to update klayout it seems) |
Very good. Kind regards, Matthias |
Hi Matthias, I've been trying to add the 'SiEPIC' on the menu tab, as per the given instructions on (https://github.com/siepic/SiEPIC_EBeam_PDK/wiki/Installation-instructions) this page. I do not get any 'SiEPIC' option on the menu tab, but rather a whole lot of other options (as attached in the screenshots). I even tried the alternative method but got the same result. I'd be truly grateful for any help or suggestion. Eagerly waiting for any replies. Regards, |
@JoshiRaghavendra please move your problem to the SiEPIC-EBeam-PDK github instead: https://github.com/SiEPIC/SiEPIC_EBeam_PDK |
Sure sir |
I assume you are using an old version of KLayout. You need to use a recent version ( I recommend 0.29.1) as GiHub has closed their SVN bridge. But this ticket is closed. Don't expect a response on closed tickets. |
Got it. Thank you very much for answering though. I didn't check if the thread was closed or not. My bad. Will be more careful next time. |
No worries, I still found it :) Is the problem fixed? Matthias |
Thanks for this note. For some reason I still have to debug, this package got lost on the package index among with two other packages. I have restored these entries. Installation should work again. Thanks, Matthias |
@wriddz please provide a little bit more info. What is your klayout version? What is the actual error you are getting from downloading (your screenshot exactly cuts this off)? |
I confirmed it is basically working currently. Problems may be elsewhere. Like your organization does not allow git access from the Windows clients. Getting diagnostics from such network problems is notoriously difficult and I assume that is intentional. Fallback is always to download the original files as .zip archive and unpacking into the "salt" folder from your KLayout home directory ( Matthias |
Hi @sebastian-goeldi , I am using the 0.29.6 version of the KLayout. I am hereby attaching the full picture of the error. Hi @klayoutmatthias , actually I tried the way you mentioned, i.e. downloading the .zip archive and unpacking and moving the "Python_packages_for_KLayout" to the salt folder, but still I was facing the same error. Am I missing something out? |
You do not need to download through the package manager if you have installed it yourself. The package manager basically only downloads the files to c:\home\you\klayout\salt\package-name. If you did the same manually, the package should be there, after you restart KLayout. |
Okay, thank you. |
Hello @klayoutmatthias, I am not sure if here is the right place for trying to solve the error I get when I try to use the packages siepic_tools 0.5.11 and siepic_ebeam_pdk 0.4.11 and lumerical. The example that I am trying to do is basically create a new layout with the EBeam technology, go to the "EBeam, Components with models" library, and choose and add a component (for e.g., ebeam _bragg_te1550) in the layout. then in the menu tool SiEPIC 0.5.11 Py3, and under Simulations, Components, I click on Component: show Comapct Model in Lumerical INTERCONNECT. It would be great if someone could help me solve this. Thanks. |
@Shehab2121 this is much more likely either a version problem of siepic wrt to klayout's python, or just a general problem of siepic. The better place to ask is probably either the issues of siepic pdk or tools. But generally speaking unhashable type means that your program is trying to use a mutable object (in this case list) where an immutable one is expected. This can happen if you are using something as a dictionary key or try to cache it, for example. My guess is on the caching in this case, but I am not familiar with siepic. |
Dear @klayoutmatthias,
Several percent of my users have problems downloading using the package manager. We've seen this for the SiEPIC-Tools and the SiEPIC-EBeam-PDK packages. The errors occur for larger files - in this case, they are 9 MB in size. The solutions I've had are:
This problem seems intermittent. I wonder if you have any advice?
Do you know if the issue is coming from a time-out somewhere if the download time is too long? Is this something that could be adjusted in KLayout?
thank you
Lukas
The text was updated successfully, but these errors were encountered: