This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sskamble619
Recipients sskamble619
Date 2018-07-24.21:02:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
We are trying to utilize librosa library for some processing. When we try to load the librosa library, python platform library is triggered via the  Numba library. Numba is trying to find the underlying OS which is installed. Function "_syscmd_uname" is triggered to find out the underlying os, but in the above function the os.popen object which is opened to determine the OS , but when the object is closed it throws a no child process error. This is mainly due to the closure of the popen object before the close fuction is called. we can get around this problem 
by catching the error and returning a default value if the closing of the popen pipeline fails

python file

def _syscmd_uname(option, default=''):

    """ Interface to the system's uname command.
    if sys.platform in ('dos', 'win32', 'win16'):
        # XXX Others too ?
        return default
        f = os.popen('uname %s 2> %s' % (option, DEV_NULL))
    except (AttributeError, OSError):
        return default
    output =
    rc = f.close()  # error at this place enclose in a try except statement to catrch the exception
    if not output or rc:
        return default
return output
Date User Action Args
2018-07-24 21:02:51sskamble619setrecipients: + sskamble619
2018-07-24 21:02:51sskamble619setmessageid: <>
2018-07-24 21:02:51sskamble619linkissue34216 messages
2018-07-24 21:02:51sskamble619create