Re: PYTHON 3.4 LEFTOVERS
Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: Le 16.11.2013 17:30, Ferrous Cranus a écrit : Mark wrote: If you have to deliberately post like this in an attempt to annoy people, would you please not do so using double spaced google crap as it's very annoying, thank you in anticipation. Sure thing Mark, here: root@secure [~]# find / -name python3.4 | rm -rf root@secure [~]# locate python3.4 /root/.local/lib/python3.4 /usr/local/include/python3.4m /usr/local/lib/libpython3.4m.a /usr/local/lib/python3.4 /usr/local/share/man/man1/python3.4.1 still there!!! You are utterly stupid: 1st: rm does not read its standard input so doing whatever | rm -fr is useless 2st: even if it had worked (i.e. removed the files) they would still appear with locate, as locate is just reading a database build every day by updatedb (using find btw) What you want to do can be done this way : find / -name python3.4 -exec rm -rf {} \; updatedb locate python3.4 but you'd better go to hell first. Even if you told me to go to hell i will overcome that and i need to thank you because this indeed worked. Why is this find / -name python3.4 -exec rm -rf {} \; different from: find / -name python3.4 | rm -rf Doesn't any command take its input via STDIN or from a text file or from another's command output? If the above was true then wouldn't linux displayed an error when i issued: find / -name python3.4 | rm -rf locate python3.4 | rm -rf The fact that it hasn't and it has indeed deleted many files proved that rm as an other linux command can take input from another's command output. -- https://mail.python.org/mailman/listinfo/python-list
Re: PYTHON 3.4 LEFTOVERS
Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: Le 16.11.2013 17:30, Ferrous Cranus a écrit : Mark wrote: If you have to deliberately post like this in an attempt to annoy people, would you please not do so using double spaced google crap as it's very annoying, thank you in anticipation. Sure thing Mark, here: root@secure [~]# find / -name python3.4 | rm -rf root@secure [~]# locate python3.4 /root/.local/lib/python3.4 /usr/local/include/python3.4m /usr/local/lib/libpython3.4m.a /usr/local/lib/python3.4 /usr/local/share/man/man1/python3.4.1 still there!!! You are utterly stupid: 1st: rm does not read its standard input so doing whatever | rm -fr is useless 2st: even if it had worked (i.e. removed the files) they would still appear with locate, as locate is just reading a database build every day by updatedb (using find btw) What you want to do can be done this way : find / -name python3.4 -exec rm -rf {} \; updatedb locate python3.4 but you'd better go to hell first. I will kindly ask you please to show me a way to: pip install pymysql pip install pygeoip So i will not receive this error at http://superhost.gr Those modules are installed into m system but for some reason i suspect they work under 2.6.6 and not under 3.3.2 Please as soon as you help me solve this issues wich iam inexperienced to solve i will stop posting. I just need a little help form you, that all i ask. -- https://mail.python.org/mailman/listinfo/python-list
Re: Question regarding 2 modules installed via 'pip'
Στις 16/11/2013 6:48 μμ, ο/η YBM έγραψε: I doubt it, find ... | rm ... does absolutely nothing as you'd have figured out by yourself if you had a brain. Βut 'find / -name python34 | xargs rm -rf' does what i want. -- https://mail.python.org/mailman/listinfo/python-list
Re: PYTHON 3.4 LEFTOVERS
Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: Le 16.11.2013 17:30, Ferrous Cranus a écrit : Mark wrote: If you have to deliberately post like this in an attempt to annoy people, would you please not do so using double spaced google crap as it's very annoying, thank you in anticipation. Sure thing Mark, here: root@secure [~]# find / -name python3.4 | rm -rf root@secure [~]# locate python3.4 /root/.local/lib/python3.4 /usr/local/include/python3.4m /usr/local/lib/libpython3.4m.a /usr/local/lib/python3.4 /usr/local/share/man/man1/python3.4.1 still there!!! You are utterly stupid: 1st: rm does not read its standard input so doing whatever | rm -fr is useless 2st: even if it had worked (i.e. removed the files) they would still appear with locate, as locate is just reading a database build every day by updatedb (using find btw) What you want to do can be done this way : find / -name python3.4 -exec rm -rf {} \; 'find / -name python34 | xargs -rf' does what i need it do it works similar to find's built-in exec method using as argument whatever matches results to. find / -name python3.4 -exec rm -rf {} So both have same effect i assume. -- https://mail.python.org/mailman/listinfo/python-list
Re: PYTHON 3.4 LEFTOVERS
Στις 16/11/2013 11:02 μμ, ο/η Tim Chase έγραψε: On 2013-11-16 08:03, Ferrous Cranus wrote: root@secure [~]# find / -name python3.4 | rm -rf [snip] 1. DELETE ALL REMAINS OF PYTHON3.4 I'm surprised I haven't seen the suggestion to move the "/" to the end of the entire command...it would certainly DELETE ALL REMAINS OF PYTHON3.4 ;-) Note1: DO NOT DO THIS unless you want to also DELETE ALL REMAINS OF YOUR HARD DRIVE. But hey, Python3.4 would be gone in the process... Note2: you're running commands you don't understand AS ROOT?!?!?! You're just asking for trouble there. Note3: since "locate" uses a cached DB of files for rapid finding, and your process doesn't rebuild that locate-DB, they'll continue to show up even after you eventually figure out how to successfully remove the files. Use "find" for both purposes: deletion and verification. -tkc Yeah, 'rm -rf /' will certainly would have worked not questions asked :) -- https://mail.python.org/mailman/listinfo/python-list
Where to find pip3 for Python 3.3.2?
python3.4 is gone at this stage. Now if i only could install pip for Python 3.3.2 Here is what i have tried: root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# which pip /usr/bin/pip root@secure [~]# yum install pip3 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.secrel.com.br * epel: mirror.imt-systems.com * extras: centos.secrel.com.br * remi: mirror5.layerjet.com * updates: mirrors.ucr.ac.cr Setting up Install Process No package pip3 available. Error: Nothing to do Where to find 'pip3' for Python 3.3.2? -- https://mail.python.org/mailman/listinfo/python-list
Help installing pip3 for python3
python3.4 is gone at this stage. Now if i only could install pip for Python 3.3.2 Here is what i have tried: root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# which pip /usr/bin/pip root@secure [~]# yum install pip3 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.secrel.com.br * epel: mirror.imt-systems.com * extras: centos.secrel.com.br * remi: mirror5.layerjet.com * updates: mirrors.ucr.ac.cr Setting up Install Process No package pip3 available. Error: Nothing to do Where to find 'pip3' for Python 3.3.2? -- https://mail.python.org/mailman/listinfo/python-list
Installing Python 3.3.2 pip
python3.4 is gone at this stage. Now if i only could install pip for Python 3.3.2 Here is what i have tried: root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# which pip /usr/bin/pip root@secure [~]# yum install pip3 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.secrel.com.br * epel: mirror.imt-systems.com * extras: centos.secrel.com.br * remi: mirror5.layerjet.com * updates: mirrors.ucr.ac.cr Setting up Install Process No package pip3 available. Error: Nothing to do Where to find 'pip3' for Python 3.3.2? -- https://mail.python.org/mailman/listinfo/python-list
Where to find pip3 for python3
python3.4 is gone at this stage. Now if i only could install pip for Python 3.3.2 Here is what i have tried: root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# which pip /usr/bin/pip root@secure [~]# yum install pip3 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.secrel.com.br * epel: mirror.imt-systems.com * extras: centos.secrel.com.br * remi: mirror5.layerjet.com * updates: mirrors.ucr.ac.cr Setting up Install Process No package pip3 available. Error: Nothing to do Where to find 'pip3' for Python 3.3.2? -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
Re: Where to find pip3 for python3
Στις 17/11/2013 3:33 μμ, ο/η Ned Batchelder έγραψε: python3.4 is gone at this stage. Now if i only could install pip for Python 3.3.2 Here is what i have tried: root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# which pip /usr/bin/pip root@secure [~]# yum install pip3 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.secrel.com.br * epel: mirror.imt-systems.com * extras: centos.secrel.com.br * remi: mirror5.layerjet.com * updates: mirrors.ucr.ac.cr Setting up Install Process No package pip3 available. Error: Nothing to do Where to find 'pip3' for Python 3.3.2? python3.4 is gone at this stage. Now if i only could install pip for Python 3.3.2 Here is what i have tried: root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# which pip /usr/bin/pip root@secure [~]# yum install pip3 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.secrel.com.br * epel: mirror.imt-systems.com * extras: centos.secrel.com.br * remi: mirror5.layerjet.com * updates: mirrors.ucr.ac.cr Setting up Install Process No package pip3 available. Error: Nothing to do Where to find 'pip3' for Python 3.3.2? -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
pip3 for python3?
python3.4 is gone at this stage. Now if i only could install pip for Python 3.3.2 Here is what i have tried: root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# which pip /usr/bin/pip root@secure [~]# yum install pip3 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.secrel.com.br * epel: mirror.imt-systems.com * extras: centos.secrel.com.br * remi: mirror5.layerjet.com * updates: mirrors.ucr.ac.cr Setting up Install Process No package pip3 available. Error: Nothing to do Where to find 'pip3' for Python 3.3.2? -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
Damn weird Python Module errors
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == Not only the fucking thing is so trouble to install but now we have to the damn module ourselves. -- https://mail.python.org/mailman/listinfo/python-list
Python3 and its messed up modules which cannot even get installed properly
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == Not only the fucking thing is so trouble to install but now we have to the damn module ourselves. -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
Python3 and its messed up modules which cannot even get installed properly
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == Not only the fucking thing is so trouble to install but now we have to the damn module ourselves. -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
HOW WILL INSUCCESSFULYL INSTALLTHE DAMN THING
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == Not only the fucking thing is so trouble to install but now we have to the damn module ourselves. -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
pip install pygeoip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == Not only the fucking thing is so trouble to install but now we have to the damn module ourselves. -- https://mail.python.org/mailman/listinfo/python-list
pip install pygeoip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == Not only the fucking thing is so trouble to install but now we have to the damn module ourselves. -- https://mail.python.org/mailman/listinfo/python-list
pip install pygeoip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
pip install pygeoip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
pip install pygeoip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
pip pip pip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
pip pip pip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
pip pip pip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first on
Re: Self-defence
Στις 17/11/2013 7:09 μμ, ο/η Zero Piraeus έγραψε: : Note: I drafted a version of this post earlier today. I had been waiting to see whether Nikos succeeded in baiting the list into yet another round of unpleasantness before sending it, because I didn't want to worsen the situation, but at this point things are completely out of hand, and even what looks like a consensus attempt to ignore Nikos out of existence is a) failing: I count eighteen emails so far today. b) going to lead casual visitors to assume either that we ignore requests for help or that the list is Nikos' personal echo chamber. At this point I consider Nikos' actions a conscious attack on the list. There is simply no way, after the many times he's been told not to repost, that this is anything other than a direct and deliberate attempt to annoy as many people as he can. That being the case, I'd like to know whether there are technical measures that can be taken to prevent him from posting here. I understand that the mail/news gateway might complicate that, and that any measures taken could be bypassed by someone with sufficient skill. I suspect that in this particular case the latter issue is less relevant than it might otherwise be. I don't believe that killfiles are a sufficient response in this situation. I can, of course, stop Nikos' posts reaching me, and without too much hassle also stop replies to his posts reaching me. He would, however, continue to pollute the list in public, and his posts, whether replied to or not at the volume he's now sending them, would continue to damage the reputation of the list and, ultimately, I think possibly kill it. This is a last-ditch request, and not one I particularly expect to succeed, but I honestly can't stand to watch this happen to python-list for very much longer, and am very close to unsubscribing after six years as an admittedly not very active member. -[]z. Is this your doing? [18:03:55 secure root@4385109 /lib64]cPs# ls -al |grep libkey lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 -> libkeyutils.so.1.3.0* -rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3* -rwxr-xr-x 1 root root 32920 Jun 22 2012 libkeyutils.so.1.3.0* [18:03:57 secure root@4385109 /lib64]cPs# rpm -qf libkeyutils.so.1.3.0 file /lib64/libkeyutils.so.1.3.0 is not owned by any package It appears that my server has been compromised with a malicious payload designed to sniff for and steal server passwords. I'am sure this is your doing Zero Piraeus. -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
Re: Self-defence
Στις 17/11/2013 7:21 μμ, ο/η Tim Golden έγραψε: On 17/11/2013 17:09, Zero Piraeus wrote: Note: I drafted a version of this post earlier today. I had been waiting to see whether Nikos succeeded in baiting the list into yet another round of unpleasantness before sending it, because I didn't want to worsen the situation, but at this point things are completely out of hand, and even what looks like a consensus attempt to ignore Nikos out of existence is a) failing: I count eighteen emails so far today. b) going to lead casual visitors to assume either that we ignore requests for help or that the list is Nikos' personal echo chamber. At this point I consider Nikos' actions a conscious attack on the list. There is simply no way, after the many times he's been told not to repost, that this is anything other than a direct and deliberate attempt to annoy as many people as he can. That being the case, I'd like to know whether there are technical measures that can be taken to prevent him from posting here. Thanks for bringing this up, Zero. Nikos appears to be posting through Usenet, apparently via eternal-september. I have emailed their abuse address to ask if any action can be taken. I have also asked the postmaster at python.org what our option are the mail-news gateway. Obviously this isn't just about one poster: we need a means to (trying to think of a better word than "police") the mailing list while allowing for the usual give and take of off-topicness, temporary argumentation and general banter. I and others are trying to bring to a focus off-list discussions about who has the appropriate responsibility and right to act in these cases. FWIW today's outpouring has been more comical than tragic with few people taking the bait :) TJG How difficult will it be to just use another free NEWS server to post here or even under another mail address or another name or ALL of them simultaneously? -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
pip pip pip pip pip
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first o
Re: Self-defence
Στις 17/11/2013 7:17 μμ, ο/η Ned Batchelder έγραψε: On Sunday, November 17, 2013 12:09:44 PM UTC-5, Zero Piraeus wrote: Note: I drafted a version of this post earlier today. I had been waiting to see whether Nikos succeeded in baiting the list into yet another round of unpleasantness before sending it, because I didn't want to worsen the situation, but at this point things are completely out of hand, and even what looks like a consensus attempt to ignore Nikos out of existence is a) failing: I count eighteen emails so far today. b) going to lead casual visitors to assume either that we ignore requests for help or that the list is Nikos' personal echo chamber. At this point I consider Nikos' actions a conscious attack on the list. There is simply no way, after the many times he's been told not to repost, that this is anything other than a direct and deliberate attempt to annoy as many people as he can. That being the case, I'd like to know whether there are technical measures that can be taken to prevent him from posting here. I understand that the mail/news gateway might complicate that, and that any measures taken could be bypassed by someone with sufficient skill. I suspect that in this particular case the latter issue is less relevant than it might otherwise be. I don't believe that killfiles are a sufficient response in this situation. I can, of course, stop Nikos' posts reaching me, and without too much hassle also stop replies to his posts reaching me. He would, however, continue to pollute the list in public, and his posts, whether replied to or not at the volume he's now sending them, would continue to damage the reputation of the list and, ultimately, I think possibly kill it. This is a last-ditch request, and not one I particularly expect to succeed, but I honestly can't stand to watch this happen to python-list for very much longer, and am very close to unsubscribing after six years as an admittedly not very active member. -[]z. Nikos's behavior has been escalating, and is particularly bad today. But I'd like to point out that everyone else's has been better than ever: the latest threads have been ignored. We have not been descending into anger and vitriol. I can't say what will happen in the future, but I would expect an exasperated help vampire to behave precisely this way as the counter-measures (ignoring) because more effective. --Ned. You said you would help but you didn't. 4 days i struggle with this. All you do is preventing people from helping me. -- https://mail.python.org/mailman/listinfo/python-list
pip pip pippen
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first only imagined! -- What is now proved was at first only imagined! == root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128) == -- What is now proved was at first
Re: Self-defence
Στις 17/11/2013 7:33 μμ, ο/η Mark Lawrence έγραψε: I entirely agree with the sentiments expressed above. Would the Python Software Foundation (I assume?) please take whatever steps it can to prevent Nikos posting here? This is justified on the grounds of today's behaviour alone. Add in previous days when perhaps 95% of the bandwidth has been taken up by his posts and I know it's time to say enough is enough. TIA. Perhaps if you would people actually helped me out the percentage of my posts would have been much lower in value. But no, make sarcastic comments to someone who is trying is better by your opinion. -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
Re: Self-defence
Στις 17/11/2013 7:37 μμ, ο/η Zero Piraeus έγραψε: : I'd really rather not, but since this is a public accusation of criminal behaviour: On Sun, Nov 17, 2013 at 07:16:34PM +0200, Nikos wrote: Is this your doing? [18:03:55 secure root@4385109 /lib64]cPs# ls -al |grep libkey lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 -> libkeyutils.so.1.3.0* -rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3* -rwxr-xr-x 1 root root 32920 Jun 22 2012 libkeyutils.so.1.3.0* [18:03:57 secure root@4385109 /lib64]cPs# rpm -qf libkeyutils.so.1.3.0 file /lib64/libkeyutils.so.1.3.0 is not owned by any package It appears that my server has been compromised with a malicious payload designed to sniff for and steal server passwords. I'am sure this is your doing Zero Piraeus. It is not my doing. Please desist from defaming me. I will not respond here, or except through legal counsel should that prove necessary, to further communications from you. I will, however, point out that the last time you were embarrassed in public over your inability to maintain the security of your business and that of your clients, I attempted in private to assist you in resolving your issue. -[]z. You did, but chances are you also imported a good password sniffer whn you logged in as root. You had also altered my .htaccess file. What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
Re: Self-defence
Στις 17/11/2013 7:45 μμ, ο/η Johannes Findeisen έγραψε: On Sun, 17 Nov 2013 14:09:44 -0300 Zero Piraeus wrote: Since Nikos is providing downloads to torrent files from Hollywood movies I reported abuse/copyright violation to CloudFlare where he is hosting his site. I made screenshots of that site and downloaded all torrent files as evidence. I will report this information to the FBI but since I am german and live in Germany I think I have no chance to do that. May an american person could take over this part. I could share all those files as ZIP file. Regards, Johannes Like a lowlife bastard you are indeed you have done so: here is proof: http://i.imgur.com/3Gp5Ywc.png -- What is now proved was at first only imagined! -- https://mail.python.org/mailman/listinfo/python-list
I haev fixed it
http://superhost.gr/warning.html -- https://mail.python.org/mailman/listinfo/python-list
Re: Unicode issue with Python v3.3
Τη Πέμπτη, 11 Απριλίου 2013 1:45:22 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 10Apr2013 21:50, nagia.rets...@gmail.com wrote: > > | Firtly thank uou for taking a look into the code. > > | the doctype is coming form the attempt of script metrites.py to open and > read the 'index.html' file. > > | But i don't know how to try to open it as a byte file instead of an tetxt > file. > > > > I think you've got it backwards. It looks like metrites.py has > > opened the file as bytes instead of as text (probably utf8, but > > that remains to be seen). Because it has opened it in binary mode > > you're getting bytes when you read from the file. > > > > Can you show the relevant code that opens the files and reads from > > it, and the print statement that is putting it back out? > > > > You probably need to ensure that metrites.py is opening it as text, > > with the correct encoding. Note that the encoding is nothing to > > do with your _output_. It is the encoding of the data in the file > > you are reading, and that is dictated by the editor used to make > > the file. > > Webhost && Weblog This works in the shell, but doesn't work on my website: $ cat utf8.txt υλικό!Πρόκειται γ $ python3 Python 3.2.3 (default, Oct 19 2012, 20:10:41) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> data = open('utf8.txt').read() >>> print(data) υλικό!Πρόκειται γ >>> print(data.encode('utf-8')) b'\xcf\x85\xce\xbb\xce\xb9\xce\xba\xcf\x8c!\xce\xa0\xcf\x81\xcf\x8c\xce\xba\xce\xb5\xce\xb9\xcf\x84\xce\xb1\xce\xb9 \xce\xb3\n' See, the last line is what i'am getting on my website. If i remove the encode('utf-8') part in metrites.py, the webpage will not show anything at all... -- http://mail.python.org/mailman/listinfo/python-list
runtime error
Hi I just minstalled python 3.1 on my windons XP SP3 but on the start up I get the following error message: Fatal Python error: Py_Initialize: can't initialize sys standard streams ImportError: No module named encodings.utf_8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.# What should I do Many thanks Nikos -- http://mail.python.org/mailman/listinfo/python-list
UPnP client
Hi. Recently i needed some code to be able to listen on the public IP address outside my modem router. Eventually, i came up with a minimal UPnP implementation and because it seems to work and i'm happy about it, i've decided to post it here at clpy in case anybody else may have a use for it. You never know # NAT Traversal via UPnP Port Mapping # Written by Nikos Fotoulis # This code is public domain. # # Tested on Thomsom TG858v7 modem router. # UPnP is hairy. May not work with other routers # Feedback is welcome. import re, thread, socket, traceback as tb, random from time import sleep from urlparse import urlparse from urllib import urlopen import urllib2 VERBOSE = VVERBOSE = False DEFAULT_ADDR = UPNPS = None # regexes rWANIP = re.compile (r"ST:[^\n]*(WAN(IP|PPP)Connection:\d+)", re.I).search rLOCATION = re.compile (r"LoCaTiON:([^\n]+)", re.I).search def rTAG (t): return re.compile ("<%s>(.+?)"%(t, t), re.I|re.DOTALL) rSERVICE = rTAG ("service").findall for tag in ["controlURL", "URLBase", "NewExternalIPAddress", "NewLeaseDuration", "NewProtocol", "NewInternalClient", "NewExternalPort", "NewInternalPort"]: def f (txt, r=rTAG (tag).search): x = r (txt) if x: return x. groups ()[0].strip () if tag.startswith ("New"): tag = tag [3:] globals () ["r" + tag.upper ()] = f # multicast and discover UPnP gateways # Returns a dictionary where the keys are our "external IP" addresses def DiscoverUPnP (): global UPNPS, DEFAULTGW, DEFAULTIFACE, DEFAULT_ADDR S = {} UPNPS = {} s = socket.socket (socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt (socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 2) #s.setsockopt (socket.SOL_SOCKET, socket.SO_BROADCAST, 1) R = "M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nMAN: ssdp:discover\r\nMX: 10\r\nST: ssdp:all\r\n\r\n" try: s.sendto (R, ("239.255.255.250", 1900)) except: print "UPnP gateways unreachable" return timeout = 5 while 1: s.settimeout (timeout) try: data, addr = s.recvfrom (4096) except: break timeout = max (timeout * 0.5, 0.01) r = rWANIP (data) if r: service = r.groups ()[0] r = rLOCATION (data) if r: location = r.groups () [0].strip () if VERBOSE: print "server:", addr, "supports", service, "at", location S [addr] = service, location if VVERBOSE: print "+" for userver, (service, location) in S.items (): up = urlparse (location) netloc = up.netloc if ":" in netloc: server, _, port = netloc.partition (":") else: server, port = netloc, "80" data = urlopen (location).read () URLBase = rURLBASE (data) or "http://%s:%s"%(server, port) controlURL = None for x in rSERVICE (data): if service in x: controlURL = rCONTROLURL (x) break if controlURL: addr = GetExternalIP (service, URLBase + controlURL) if addr: s = socket.socket (socket.AF_INET, socket.SOCK_STREAM) s.connect ((server, int (port))) thishost = s.getsockname () [0] s.close () UPNPS [server] = addr, service, URLBase + controlURL, thishost if VERBOSE: print "for server:", server, "controlURL:", controlURL else: print "No controlURL found for server:", server # set defaults if len (UPNPS) == 1: k = UPNPS.items ()[0] DEFAULT_ADDR, DEFAULTGW, DEFAULTIFACE = k [1][0], k [0], k [1][3] else: print "Multiple UPnP gateways!" return UPNPS # generic request POST data def envelope (request, service, **kw): return """ http://schemas.xmlsoap.org/soap/envelope/"; s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";&g
how I can get python idle?
Sent from [1]Mail for Windows 10 [2][IMG] Virus-free. [3]www.avast.com References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 2. https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon 3. https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link -- https://mail.python.org/mailman/listinfo/python-list
Re: Tryign to send mail via a python script by using the local MTA
Στις 15/9/2013 9:59 μμ, ο/η Joost Molenaar έγραψε: Also, the reverse DNS for 84.200.17.58 does not resolve to secure.superhost.gr, which could also be reason to reject the message. How can i fix this please? -- https://mail.python.org/mailman/listinfo/python-list
Re: To whoever hacked into my Database
Nikos said: > Okey let the hacker try again to mess with my database!!! > He is done it twice, lets see if he will make it again! > I'am waiting! Seriously man, you gotta stop. Are you trying to be a host provider? You know absolutely nothing about what you are doing. There are security holes everywhere in your site. Take someones advise for once. Your whole project is a disaster because you haven't taken the time to read and learn about the tools you are using. You're expecting python-list to code your site for you (one messed up error-fix at a time), and it's ridiculous. Read a book, or look at other peoples code and learn from it. Your first reaction to a bug should not be to send 3 emails to python-list asking the same thing over and over. Here, I'm gonna get you started: http://lmgtfy.com/?q=how+not+to+suck+as+a+person+and+a+developer -- https://mail.python.org/mailman/listinfo/python-list
Re: how to show Chinese Characters in the value set of a dictionary
On Sun, 01 Jan 2006 07:35:31 -0800, zxo102 wrote: > > Hi there, > I have a dictionary with values of Chinses Characters. For > example, > dict = {} dict['c1']="中国一" dict['c2']="中国二" dict.values() > ['\xd6\xd0\xb9\xfa\xb6\xfe', '\xd6\xd0\xb9\xfa\xd2\xbb'] > > Since the result of dict.values will be inserted into web pages and > handled by javascript there, I want to show Chinese Characters > in the list directly like this, > > ['中国一','中国二'] > > Anybody knows how to do this? Thank you very much for your help. > > Ouyang >>> print "['", dict.values()[0], "']", "['", dict.values()[1], "']" [' 中国二 '] [' 中国一 '] -- http://mail.python.org/mailman/listinfo/python-list
Re: Job Offer: Python Ninja or Pirate!
> Challenge: > A valid response will be either a solution to the problem below, or a > link to some code of which you > are particularly proud. > > Problem: In the dynamic language of your choice, write a short program > that will: > 1. define a list of the following user ids 42346, 77290, 729 (you can > hardcode these, but it should > still work with more or less ids) > 2. retrieve an xml document related to each user at this url "http:// > api.etsy.com/feeds/xml_user_details.php?id=" > 3. retrieve the data contained in the city element from each xml > document > 4. keep a running total of how many users are found in each city > 5. display the total count of users living in each city > > You can assume user ids are valid and that the url is available. The > output should look something > like: > > Charlotte: 1 > New York: 2 i wanted to make it a one liner, but i had to import modules :( import sys, xml, urllib dummy = [sys.stdout.write(city + ': ' + str(num) + '\n') for city, num in set([[(a, o.count(a)) for a in p] for o, p in [2*tuple([[city for city in ((xml.dom.minidom.parseString(urllib.urlopen('http://api.etsy.com/feeds/xml_user_details.php?id=' + str(id)).read()).getElementsByTagName('city')[0].childNodes + [(lambda t: (setattr(t, 'data', 'no city'), t))(xml.dom.minidom.Text())[1]])[0].data.lower().replace(' ', ' ') for id in [71234, 71234, 71234, 71234, 71234, 71234, 42792])]])]][0])] -- http://mail.python.org/mailman/listinfo/python-list
Re: Floating point subtraction rounding error (NOT display error)
> Solved: used round(number,12) in this case for all of the operands of > my arcsines. Not pretty, but at least VIM made it easy... You might have the same problem though: >>> round(1.0003401032523500235,13) 1.000340103 >>> round(1.0003401032523500235,12) 1.00034011 -- http://mail.python.org/mailman/listinfo/python-list