❔ Process.Start() on Python script on Ubuntu won't start
For a Unity project, I need to generate a text document using a Python script and also generate TTS voice lines using another Python script. My problem is when I start the script using
Process.Start()
, it just doesn't start and skips that part completely.
Here's one of the things I tried:
7 Replies
did u check that process' output and error streams? maybe there is some information
ProcessStartInfo.RedirectStandardError Property (System.Diagnostics)
Gets or sets a value that indicates whether the error output of an application is written to the StandardError stream.
I managed to get a terminal to open, then open python from there, but now it doesn't detect any modules for some reason?
i dunno much about python, maybe it has to do with the working directory u r in?
Try with /usr/bin/env python3
@guiguig
That worked, thanks!
Well, I thought it worked fine. But turns out it won't let my python script write to a file. I tried logging it's output and it seems to just skip over any part where the file is opened and written to. I tried flushing but it seems to just do nothing.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.