Your message dated Thu, 09 Oct 2014 19:05:25 +0000 with message-id <[email protected]> and subject line Bug#694750: fixed in python-gevent 1.0.1-1 has caused the Debian Bug report #694750, regarding python-gevent: python -m gevent.monkey --thread script.py Can't work to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 694750: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694750 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python-gevent Version: 0.13.6-1+b2 Severity: minor Dear Maintainer, I want to try gevent and I write a script $ cat thread.py #!/usr/bin/python # python thread.py # python -m gevent.monkey thread.py import threading class Thread(threading.Thread): def __init__(self, name): threading.Thread.__init__(self) self.name = name def run(self): for i in xrange(10): print self.name threadA = Thread("A") threadB = Thread("B") threadA.start() threadB.start() when I try run: $python thread.py $python -m gevent.monkey thread.py $python -m gevent.monkey --no-thread thread.py the output is my expected. but when I run: $python -m gevent.monkey --thread thread.py the output is: gevent.monkey - monkey patch the standard modules to use gevent. USAGE: python -m gevent.monkey [MONKEY OPTIONS] script [SCRIPT OPTIONS] If no OPTIONS present, monkey patches all the modules it can patch. You can exclude a module with --no-module, e.g. --no-thread. You can specify a module to patch with --module, e.g. --socket. In the latter case only the modules specified on the command line will be patched. MONKEY OPTIONS: --verbose --[no-]thread, --[no-]dns, --[no-]ssl, --[no-]httplib, --[no-]time, --[no-]select, --[no-]socket, --[no-]os Cannot patch 'thread' I think --thread is a valid options mention by the usage, but it can't work then I read the file : /usr/lib/pymodules/python2.7/gevent/monkey.py I find this: 222 while argv and argv[0].startswith('--'): 223 option = argv[0][2:] 224 if option == 'verbose': 225 verbose = True 226 elif option.startswith('no-') and option.replace('no-', '') in modules: 227 args[option[3:]] = False 228 elif option not in modules: 229 args[option] = True 230 else: 231 sys.exit(script_help + '\n\n' + 'Cannot patch %r' % option) 232 del argv[0] when I delete the word 'not' in line 228, and run the command age. everything is OK now. I think this is a bug and may be need to be fixed. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-gevent depends on: ii libc6 2.13-35 ii libevent-2.0-5 2.0.19-stable-3 ii python 2.7.3~rc2-1 ii python-greenlet 0.4.0-1 ii python-support 1.0.15 python-gevent recommends no packages. Versions of packages python-gevent suggests: pn python-gevent-dbg <none> ii python-gevent-doc 0.13.6-1 pn python-openssl <none> -- no debconf information
--- End Message ---
--- Begin Message ---Source: python-gevent Source-Version: 1.0.1-1 We believe that the bug you reported is fixed in the latest version of python-gevent, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Laszlo Boszormenyi (GCS) <[email protected]> (supplier of updated python-gevent package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Wed, 08 Oct 2014 16:20:29 +0000 Source: python-gevent Binary: python-gevent-dbg python-gevent-doc python-gevent Architecture: source amd64 all Version: 1.0.1-1 Distribution: unstable Urgency: low Maintainer: Laszlo Boszormenyi (GCS) <[email protected]> Changed-By: Laszlo Boszormenyi (GCS) <[email protected]> Description: python-gevent - gevent is a coroutine-based Python networking library python-gevent-dbg - gevent is a coroutine-based Python networking library - debugging python-gevent-doc - gevent is a coroutine-based Python networking library - documenta Closes: 694750 700731 747283 764499 Changes: python-gevent (1.0.1-1) unstable; urgency=low . * New upstream release, fixes thread switch detection (closes: #694750). * Fix sphinx build problem (closes: #700731). * Tighten greenlet dependency (closes: #747283). * Update Standards-Version to 3.9.6 . * Sync with Ubuntu. . [ Matthias Klose <[email protected]> ] * Fix build failure with python2.7 and PEP 466 (closes: #764499). Checksums-Sha1: 82df9013d5637ab617551d814bec29e86739ba58 2019 python-gevent_1.0.1-1.dsc 2cc1b6e1fa29b30ea881fa6a195e57faaf089ae8 1455636 python-gevent_1.0.1.orig.tar.gz dbbba27c4f7b115859216248b96991f83fa69219 72244 python-gevent_1.0.1-1.debian.tar.xz 61c4e6a0c4342ce850ebee54810db844a2e51947 1359328 python-gevent-dbg_1.0.1-1_amd64.deb a593535bbb1c77fe99229fbdf78d640bc11f0f29 140102 python-gevent-doc_1.0.1-1_all.deb efb76a7a6144fdfda535bae5dea99cf79d150cfb 231740 python-gevent_1.0.1-1_amd64.deb Checksums-Sha256: b0ea156fdde6ff92801281d8fe30fb7eee42a01a65632dd53840c5fc8a660f11 2019 python-gevent_1.0.1-1.dsc 4627e215d058f71d95e6b26d9e7be4c263788a4756bd2858a93775f6c072df43 1455636 python-gevent_1.0.1.orig.tar.gz 546eba9fa29187022a433f787250d3e71405b5391c0754cd0abbb646b33958f5 72244 python-gevent_1.0.1-1.debian.tar.xz e9f84d99842f42b138453c89fe16e380176cf8e54544a53ed81caca5a42f86d8 1359328 python-gevent-dbg_1.0.1-1_amd64.deb 24c0f9e2da9d3fd22a2ca2b6fbcba44adb7efbaf77f8d8c291e095116fd4eea6 140102 python-gevent-doc_1.0.1-1_all.deb 715cb51bd82fdeb2aa5cdcce62c789fcc44e41030245d9af444b2828a887f183 231740 python-gevent_1.0.1-1_amd64.deb Files: 1fc94d23076457dd5005b21c2852b23b 2019 python extra python-gevent_1.0.1-1.dsc 7b952591d1a0174d6eb6ac47bd975ab6 1455636 python extra python-gevent_1.0.1.orig.tar.gz 555ea830cd2a288ea832a2e9aed1d7a7 72244 python extra python-gevent_1.0.1-1.debian.tar.xz 788f98c23336019a87328817bdacbd71 1359328 debug extra python-gevent-dbg_1.0.1-1_amd64.deb a1a5429f74ba1348137233028343c55a 140102 doc optional python-gevent-doc_1.0.1-1_all.deb 6704fa9917553ca573dddb1f164b35ad 231740 python extra python-gevent_1.0.1-1_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJUNtkwAAoJENzjEOeGTMi/LdoQALoN9D8rJWNqQu38tEHbJOp+ 4RtcWLejYPbFgTg92h/AJBYCt5bH+cJVHx2N3GQnsYPPa1Qbcl6TYkwZ3JBOWeiB G8XskSu5TD7o/uWYqy7Kj2WfxHd/okClnFhoEitTl03gap37xd+atdUdEPQYMbcl +uVI1jnAAS2JYDzM2IQABUfRJahXhSWJ3IQ1jPAHzuAD2xE22UwKo5OQwh4ikCVM zgd0621DPEWLQ3hZKwYnfBE+F8LzxcjBciQ5j+pJ55wJu4zJi1GBUnPAnYqak4HO CZqH+GzW3nFnenydnv+4U27a9V1siW5M/1THvXe2ppClnxnO0keOG1SjBQ8/4XPW GRuDDYQ9tQBX5ZtH7j4wCFo6L2S2ENDd8x0qe85fgQhyqj7QY+53/DIR2kB5wcag /dtjsFW36lX28B05LDNXQOaCw2l+AEGC4IuCTAoOM0zWTqugwB70RkzPiHyEAJRf nOelQQc84WrWJ8zFhAiDpGt7zfyM6KcFIWsWANHFZ2/epAcLkGchpPfw6a9zv5DR uBIioCzJ53A1BX8yR4vJ/kVwxoL3qx+pT5G5TDbGQym8VZXnjVV4IQfOIyVARudu Z203AyCkkc1uKndYaffA0e9Rl996GaDCeOAdla1qETCCMm5ZP9X577q4AaiNegdj wdo5NP4SM5OiH0Ua9mAO =jekV -----END PGP SIGNATURE-----
--- End Message ---

