WinError 10054

16 views
Skip to first unread message

Fermín Rodríguez Hernández

unread,
10:25 AM (12 hours ago) 10:25 AM
to Pyomo Forum
Dear all,

I am a bit new to pyomo, although some previous experience with LP and MILP. I am setting up a MILP using pyomo and getting the following error:

 [WinError 10054] An existing connection was forcibly closed by the remote host

while I am pretty sure I am running my code locally. Do you have any clue about the origin of this error?

Thank you very much in advance!
Best regards,
Fermin

Siirola, John

unread,
10:33 AM (12 hours ago) 10:33 AM
to pyomo...@googlegroups.com

Fermin,

 

Unfortunately, there’s not much that can be done to diagnose your problem with the information you have given.  Can you provide more information, including:

  • The full stack trace / console log
  • Information on your environment, including:
    • Platform (we assume Windows?)
    • Python distribution and version
    • How you installed Pyomo (pip, conda, source)
  • What solver / solver interface are you using
  • How are you running Pyomo (at the command line? Through an IDE – and if so which one?)
  • (Ideally) the script you are running (model, driver, etc).

 

Best regards,

John

 

From: pyomo...@googlegroups.com <pyomo...@googlegroups.com> On Behalf Of Fermín Rodríguez Hernández
Sent: Tuesday, January 13, 2026 4:17 AM
To: Pyomo Forum <pyomo...@googlegroups.com>
Subject: [EXTERNAL] WinError 10054

 

You don't often get email from ferm...@gmail.com. Learn why this is important

--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pyomo-forum/637134e1-af40-4b38-8717-7daadf441bean%40googlegroups.com.

Fermín Rodríguez Hernández

unread,
12:47 PM (10 hours ago) 12:47 PM
to Pyomo Forum
Hi John, thanks for your answer, here are my specifications:


  • The full stack trace / console log
>> the error is quite wire to me, it just stop, writting that message, without any traceback error, even the debug console is completely close, so I have to start again

  • Information on your environment, including:
    • Platform (we assume Windows?) -> win 11
    • Python distribution and version -> 3.12.10 (local venv)
    • How you installed Pyomo (pip, conda, source) -> pip
    • libraries: Package                       Version
      ----------------------------- -----------
      annotated-types               0.7.0
      arrow                         1.4.0
      boto3                         1.42.25
      botocore                      1.42.25
      databricks-connect            16.1.4
      databricks-sdk                0.77.0
      databricks-sql-connector      3.7.4
      debugpy                       1.8.19
    • highspy                       1.11.0
      ipykernel                     7.1.0
      ipython                       9.9.0
      ipython_pygments_lexers       1.1.1
      jupyter_client                8.8.0
      jupyter_core                  5.9.1
      jupyter-events                0.12.0
      jupyter-lsp                   2.3.0
      jupyter_server                2.17.0
      jupyter_server_terminals      0.5.3
      jupyterlab                    4.2.3
      jupyterlab_pygments           0.3.0
      jupyterlab_server             2.28.0
      loguru                        0.7.3
      matplotlib                    3.8.3
      matplotlib-inline             0.2.1
      nbconvert                     7.16.6
      nbformat                      5.10.4
      numpy                         1.26.4
      pandas                        1.5.3
      pandera                       0.22.1
      pillow                        10.4.0
      pip                           25.3
      pyarrow                       16.1.0
      pydantic                      2.12.2
      pydantic_core                 2.41.4
      pyomo                         6.9.4
      scipy                         1.17.0
      seaborn                       0.13.2
      SQLAlchemy                    2.0.44
  • What solver / solver interface are you using
    from pyomo.environ import SolverFactory
    optimizer = SolverFactory("appsi_highs")
    solver_KPI = optimizer.solve(
                model,
                tee=True,
            )

    • How are you running Pyomo (at the command line? Through an IDE – and if so which one?)  -> I use VSC
    • (Ideally) the script you are running (model, driver, etc). -> this I can not provide, sorry, but appreciate very much any hint you could suggest

    Thank you very much in advance!


    Siirola, John

    unread,
    1:01 PM (9 hours ago) 1:01 PM
    to pyomo...@googlegroups.com

    OK.  This looks like something fighting with your VScode environment.  Some suggestions (in order):

    • Update Pyomo to 6.9.5 (just as a matter of course – I don’t think there were any changes in that release that would directly affect this issue, but it never hurts)
    • Try running with SolverFactory("highs") – i.e., a wrapper around the current development interface from pyomo.contrib.solver and not the beta interface from APPSI.
    • Try running with tee=False
    • Try running your python script from a native command line and not through VScode

     

    Unfortunately, I don’t generally develop in VScode (and without knowing your full environment / model, it is unlikely that we will be able to reproduce your error – so I am just guessing).

     

    Best,

    Reply all
    Reply to author
    Forward
    0 new messages