I'm only guessing, as I don't know python very well, let alone "Twisted",
and you've given zero information about the process that is spawning
liquidsoap, nor what test.liq is even trying to do - but from what I've
found about that error in liquidsoap, my best guess is one of the
following, in descending order of likelihood:
1. setting env={'HOME':....} means that the spawned process has only the
HOME environment variable, all other normally present environment variables
are not passed on to the liquidsoap process, so it fails trying to access
something it needs to access because it can not find it; or
2. the process is running under a UID without permission to read test.liq,
or maybe write in the /home/edorado/liquidsoap folder
In the case of 1), you'd need to copy *os.environ* and change *HOME* in the
copy, then use this copy in the env= part of spawnProcess
In the case of 2), perhaps you need to set the *uid* (and *gid*) of
spawnProcess to be that of the "edorado" user
On 15 February 2015 at 22:33, Edoardo Codeglia <[email protected]> wrote:
> Hello,
> I'm making a simple Twisted script to get the output of liquidsoap and
> send it via Websockets. However, I get an error:
>
> "Fatal error: exception Not_found"
>
> when i try to start the subprocess.
>
> Here's the function i'm using:
>
> reactor.spawnProcess(liqHandler, "liquidsoap", ["liquidsoap","test.liq"],
> env={'HOME': '/home/edoardo'}, path='/home/edoardo/liquidsoap', usePTY=True)
>
> Someone else had this problem before, which you can see here:
>
>
>
> *http://sourceforge.net/p/savonet/mailman/message/32151483/
> <http://sourceforge.net/p/savonet/mailman/message/32151483/> *But still,
> i didn't quite understand how to solve it.
>
> Thank you!
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users