[New-bugs-announce] [issue31383] Issue with _posixsubprocess when importing subprocess32

paullpaulson report at bugs.python.org
Thu Sep 7 11:07:15 EDT 2017


New submission from paullpaulson:

I am trying to install subprocess32 with my python 2.7 installation via buildroot. It appeared to install correctly but when I import it on the embedded system I get an error:

>>> import subprocess32
/usr/lib/python2.7/site-packages/subprocess32.py:472: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your pro
gram uses threads.
  "program uses threads.", RuntimeWarning)
Following this path I tried to import _posixsubprocess

import _posixsubprocess
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define init function (init_posixsubprocess)
subprocess32 seems to have it's own version and it's not working in this case?

I can use subprocess32 otherwise, tested out basic functionality like subprocess32.Popen(["ls"]).communicate()

----------
components: Cross-Build
messages: 301589
nosy: Alex.Willmer, gregory.p.smith, paulpaulson
priority: normal
severity: normal
status: open
title: Issue with _posixsubprocess when importing subprocess32
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31383>
_______________________________________


More information about the New-bugs-announce mailing list