pyoptsparse icon indicating copy to clipboard operation
pyoptsparse copied to clipboard

`import pyoptsparse` hangs (on local machine) when using a vpn

Open cfe316 opened this issue 1 year ago • 11 comments

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 the import 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

  1. Have pyoptsparse installed successfully - I can run Openmdao problems using IPOPT, for example.
  2. Turn on the Pulse Secure VPN so I connect to my lab's servers
  3. Open a new, local python repl or notebook
  4. import pyoptsparse

Current behavior

it hangs until I disconnect from the VPN

Expected behavior

it imports

Code versions

  • Operating System: pop!_os
  • Python: 3.10.2
  • OpenMPI: n/a
  • CGNS: idk what this is
  • PETSc: n/a
  • Compiler: not relevant?
  • This repository: 2.9.2

cfe316 avatar Aug 30 '23 20:08 cfe316