Ticket #4318 (new defect)

Opened 6 years ago

Last modified 5 years ago

Improve error when saving model to unknown format

Reported by: jdsiiro Owned by: unassigned
Priority: normal Milestone: Pyomo 4.x
Component: pyomo.core Version:
Keywords: Cc:

Description

When running pyomo with the following:

lbin pyomo pmedian.py pmedian.test1.dat --save-model=foo.lp.save

Pyomo produces the following nonintuitive output:

[    0.00] Setting up Pyomo environment
[    0.00] Applying Pyomo preprocessing actions
[    0.00] Creating model
ERROR: Unexpected exception while running model pmedian.py
        __call__() takes at most 3 arguments (4 given)

The root cause is that Pyomo doesn't know how to write a ".save" file. We need to improve this error message to tell the user to either pick a known extension, or to specify the format as a command line option.

Change History

comment:1 Changed 5 years ago by jwatson

  • Milestone changed from Coopr 3.2 to Coopr 3.x
Note: See TracTickets for help on using tickets.