STINNER Victor added the comment:
Duplicate of issue #24725, I proposed a backport to 3.5:
https://github.com/python/cpython/pull/1427
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> test_socket testFDPassEmpty fails on OS X 10.11+ with "Cannot
len(MSG), 10240),
File
"/Users/buildbot/buildarea/3.5.billenstein-elcapitan/build/Lib/test/test_socket.py",
line 1955, in doRecvmsg
result = sock.recvmsg(bufsize, *args)
OSError: [Errno 12] Cannot allocate memory
On 01/12/16 01:12, Chris Kaynor wrote:
> On Wed, Nov 30, 2016 at 4:54 PM, duncan smith wrote:
>>
>> Thanks. So something like the following might do the job?
>>
>> def _execute(command):
>> p = subprocess.Popen(command, shell=False,
>>
On 01/12/16 00:46, Chris Kaynor wrote:
> On Wed, Nov 30, 2016 at 4:12 PM, duncan smith wrote:
>> On 30/11/16 17:57, Chris Angelico wrote:
>>> On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote:
def _execute(command):
# shell=True
On Wed, Nov 30, 2016 at 4:54 PM, duncan smith wrote:
>
> Thanks. So something like the following might do the job?
>
> def _execute(command):
> p = subprocess.Popen(command, shell=False,
> stdout=subprocess.PIPE,
>
, format)
>> File "dot.py", line 921, in to_image
>> _execute('%s -T%s -o %s' % (prog, format, filename))
>> File "dot.py", line 887, in _execute
>> close_fds=True)
>> File "/usr/lib/python2.7/subprocess.py", line 711, in __ini
On Wed, Nov 30, 2016 at 4:12 PM, duncan smith wrote:
> On 30/11/16 17:57, Chris Angelico wrote:
>> On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote:
>>>
>>> def _execute(command):
>>> # shell=True security hazard?
>>> p =
On 30/11/16 17:57, Chris Angelico wrote:
> On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote:
>>
>> def _execute(command):
>> # shell=True security hazard?
>> p = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
>>
On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote:
>
> def _execute(command):
> # shell=True security hazard?
> p = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
> stdout=subprocess.PIPE,
>
[snip]
Sorry, should have said Python 2.7.12 on Ubuntu 16.04.
Duncan
--
https://mail.python.org/mailman/listinfo/python-list
line 887, in _execute
> close_fds=True)
> File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
> errread, errwrite)
> File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child
> self.pid = os.fork()
> OSError: [Errno 12] Canno
line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
The relevant (AFAICT) code is,
def to_image(text, filename, prog='dot', format='dot')
12 matches
Mail list logo