-
Notifications
You must be signed in to change notification settings - Fork 109
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
import pyoptsparse
hangs (on local machine) when using a vpn
#355
Comments
Hello Jacob. This sounds very surprising to me as, to the best of my knowledge, How are you setting up your python environment? Are you using bare-metal Python or do you rely on Conda or other environment/package managers? One approach to try and bisect the origin of the issue could be to comment out entries from |
Hi Marco, I've tried doing some bisecting and other searching, though not exhaustively. Here's what I'm seeing
So far it looks like an issue with |
When not connected to wifi at all, it works - but whichever of these two is loaded first is subject to a 4 or 5-second delay
This is strong evidence that the issue is coming from baseclasses. I can reopen the issue under that repo if you like. |
Nice detective work! No need to open a new issue right now imho, we can keep the conversation here until we narrow down the problem more specifically. I cannot replicate the VPN issue but I also observe a 1-2 sec delay when |
To add on to what @marcomangano said, can you also include the following information?
|
Thank you for the encouragement! I may have some more time to troubleshoot
According to
I used |
I use the same I don't have experience with Anyway, keep us posted about the |
Continued debugging: Within baseclasses, it seems to hang (when on the vpn) on |
This line, alone (outside of pyoptsparse or baseclasses) causes the same behavior: delay when not on VPN. Hangs forever when on vpn. So I think it must be deeper in there. |
Do you have MPI/mpi4py installed into the environment? If so can you list the versions and which MPI implementation you are using? Lastly, can you try the suggestion here for disabling MPI? I suspect it won't work since baseclasses does not respect this env var, but perhaps worth a try. |
Thanks nwu. Just saw the suggestion to disable it, but you're right that doesn't work. |
Description
This feels like an odd one.
I'm running python on my local machine.
When I'm not connected to a certain VPN, I can
import pyoptsparse
. When I am connected, it hangs on theimport
command.This happens both in a python repl and a jupyter notebook (using the same kernel).
The import command stops hanging and succeeds a few moments after disconnecting the vpn.
This seems very odd to me, as I don't know why there would be any network-calling code in pyoptsparse (other than perhaps to check license for certain optimizers?)
Steps to reproduce issue
import pyoptsparse
Current behavior
it hangs until I disconnect from the VPN
Expected behavior
it imports
Code versions
The text was updated successfully, but these errors were encountered: