[Libre-soc-bugs] [Bug 696] [Coroliosis 2] Library libMut Not Found During Alliance Install

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Sep 23 21:58:58 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=696

--- Comment #14 from andrey at technepisteme.xyz ---
(In reply to andrey from comment #13)
> Running the command:
> $ /home/$USER/coriolis-2.x/src/coriolis/bootstrap/coriolisEnv.py >
> /home/$USER/coriolisenv
> 
> Gives:
> Traceback (most recent call last):
>   File "/home/rohdo/coriolis-2.x/src/coriolis/bootstrap/coriolisEnv.py",
> line 133, in <module>
>     shellBin, isBourneShell = guessShell()
>   File "/home/rohdo/coriolis-2.x/src/coriolis/bootstrap/coriolisEnv.py",
> line 111, in guessShell
>     shellPath     = whichCommand.stdout.readlines()[0][:-1]
> IndexError: list index out of range
> 
> Is it to do with the $TERM or $SHELL variables?

This is the function in question:
def guessShell ():
   # This environement variable cannot be trusted as it is set once when
   # the user logs in. If aftewards it changes it that variable is *not*
   # affected :-(.
   #if os.environ.has_key('SHELL'): return os.environ['SHELL']
    psCommand     = subprocess.Popen ( ['ps', '-p', str(os.getppid()) ],
stdout=subprocess.PIPE )
    shell         =
psCommand.stdout.readlines()[1].decode('ascii')[:-1].split()[3].lstrip('-')
    whichCommand  = subprocess.Popen ( ['which', shell ],
stdout=subprocess.PIPE )
    shellPath     = whichCommand.stdout.readlines()[0][:-1]
    isBourneShell = True
    cshBins       = [ '/usr/bin/tcsh'
                    , '/bin/tcsh'
                    , '/usr/pkg/bin/tcsh'
                    , '/usr/local/bin/tcsh'
                    , '/usr/bin/csh'
                    , '/bin/csh'
                    , '/usr/pkg/bin/csh'
                    , '/usr/local/bin/csh'
                    ]
    if shellPath in cshBins: isBourneShell = False
   #print( 'GUESSED SHELL: "{}"'.format( shellPath ))
    return shellPath, isBourneShell

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list