And... after fixing that line, it blew up on another line somewhere in optparse.py. Apparently that lorax wasn't meant to be run on a stock 7.7 python install, oddly enough.

Dropping back to using a stock 7.6. We'll see how that goes. Next will be something with Anaconda undoubtedly....;-)

On 9/10/19, 3:26 PM, "[log in to unmask] on behalf of Kraus, Dave (GE Healthcare)" <[log in to unmask] on behalf of [log in to unmask]> wrote:

    Yep. Just doing that to get past it, and if I need to "downgrade" so be it...
    
    Thanks, just figured I'd check.
    
    On 9/10/19, 3:16 PM, "Pat Riehecky" <[log in to unmask]> wrote:
    
        
        
        On 9/10/19 3:05 PM, Kraus, Dave (GE Healthcare) wrote:
        > So, as it happens, we're spinning a 7.7. As I tried an initial lorax run to build the installation environment, I ran into a lorax python script error:
        >
        > Traceback (most recent call last):
        >    File "/usr/sbin/lorax", line 428, in <module>
        >      main(sys.argv)
        >    File "/usr/sbin/lorax", line 164, in main
        >      optional.add_argument("-e", "--excludepkgs", default=[],
        > AttributeError: OptionGroup instance has no attribute 'add_argument'
        > 0: ERROR: lorax failed. Exiting.
        >
        > The code snippet is as follows:
        >
        > ...
        >      optional.add_option("-e", "--excludepkgs", default=[],
        >              action="append", metavar="STRING",
        >              help="package glob to exclude (may be listed multiple times)")
        >      optional.add_option("-i", "--installpkgs", default=[],
        >              action="append", metavar="STRING",
        >              help="package glob to install before runtime-install.tmpl runs. (may be listed multiple times)")
        >      optional.add_argument("-e", "--excludepkgs", default=[],
        >              action="append", metavar="PACKAGE",
        >              help="package glob to remove before runtime-install.tmpl runs. (may be listed multiple times)")
        >      optional.add_option("--buildarch", default=None,
        >              help="build architecture", metavar="STRING")
        > ...
        >
        > lorax-19.7.19-1 which I was using previously, has the -e option using using optional.add_option().
        >
        > So, Pat, is there a lorax version that doesn't have that in that you used for 7.7, or am I missing a python2 update that adds the "add_argument" method?
        >
        >
        
        I suspect the system I ran the compose with didn't have the 7.7 lorax 
        (and had the 7.6).  I'll take a look.  You can do a quick fix for now 
        and set `add_argument` to `add_option` and it should run for the moment.
        
        Pat
        
        -- 
        Pat Riehecky
        
        Fermi National Accelerator Laboratory
        http://www.fnal.gov
        https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scientificlinux.org&d=DwIGaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbBYBgsCHS7vSr83lHQ-aa58eXICk1KkzZlAHgohLRRrX&m=DXp7Sg4jPJA0q5onjrrz-ZKnTCxv2bXPP5L9eVCQhzk&s=ce31jBTlT7HlflfQ0zzjvPTt9be31Ns-2tfAA0E_KdE&e=