[issue5146] threading via uid method doesn't work in imaplib
New submission from abhishek : Hi, IMAP commands in general can be either called directly or via the UID command which basically returns the UIDs instead of message IDs. Consider this example: 02:23.02 > GDJB3 UID THREAD references UTF-8 (SEEN) 02:23.02 < * THREAD (3)(2)(4)(1) 02:23.02 matched r'\* (?P[A-Z-]+)( (?P.*))?' => ('THREAD', ' (3)(2)(4)(1)', '(3)(2)(4)(1)') 02:23.03 untagged_responses[THREAD] 0 += ["(3)(2)(4)(1)"] 02:23.03 < GDJB3 OK Thread completed. 02:23.03 matched r'(?PGDJB\d+) (?P[A-Z]+) (?P.*)' => ('GDJB3', 'OK', 'Thread completed.') [None] ... 02:59.22 > CNCF3 THREAD references UTF-8 (SEEN) 02:59.23 < * THREAD (3)(2)(4)(1) 02:59.23 matched r'\* (?P[A-Z-]+)( (?P.*))?' => ('THREAD', ' (3)(2)(4)(1)', '(3)(2)(4)(1)') 02:59.23 untagged_responses[THREAD] 0 += ["(3)(2)(4)(1)"] 02:59.23 < CNCF3 OK Thread completed. 02:59.23 matched r'(?PCNCF\d+) (?P[A-Z]+) (?P.*)' => ('CNCF3', 'OK', 'Thread completed.') 02:59.23 untagged_responses[THREAD] => ['(3)(2)(4)(1)'] ['(3)(2)(4)(1)'] The reason I figured out why UID failed whereas the direct method call worked lies in this particular line of the method 'uid' in imaplib.py: if command in ('SEARCH', 'SORT'): name = command else: name = 'FETCH' which should be : if command in ('SEARCH', 'SORT', 'THREAD'): name = command else: name = 'FETCH' I was able to confirm this in both 2.4 and 2.5. Hope this would be looked upon and fixed. Regards, Abhishek -- components: Library (Lib) messages: 81094 nosy: abhishek, piers, pierslauder severity: normal status: open title: threading via uid method doesn't work in imaplib type: behavior versions: Python 2.4, Python 2.5 ___ Python tracker <http://bugs.python.org/issue5146> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39821] grp library functions grp.getgrnam() & grp.getgrgid() returning incorrect gr_mem information
New submission from Abhishek : If root user is part of a linux group, then in the response of getgrnam() & grp.getgrid(), in te gr_mem part, root user is not listed. [root@biplab2 ~]# getent group | grep starwars starwars:x:1011:root,abhi [root@biplab2 ~]# python3 Python 3.6.8 (default, Dec 5 2019, 16:11:43) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux >>> import grp >>> grp.getgrnam('starwars') grp.struct_group(gr_name='starwars', gr_passwd='x', gr_gid=1011, gr_mem=['abhi']) >>> grp.getgrgid(1011) grp.struct_group(gr_name='starwars', gr_passwd='x', gr_gid=1011, gr_mem=['abhi']) But, when grp.getgrall() is run, we the correct response (gr_mem includes root user as well) >>> grp.getgrall() grp.struct_group(gr_name='starwars', gr_passwd='x', gr_gid=1011, gr_mem=['root', 'abhi'])] -- messages: 363113 nosy: abhi.sharma priority: normal severity: normal status: open title: grp library functions grp.getgrnam() & grp.getgrgid() returning incorrect gr_mem information type: behavior versions: Python 3.6 ___ Python tracker <https://bugs.python.org/issue39821> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39821] grp library functions grp.getgrnam() & grp.getgrgid() returning incorrect gr_mem information
Abhishek added the comment: I also observed now that it works on other distro. On red hat enterprise linux (rhel) 7.7, I a, getting the correct output. The bug which I have raised was tested on rhel 8.2. [root@biplab2 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.2 Beta (Ootpa) [root@biplab2 ~]# cat /proc/version Linux version 4.18.0-167.el8.ppc64le (mockbu...@ppc-061.build.eng.bos.redhat.com) (gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)) #1 SMP Sun Dec 15 01:20:45 UTC 2019 -- ___ Python tracker <https://bugs.python.org/issue39821> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8536] Support new features of ZLIB 1.2.4
abhishek added the comment: I think New features like "inflateReset2()", "inflateMark()", or "Z_TREES" flags are included in python 3.2.2. -- nosy: +abhishek_bits ___ Python tracker <http://bugs.python.org/issue8536> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8536] Support new features of ZLIB 1.2.4
abhishek added the comment: Check This out http://hg.python.org/cpython/file/b99c54acb22d/Modules/zlib/inflate.c http://hg.python.org/cpython/file/b99c54acb22d/Modules/zlib/zconf.h http://hg.python.org/cpython/file/b99c54acb22d/Modules/zlib/zconf.in.h All three files contain these functions -- ___ Python tracker <http://bugs.python.org/issue8536> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year
Change by abhishek : -- keywords: +patch pull_requests: +9556 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue19376> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44274] Installation problem for python-3.6.4rc1-macosx10.6.pkg-('python cannot be opened because of a problem') in my MacOS11.4
New submission from Abhishek Ramesh : Process: Python [98546] Path: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python Identifier:Python Version: 3.6.4rc1 (3.6.4rc1) Code Type: X86-64 (Native) Parent Process:zsh [98306] Responsible: Terminal [98304] User ID: 501 Date/Time: 2021-05-31 20:29:06.728 +0530 OS Version:macOS 11.4 (20F71) Report Version:12 Anonymous UUID:8C556153-D4E6-C8AE-84FD-AF178FDC2C1E Sleep/Wake UUID: FD76DA89-FD05-4CE3-8F34-101C34A63578 Time Awake Since Boot: 10 seconds Time Since Wake: 64 seconds System Integrity Protection: enabled Crashed Thread:0 Exception Type:EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Exception Note:EXC_CORPSE_NOTIFY Termination Reason:DYLD, [0x1] Library missing Application Specific Information: dyld: launch, loading dependent libraries Dyld Error Message: dyld: No shared cache present Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python Reason: image not found Binary Images: 0x1 -0x10fff +org.python.python (3.6.4rc1 - 3.6.4rc1) /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python 0x7fff6a3cc000 - 0x7fff6a467fff dyld (852) <1AC76561-4F9A-34B1-BA7C-4516CACEAED7> /usr/lib/dyld Model: MacBookPro14,1, BootROM 429.120.4.0.0, 2 processors, Dual-Core Intel Core i5, 2.3 GHz, 8 GB, SMC 2.43f11 Graphics: kHW_IntelIrisGraphics640Item, Intel Iris Plus Graphics 640, spdisplays_builtin Memory Module: BANK 0/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3332443250462D3039 Memory Module: BANK 1/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3332443250462D3039 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x170), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1680.8) Bluetooth: Version 8.0.5d7, 3 services, 18 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB 3.0 Bus Thunderbolt Bus: MacBook Pro, Apple Inc., 41.4 -- files: Screenshot 2021-05-31 at 8.30.21 PM.png messages: 394809 nosy: abhishek5799 priority: normal severity: normal status: open title: Installation problem for python-3.6.4rc1-macosx10.6.pkg-('python cannot be opened because of a problem') in my MacOS11.4 versions: Python 3.6 Added file: https://bugs.python.org/file50076/Screenshot 2021-05-31 at 8.30.21 PM.png ___ Python tracker <https://bugs.python.org/issue44274> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44274] Installation problem for python-3.6.4rc1-macosx10.6.pkg-('python cannot be opened because of a problem') in my MacOS11.4
Abhishek Ramesh added the comment: Thank you for the information. On Tue, Jun 1, 2021, 6:48 AM Ned Deily wrote: > > Ned Deily added the comment: > > It appears you are trying to use a very old version of Python 3.6.4 from a > python.org installer, and a release candidate at that. This particular > installer version will not run on current macOS systems. Note that Python > 3.6 has been in the security-fix-only phase of its life cycle for some > years now and will reach end-of-life at the end of this year. The current > supported version of Python 3 is now 3.9.5. If at all possible, you should > upgrade to it as soon as possible. > > If you feel you must use Python 3.6, the last macOS binary installers for > it were produced for 3.6.8 in 2018; there are two installers for that > release but only the "10.9 and later" installer variant will even launch at > all on macOS 11 Big Sur. But keep in mind that there are known issues with > trying to run Python 3.6 on macOS 11 (i.e. it is not officially supported) > and there have been many bug and security fixes to Python 3 since that > installer was built. You should think twice about trying to use it. > > https://www.python.org/downloads/ > https://www.python.org/dev/peps/pep-0494/ > > -- > nosy: +ned.deily > resolution: -> out of date > stage: -> resolved > status: open -> closed > > ___ > Python tracker > <https://bugs.python.org/issue44274> > ___ > -- ___ Python tracker <https://bugs.python.org/issue44274> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34348] Python 3.7 - Issues Installing Scikit Learn
New submission from Abhishek Reddy : Hi I am currently encountering below issues when trying to install any version of Scikit Learn (0.19.0 or 0.19.1 or 0.19.2) Python Version - 3.7 /usr/local/bsb-python37 - Custom Location in which I configured and installed Python 3.7 I have installed all the prerequisite - OS packages - bias-devel , lapack-devel , atlas-devel. Earlier when I installed Python 2.7 I didn't run into any issues. Now when I re-try to install the scikit learn under Python 2.7 I am running into the same issue and the earlier successful installed version of scikit learn is corrupted. Error # /usr/local/bsb-python37/bin/python3.7 setup.py install --prefix=/usr/local/bsb-python37 Partial import of sklearn during the build process. blas_opt_info: blas_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/usr/local/bsb-python37/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/'] NOT AVAILABLE blis_info: customize UnixCCompiler libraries blis not found in ['/usr/local/bsb-python37/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/'] NOT AVAILABLE error: Command "g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/bsb-python37/lib/python3.7/site-packages/numpy-1.14.5-py3.7-linux-x86_64.egg/numpy/core/include -I/usr/local/bsb-python37/lib/python3.7/site-packages/numpy-1.14.5-py3.7-linux-x86_64.egg/numpy/core/include -I/usr/local/bsb-python37/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d" failed with exit status 1 Any help is greatly appreciated. I tried to google around and did all that I could try. No luck. Thanks, Abhishek -- components: Installation messages: 323215 nosy: abhishekreddyc priority: normal severity: normal status: open title: Python 3.7 - Issues Installing Scikit Learn type: compile error versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue34348> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34348] Python 3.7 - Issues Installing Scikit Learn
Abhishek Reddy added the comment: Hi Mark, Thank you for your update. How do I reach to the upstream scikit-learn folks ? Thanks, Abhishek On 8/7/18, 2:56 AM, "Mark Dickinson" wrote: Mark Dickinson added the comment: Have you reported this upstream to the scikit-learn folks? scikit-learn is not part of core Python, so there's probably not a lot we can do here. -- nosy: +mark.dickinson ___ Python tracker <https://bugs.python.org/issue34348> ___ -- ___ Python tracker <https://bugs.python.org/issue34348> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34351] Python 3.7 - Issues Installing Scikit Learn
New submission from Abhishek Reddy : Hi I am currently encountering below issues when trying to install any version of Scikit Learn (0.19.0 or 0.19.1 or 0.19.2) on Linux - RHEL / Centos 7 OS. Few months back I could successfully install scikit-learn under python 2.7 without issues. When I re-run the installation of scikit-learn package under python 2.7 its failing with the same below error. I have installed all the required dependencies of OS and Python packages for scikit-learn Python Version - 3.7 /usr/local/bsb-python37 - Custom Location in which I configured and installed Python 3.7 I have installed all the prerequisite - OS packages - bias-devel , lapack-devel , atlas-devel. Earlier when I installed Python 2.7 I didn't run into any issues. Now when I re-try to install the scikit learn under Python 2.7 I am running into the same issue and the earlier successful installed version of scikit learn is corrupted. Error # /usr/local/bsb-python37/bin/python3.7 setup.py install --prefix=/usr/local/bsb-python37 Partial import of sklearn during the build process. blas_opt_info: blas_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/usr/local/bsb-python37/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/'] NOT AVAILABLE blis_info: customize UnixCCompiler libraries blis not found in ['/usr/local/bsb-python37/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/'] NOT AVAILABLE error: Command "g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/bsb-python37/lib/python3.7/site-packages/numpy-1.14.5-py3.7-linux-x86_64.egg/numpy/core/include -I/usr/local/bsb-python37/lib/python3.7/site-packages/numpy-1.14.5-py3.7-linux-x86_64.egg/numpy/core/include -I/usr/local/bsb-python37/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d" failed with exit status 1 Any help is greatly appreciated. I tried to google around and did all that I could try. No luck. Thanks, Abhishek -- components: Library (Lib) messages: 323243 nosy: abhishekreddyc priority: normal severity: normal status: open title: Python 3.7 - Issues Installing Scikit Learn type: compile error versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue34351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15021] xmlrpc server hangs
New submission from Abhishek Singh : Hi Terry, I am running into a xmlrpc server issue where it just hangs. 9.914048127.0.0.1 -> 127.0.0.1TCP 52327 > 8012 [SYN] Seq=0 Win=32792 Len=0 MSS=16396 TSV=3131436173 TSER=0 WS=6 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..E. 0010 00 3c 27 64 40 00 40 06 15 56 7f 00 00 01 7f 00 .<'d@.@..V.. 0020 00 01 cc 67 1f 4c ee eb cb e9 00 00 00 00 a0 02 ...g.L.. 0030 80 18 41 d1 00 00 02 04 40 0c 04 02 08 0a ba a5 ..A.@... 0040 ec 8d 00 00 00 00 01 03 03 06 .. 9.914060127.0.0.1 -> 127.0.0.1TCP 8012 > 52327 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=16396 TSV=3131436173 TSER=3131436173 WS=6 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..E. 0010 00 3c 00 00 40 00 40 06 3c ba 7f 00 00 01 7f 00 .<..@.@.<... 0020 00 01 1f 4c cc 67 0e c1 e9 95 ee eb cb ea a0 12 ...L.g.. 0030 80 00 a2 4d 00 00 02 04 40 0c 04 02 08 0a ba a5 ...M@... 0040 ec 8d ba a5 ec 8d 01 03 03 06 .. 9.914070127.0.0.1 -> 127.0.0.1TCP 52327 > 8012 [ACK] Seq=1 Ack=1 Win=32832 Len=0 TSV=3131436173 TSER=3131436173 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..E. 0010 00 34 27 65 40 00 40 06 15 5d 7f 00 00 01 7f 00 .4'e@.@..].. 0020 00 01 cc 67 1f 4c ee eb cb ea 0e c1 e9 96 80 10 ...g.L.. 0030 02 01 89 70 00 00 01 01 08 0a ba a5 ec 8d ba a5 ...p 0040 ec 8d .. 9.914123127.0.0.1 -> 127.0.0.1TCP 52327 > 8012 [PSH, ACK] Seq=1 Ack=1 Win=32832 Len=141 TSV=3131436173 TSER=3131436173 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..E. 0010 00 c1 27 66 40 00 40 06 14 cf 7f 00 00 01 7f 00 ..'f@.@. 0020 00 01 cc 67 1f 4c ee eb cb ea 0e c1 e9 96 80 18 ...g.L.. 0030 02 01 fe b5 00 00 01 01 08 0a ba a5 ec 8d ba a5 0040 ec 8d 50 4f 53 54 20 2f 20 48 54 54 50 2f 31 2e ..POST / HTTP/1. 0050 30 0d 0a 48 6f 73 74 3a 20 6c 6f 63 61 6c 68 6f 0..Host: localho 0060 73 74 3a 38 30 31 32 0d 0a 55 73 65 72 2d 41 67 st:8012..User-Ag 0070 65 6e 74 3a 20 78 6d 6c 72 70 63 6c 69 62 2e 70 ent: xmlrpclib.p 0080 79 2f 31 2e 30 2e 31 20 28 62 79 20 77 77 77 2e y/1.0.1 (by www. 0090 70 79 74 68 6f 6e 77 61 72 65 2e 63 6f 6d 29 0d pythonware.com). 00a0 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 .Content-Type: t 00b0 65 78 74 2f 78 6d 6c 0d 0a 43 6f 6e 74 65 6e 74 ext/xml..Content 00c0 2d 4c 65 6e 67 74 68 3a 20 39 38 0d 0a 0d 0a -Length: 98 9.914130127.0.0.1 -> 127.0.0.1TCP 8012 > 52327 [ACK] Seq=1 Ack=142 Win=33856 Len=0 TSV=3131436173 TSER=3131436173 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..E. 0010 00 34 05 1b 40 00 40 06 37 a7 7f 00 00 01 7f 00 .4..@.@.7... 0020 00 01 1f 4c cc 67 0e c1 e9 96 ee eb cc 77 80 10 ...L.g...w.. 0030 02 11 88 d3 00 00 01 01 08 0a ba a5 ec 8d ba a5 0040 ec 8d .. 9.914171127.0.0.1 -> 127.0.0.1TCP 52327 > 8012 [PSH, ACK] Seq=142 Ack=1 Win=32832 Len=98 TSV=3131436173 TSER=3131436173 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..E. 0010 00 96 27 67 40 00 40 06 14 f9 7f 00 00 01 7f 00 ..'g@.@. 0020 00 01 cc 67 1f 4c ee eb cc 77 0e c1 e9 96 80 18 ...g.L...w.. 0030 02 01 fe 8a 00 00 01 01 08 0a ba a5 ec 8d ba a5 0040 ec 8d 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d info 9.914177127.0.0.1 -> 127.0.0.1TCP 8012 > 52327 [ACK] Seq=1 Ack=240 Win=33856 Len=0 TSV=3131436173 TSER=3131436173 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..E. 0010 00 34 05 1c 40 00 40 06 37 a6 7f 00 00 01 7f 00 .4..@.@.7... 0020 00 01 1f 4c cc 67 0e c1 e9 96 ee eb cc d9 80 10 ...L.g.. 0030 02 11 88 71 00 00 01 01 08 0a ba a5 ec 8d ba a5 ...q 0040 ec 8d .. When I look at the server, it is stuck here: (gdb) bt #0 0x00310424 in __kernel_vsyscall () #1 0x003df758 in recv () from /lib/libpthread.so.0 #2 0x00dbbca5 in sock_recv_guts (s=0xb7489890, cbuf=, len=8192, flags=0) at /home/shankar/python/Python-2.7.3/Modules/socketmodule.c:2361 #3 0x00dbbee6 in sock_recv (s=0xb7489890, args=0xb746780c) at /home/shankar/python/Python-2.7.3/Modules/socketmodule.c:2442 #4 0x080e1071 in call_function (f=0x8db3a3c, throwflag=0) at Python/ceval.c:4021 #5 PyEval_EvalFrameEx (f=0x8db3a3c, throwflag=0) at Python/ceval.c:2666 #6 0x080e2c1b in PyEval_EvalCodeEx (co=0xb77211d0, globals=0xb7706604, locals=0x0, args=0x8db3a14, argcount=2, kws=0x8db3a1c, kwcount=0, defs=0xb74a79b8, defcount=1, closure=0x0) at Python/ceval.c:3253 #7 0x080e12e9 in fast_function (f=0x8db38
[issue15021] xmlrpc server hangs
Abhishek Singh added the comment: I have a pretty complicated setup. 100's of threads, xmlrpc being in the main thread and providing show routines for my program. I have 10's of such processes doing some heavy duty simulation/crunching. The threads and program is in C. I use swig routines to throw in my show framework. There is no traceback - it is just stuck and unresponsive. If I quit my client, the socket gets closed and it recovers. But it is annoying to do so, and it can get stuck again :(. I will try your timeout suggestion, but having a infinite timeout might help given my system is loaded with lots of competing (for CPU) threads. I am running the Simple xmlrpc server. -- ___ Python tracker <http://bugs.python.org/issue15021> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15021] xmlrpc server hangs
Abhishek Singh added the comment: I found my problem. I was also using pipes to implement my show output (between python and C). The pipe was getting full, and xmlrpc server was locking up because of that. The gdb traceback was confusing though (will re-open if I see this again, and if it is indeed a different issue). -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue15021> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17642] IDLE add font resizing hot keys
Abhishek Kumar added the comment: I have submitted a patch that is working fine on Windows and on Ubuntu. I have used ZoomFont.py of IdleX. On pressing Ctrl+ or Ctrl- it changes the user configuration and updates the font of all open windows as there is a common user configuration for all windows. I have removed polling from CodeContext instead I set font of CodeContext on every font change. As this is my first patch. Please review it and give your valuable feedback. -- keywords: +patch nosy: +Abhishek.Kumar Added file: http://bugs.python.org/file30051/issue17642_patch2.diff ___ Python tracker <http://bugs.python.org/issue17642> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17642] IDLE add font resizing hot keys
Abhishek Kumar added the comment: Thanks Roger, for the feedback especially the licence part. I have least idea about licences but will take care in future. One question: Is it right to change IdleConf on Ctrl+ and Ctrl- ? I mean to change font for all open windows? It happens with most text editors but not with browsers. To remove those 2 hacks for CodeContext and LineNumbers, what we can do is write a ResetFont() for each extenstion and can call it from the ResetFont() of editor window like this: for extension in self.extensions: extension.ResetFont() so that we don't have to write seperate font-size hacks for each extension while resetting the font. -- ___ Python tracker <http://bugs.python.org/issue17642> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24202] Multiprocessing Pool not working for userdefined function
New submission from Abhishek Manandhar: I was looking to implement multiprocess pool. It worked fine with the numpy function while with the user defined function it ran into error. import numpy >>> import multiprocessing >>> P = multiprocessing.Pool(5) >>> P.map(numpy.sqrt,range(50)) [0.0, 1.0, 1.4142135623730951, 1.7320508075688772, 2.0, 2.2360679774997898, 2.4494897427831779, 2.6457513110645907, 2.8284271247461903, 3.0, 3.1622776601683795, 3.3166247903553998, 3.4641016151377544, 3.6055512754639891, 3.7416573867739413, 3.872983346207417, 4.0, 4.1231056256176606, 4.2426406871192848, 4.358898943540674, 4.4721359549995796, 4.5825756949558398, 4.6904157598234297, 4.7958315233127191, 4.8989794855663558, 5.0, 5.0990195135927845, 5.196152422706632, 5.2915026221291814, 5.3851648071345037, 5.4772255750516612, 5.5677643628300215, 5.6568542494923806, 5.7445626465380286, 5.8309518948453007, 5.9160797830996161, 6.0, 6.0827625302982193, 6.164414002968976, 6.2449979983983983, 6.324555320336759, 6.4031242374328485, 6.4807406984078604, 6.5574385243020004, 6.6332495807107996, 6.7082039324993694, 6.7823299831252681, 6.8556546004010439, 6.9282032302755088, 7.0] >>> def f(x): return x*x >>> P.map(f, range(50)) Exception in thread Thread-2: Traceback (most recent call last): File "C:\Python27\lib\threading.py", line 530, in __bootstrap_inner self.run() File "C:\Python27\lib\threading.py", line 483, in run self.__target(*self.__args, **self.__kwargs) File "C:\Python27\lib\multiprocessing\pool.py", line 285, in _handle_tasks put(task) TypeError: expected string or Unicode object, NoneType found -- components: Windows messages: 243266 nosy: abheeman, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Multiprocessing Pool not working for userdefined function type: crash versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue24202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24202] Multiprocessing Pool not working for userdefined function
Abhishek Manandhar added the comment: Yes actually it produce no erroe on standalone script. But the script executes without any outputs. not even for numpy function. I used code below in script. import multiprocessing import numpy def f(x): return x*x if __name__ = "__main__": p= multiprocessing.Pool(5) print p.map(numpy.sqrt,[1,2,3,4]) print p.map(f,[1,2,3,4]) On May 15, 2015 2:52 PM, "Paul Moore" wrote: > > Paul Moore added the comment: > > Multiprocessing works by firing up additional processes. Those processes > won't have access to functions defined in the interactive interpreter. > > Can you reproduce this problem in a standalone script? I suspect not, but > if you can please post the script here. > > Marking as "not a bug", but I haven't closed it yet in case a script > reproducing the issue can be provided. > > -- > nosy: +paul.moore > resolution: -> not a bug > > ___ > Python tracker > <http://bugs.python.org/issue24202> > ___ > -- ___ Python tracker <http://bugs.python.org/issue24202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com