Hi
Could your problem be some SELINUX issue?
Perhaps disable SELINUX temporarily and see if the problem persists.
On Tue, 11 Mar 2014 20:07:48 -0400
Shawn Milochik <
shawn...@gmail.com> wrote:
> Hi Russ, thanks for the reply.
>
> What I mean by "under Django" is if I call it from within a view or with
> "manage.py shell" I get the problem. On the system in question,
> "manage.py shell" does in fact invoke iPython. However, invoking iPython
> manually (without manage.py) works. Executing the script stand-alone
> works.
>
> I tried to circumvent the entire problem by adding an "if __name__ ==
> '__main__'" block to the script and having it take a command-line
> argument via argparse and print the desired output. Then I did a
> subprocess.check_output call on *that* instead of importing the module.
> This worked from "manage.py shell," but not within a view in Django --
> the same OS error 12.
>
> The error happens in a call to os.fork within the subprocess.call or
> subprocess.check_output methods (I tried both). The traceback is here:
>
http://bpaste.net/show/NRYtgvzoqyOBawl6XoxY/
>
> I'm going to have to keep poking at it, but I was really hoping someone
> had encountered this before. I did see some cases via Google on forums
> and StackOverflow where people reported the problem, but there were no
> answers other than directly addressing the amount of memory required,
> but I'm pretty sure this script isn't consuming much memory. Even when
> it's not running ls, it's just doing a subprocess call to gpg to sign
> and encrypt a file. It takes well under one second.
>
> Thanks for looking at it.
> Shawn
>
--
Drew Ferguson