[issue26743] Unable to import random with python2.7 on power pc based machine
New submission from Raghu: Hi, I am trying to import random on a power pc based machine and I see this exception. Could you please help me? root@host# python Python 2.7.3 (default, Apr 3 2016, 22:31:30) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import random Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/random.py", line 58, in NV_MAGICCONST = 4 * _exp(-0.5)/_sqrt(2.0) ValueError: math domain error >>> -- components: Library (Lib) messages: 263292 nosy: ragreddy priority: normal severity: normal status: open title: Unable to import random with python2.7 on power pc based machine type: crash versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: Hi, I apologize. I didn't expect a quick reply. Here are the outputs you requested. root@host:~# python Python 2.7.3 (default, Apr 3 2016, 22:31:30) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import math >>> print math.sqrt(2.0) Traceback (most recent call last): File "", line 1, in ValueError: math domain error >>> print math >>> import struct >>> struct.pack('>> -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: stinner victor, my host doesn't have a gcc compiler. is there a way you can give me the binary? -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: my host details: Linux fpc0 3.10.62-ltsi-WR6.0.0.18_standard #1 SMP PREEMPT Sun Apr 3 23:17:02 PDT 2016 ppc64 ppc64 ppc64 GNU/Linux -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: It's windriver linux. Processor is PPC64-E5500 -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: Serhiy, root@host:~# python Python 2.7.3 (default, Apr 3 2016, 22:31:30) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import struct >>> struct.pack('d', 2.0) '@\x00\x00\x00\x00\x00\x00\x00' >>> struct.pack('d', float(2)) '@\x00\x00\x00\x00\x00\x00\x00' >>> -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: There is no output for `python -m sysconfig` -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: Hi, This is my work system and I don't know if I am allowed to send out the complete output of "print sysconfig.get_config_vars()". could you please let me know which fields you are looking for? -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: The keys ENDIAN and IEEE are not available. -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: Here is one output: root@fpc0:~# grep IEEE /usr/include/python2.7/pyconfig-32.h /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM /* #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 */ /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the most /* #undef DOUBLE_IS_BIG_ENDIAN_IEEE754 */ /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the /* #undef DOUBLE_IS_LITTLE_ENDIAN_IEEE754 */ /* #undef HAVE_IEEEFP_H */ /* #undef HAVE_LIBIEEE */ /* Define to activate features from IEEE Stds 1003.1-2001 */ root@fpc0:~# -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: Couple more outputs: /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # define WORDS_BIGENDIAN 1 # endif #endif Math works in some cases. >>> import math >>> math.sqrt(2) Traceback (most recent call last): File "", line 1, in ValueError: math domain error >>> math.floor(2.5) 2.0 >>> Also, could you please let me know the train of thought and ask for all the outputs as much as possible in one go? because I feel like I am delaying your debugging. -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: @stinner, my host doesn't have internet connection and it doesn't have gcc installed. I don't know how to install gcc in windriverlinux. In famous linux distributions like ubuntu and centos, i install gcc using 'yum install gcc' or 'apt-get install gcc' commands. -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: Hey Guys/Gals, are you still debugging the issue? Do you need more info? -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: Yes, it is a WindRiver linux. I will check if Commercial WindRiver team can help me. Host details: Linux fpc0 3.10.62-ltsi-WR6.0.0.18_standard #1 SMP PREEMPT Sun Apr 3 23:17:02 PDT 2016 ppc64 ppc64 ppc64 GNU/Linux Also is there a protocol followed in this website? If I have done something wrong it's because I didn't know I was doing it incorrectly. I ask because, a new person replies everyday and they don't even completely tell me the solution or what conclusions they have made. I am lost. -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26743] Unable to import random with python2.7 on power pc based machine
Raghu added the comment: Thank you skrah. I raised a support request from WR. I will keep my fingers crossed. -- ___ Python tracker <http://bugs.python.org/issue26743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11964] Undocumented change to indent param of json.dump in 3.2
Prashanth Raghu added the comment: The .rst file that was downloaded as of 30-04-2011 (dd-mm-) had the updated doc . -- nosy: +Prashanth.Raghu ___ Python tracker <http://bugs.python.org/issue11964> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25332] [Errno 10035] A non-blocking socket operation could not be completed immediately on python 3.1.2
New submission from raghu prasad: On one machine we are facing this issue [Errno 10035] A non-blocking socket operation could not be completed immediately We are using urllib.request.urlopen with some timeout value sample code getRequest = urllib.request.Request(getUrl) getRequest.add_header("SessionID", sessID) if (compName != None): getRequest.add_header("ServerContent",compName) getRequest.add_header("Content- getReqResp = urllib.request.urlopen(getRequest, xmlContent , TIME_OUT) every time we do urlopen for get and post operations we are receiving this 10035 error i have searched a lot over the web for any work arounds i found one place where the issue got fixed in python 2.7 https://hg.python.org/cpython/rev/8ec39bfd1f01 i have checked the changes , but the same chages are not visible in the python 3.1.2 so is it a bug or is there any workaround we are having an issue based in this in our project so any input / resolution will be greatly helpful -- components: Windows messages: 252463 nosy: paul.moore, raghu prasad, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: [Errno 10035] A non-blocking socket operation could not be completed immediately on python 3.1.2 type: behavior versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue25332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25332] [Errno 10035] A non-blocking socket operation could not be completed immediately on python 3.1.2
raghu prasad added the comment: HI Martin, Thanks for the immediate reply i m sure about the version 3.2 we are using 3.1.2 in our project so thought if it was missed in this version Oh if 3.1.2 is closed then its bad luck can you provide some inputs on how to proceed further on this i heard 2.7 and 3.1.2 are completely different codes Any help on this could be useful for us -- ___ Python tracker <http://bugs.python.org/issue25332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com