[Bug 1549176] [NEW] gevent.subprocess does not work because MAXFD is not defined in Python 3.5

Dato Simó dato at net.com.org.es
Wed Feb 24 08:47:05 UTC 2016


Public bug reported:

This is for the python3-gevent in xenial (1.1~b1-0ubuntu2).

The gevent.subprocess module imports a list of symbols from
the standard library’s subprocess, but Python 3.5 removed
subprocess.MAXFD, producing this error:

$ python3
Python 3.5.1+ (default, Jan 13 2016, 15:09:18)
[GCC 5.3.1 20160112] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from gevent import subprocess
>>> subprocess.call(["echo"])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/gevent/subprocess.py", line 125, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3/dist-packages/gevent/subprocess.py", line 396, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3/dist-packages/gevent/subprocess.py", line 1079, in _execute_child
    raise child_exception
NameError: name 'MAXFD' is not defined
>>>


This is seemingly fixed upstream: https://github.com/gevent/gevent/issues/653

** Affects: python-gevent (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-gevent in Ubuntu.
https://bugs.launchpad.net/bugs/1549176

Title:
  gevent.subprocess does not work because MAXFD is not defined in Python
  3.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-gevent/+bug/1549176/+subscriptions



More information about the Ubuntu-server-bugs mailing list