On Thu, Sep 30, 2021 at 4:34 AM Benjam901 <benandrewhe...@gmail.com> wrote:
> Hello all, > > It is time to finally get a project out as open source but I am having a > serious roadblock issue with subprocess. > > - In the code I create a new QThread for the subprocess function to run on. > - Once the QThread is running I use subprocess.run() OR subprocess.Popen > (whatever works) to call ffmpeg to convert some audio files. > > This works within PyCharm HOWEVER as soon as I package it up into a .app > for mac it crashes immediately upon trying to run the subprocess without > any errors or stacktrace. > > Has anyone had any issues like this before, I would really like this > project to be finished and this is the last blocker > You are developing on a mac as well and the only difference is source vs app packaging? Is the crash a segfault? Is the path to ffmpeg an absolute path or is it relying on $PATH which may be different in the app? Can you successfully run a subprocess command in the packaged app without a QThread (is the QThread the factor)? Have you tried QProcess? > Cheers, > > Ben > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/672ff5b3-ceac-4d42-acaf-c448ea375013n%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/672ff5b3-ceac-4d42-acaf-c448ea375013n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2SuS%2BQOKvvf9yBvPb0PnB%3DwPz3BPFfjj%2Bq_2ThtreV0A%40mail.gmail.com.