Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-10-02 Thread Antoon Pardon
Op 02-10-13 03:36, Steven D'Aprano schreef: On Tue, 01 Oct 2013 09:27:22 +0200, Antoon Pardon wrote: People pay for some kind of guaranteed uptime. You have *no idea* what sort of contract Nikos has with his customers. Nor do you know have any idea what fees he charges. For all we know,

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-10-02 Thread Νίκος
Στις 2/10/2013 4:36 πμ, ο/η Steven D'Aprano έγραψε: On Tue, 01 Oct 2013 09:27:22 +0200, Antoon Pardon wrote: People pay for some kind of guaranteed uptime. You have *no idea* what sort of contract Nikos has with his customers. Nor do you know have any idea what fees he charges. For all we

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-10-02 Thread Νίκος
Στις 2/10/2013 10:23 πμ, ο/η Antoon Pardon έγραψε: Op 02-10-13 03:36, Steven D'Aprano schreef: On Tue, 01 Oct 2013 09:27:22 +0200, Antoon Pardon wrote: People pay for some kind of guaranteed uptime. You have *no idea* what sort of contract Nikos has with his customers. Nor do you know have

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-10-01 Thread Antoon Pardon
Op 01-10-13 01:14, Νίκος schreef: Στις 1/10/2013 1:56 πμ, ο/η Chris Angelico έγραψε: But what you're doing is charging your customers while you learn the very basics. I designed their websites and they are up and running. Yes i have charged some money, but they gain what they paid for, a

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-10-01 Thread Νίκος
Στις 1/10/2013 10:27 πμ, ο/η Antoon Pardon έγραψε: Op 01-10-13 01:14, Νίκος schreef: Στις 1/10/2013 1:56 πμ, ο/η Chris Angelico έγραψε: But what you're doing is charging your customers while you learn the very basics. I designed their websites and they are up and running. Yes i have charged

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-10-01 Thread Antoon Pardon
Op 01-10-13 10:39, Νίκος schreef: Στις 1/10/2013 10:27 πμ, ο/η Antoon Pardon έγραψε: Op 01-10-13 01:14, Νίκος schreef: Στις 1/10/2013 1:56 πμ, ο/η Chris Angelico έγραψε: But what you're doing is charging your customers while you learn the very basics. I designed their websites and they are

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-10-01 Thread Grant Edwards
On 2013-09-30, ?? nikos.gr...@gmail.com wrote: I learn during the process. That's fine as long as your customers are told up front that what they're paying for is _not_ a working usable service, but rahter a training program for you personally (a training program that's failing rather

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-10-01 Thread Steven D'Aprano
On Tue, 01 Oct 2013 09:27:22 +0200, Antoon Pardon wrote: People pay for some kind of guaranteed uptime. You have *no idea* what sort of contract Nikos has with his customers. Nor do you know have any idea what fees he charges. For all we know, he is promising, and charging for, 99% uptime

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Grant Edwards
On 2013-09-29, ?? nikos.gr...@gmail.com wrote: 29/9/2013 10:53 , ??/?? Chris Angelico : You fail to understand that these code i now use was written with the help of regulars here and yes its correct. If you're code is correct, then use it and be happy.

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Absolutely hilarious. Please give up your web work and Python and get a job writing scripts for comedians, you'd make a large

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 14:51, Grant Edwards wrote: On 2013-09-29, ?? nikos.gr...@gmail.com wrote: 29/9/2013 10:53 , ??/?? Chris Angelico : You fail to understand that these code i now use was written with the help of regulars here and yes its correct. If you're code

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 12:51 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 30/09/2013 14:51, Grant Edwards wrote: On 2013-09-29, ?? nikos.gr...@gmail.com wrote: 29/9/2013 10:53 , ??/?? Chris Angelico : You fail to understand that these code i now use

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Absolutely hilarious. Please give up your web work and Python and get a job

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Antoon Pardon
Op 30-09-13 20:03, Νίκος schreef: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Absolutely hilarious. Please give up your web

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 19:03, Νίκος wrote: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Absolutely hilarious. Please give up your web

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Ned Batchelder
On 9/30/13 2:42 PM, Mark Lawrence wrote: Please drop dead and the sooner the better. Your arrogant attitide to the numerous people who've tried so hard to help you is disgraceful. Mark, I'm as frustrated as anyone by Nikos' threads, but there's really no call for Please drop dead. We can do

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 30/9/2013 9:42 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 19:03, Νίκος wrote: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole leading this list, who is doing nothing else than critizizing others people's posts, spamming all he way along while contributing negatively only. Really? http://code.activestate.com/lists/python-list/651611/ -- Cheers. Mark

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Antoon Pardon
Op 30-09-13 20:54, Ned Batchelder schreef: On 9/30/13 2:42 PM, Mark Lawrence wrote: Please drop dead and the sooner the better. Your arrogant attitide to the numerous people who've tried so hard to help you is disgraceful. Mark, I'm as frustrated as anyone by Nikos' threads, but there's

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole leading this list, who is doing nothing else than critizizing others people's posts, spamming all he way along while contributing negatively only. Really?

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole leading this list, who is doing nothing else than critizizing others people's posts, spamming all he way along

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 22:34, Νίκος wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole leading this list, who is doing nothing else than critizizing others people's posts, spamming all he way along while contributing negatively only.

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Denis McMahon
On Mon, 30 Sep 2013 15:51:39 +0100, Mark Lawrence wrote: On 30/09/2013 14:51, Grant Edwards wrote: On 2013-09-29, ?? nikos.gr...@gmail.com wrote: 29/9/2013 10:53 , ??/?? Chris Angelico : You fail to understand that these code i now use was written with the

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 6:08 PM, Νίκος nikos.gr...@gmail.com wrote: Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com** wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 23:08, Νίκος wrote: Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote:

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:14 πμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 23:08, Νίκος wrote: Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε:

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 23:19, Νίκος wrote: 2 dickheads names Joe Mark work together to achieve total bullshit! Well done Beavis Butthead! rofl... Well aside from the fact that you've maintained your record by being inaccurate with 50% of the names that you've quoted, it appears that we've

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 4:03 AM, Νίκος nikos.gr...@gmail.com wrote: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: Absolutely hilarious. Please give up your web work and Python and get a job writing scripts for comedians, you'd make a large fortune. I learn Python for personal pleasure

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:28 πμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 23:19, Νίκος wrote: 2 dickheads names Joe Mark work together to achieve total bullshit! Well done Beavis Butthead! rofl... Well aside from the fact that you've maintained your record by being inaccurate with 50% of the names

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:29 πμ, ο/η Chris Angelico έγραψε: On Tue, Oct 1, 2013 at 4:03 AM, Νίκος nikos.gr...@gmail.com wrote: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: Absolutely hilarious. Please give up your web work and Python and get a job writing scripts for comedians, you'd make a large

Mutual respect, tolerance, encouragement (was: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte)

2013-09-30 Thread Ben Finney
Chris Angelico ros...@gmail.com writes: Nikos, I sincerely hope that all these problems cause you to go out of business. Preferably right now, with just enough maintenance to last till the end of your contracts with people. Then start programming purely as a hobby, until you actually master

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 8:30 AM, Νίκος nikos.gr...@gmail.com wrote: Στις 1/10/2013 1:28 πμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 23:19, Νίκος wrote: 2 dickheads names Joe Mark work together to achieve total bullshit! Well done Beavis Butthead! rofl... Well aside from the fact that

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:43 πμ, ο/η Chris Angelico έγραψε: On Tue, Oct 1, 2013 at 8:30 AM, Νίκος nikos.gr...@gmail.com wrote: Στις 1/10/2013 1:28 πμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 23:19, Νίκος wrote: 2 dickheads names Joe Mark work together to achieve total bullshit! Well done Beavis

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 8:36 AM, Νίκος nikos.gr...@gmail.com wrote: I learn during the process. That's how i deal with the situation. I challedge my self and then try to confront the given situation _live_. It's not wise to do so, but that how i operate. Everyone's learning on the job. (I

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:56 πμ, ο/η Chris Angelico έγραψε: But what you're doing is charging your customers while you learn the very basics. I designed their websites and they are up and running. Yes i have charged some money, but they gain what they paid for, a running website, all of them. So,

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Steven D'Aprano
On Tue, 01 Oct 2013 01:08:41 +0300, Νίκος wrote: stfu dickhead. And you're back in the kill-file. *plonk* -- Steven -- https://mail.python.org/mailman/listinfo/python-list

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
, in module [Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] host = socket.gethostbyaddr( ipval ) [0] [Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte [Sun Sep 29 07:44:43 2013] [error

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Chris Angelico
On Sun, Sep 29, 2013 at 5:49 PM, Νίκος nikos.gr...@gmail.com wrote: Hello although my code is correct just today i saw this in the error_log You retain this ridiculous arrogance that your code is somehow correct, despite the problems you continually face. Do not these problems prove that your

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
/public_html/cgi-bin/metrites.py, line 30, in module [Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] host = socket.gethostbyaddr( ipval ) [0] [Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
. Since this is not a socket.gaierror it wants: except Exception as e: ? i just tried it and now it works. but then again why the:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte when it comes to determine the 'host' ? -- https://mail.python.org

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Chris Angelico
On Sun, Sep 29, 2013 at 5:53 PM, Νίκος nikos.gr...@gmail.com wrote: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Something's trying to decode a stream of bytes as UTF-8, and it's not UTF-8. Work out what in your code is bytes and what is strings

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
Στις 29/9/2013 11:00 πμ, ο/η Chris Angelico έγραψε: On Sun, Sep 29, 2013 at 5:53 PM, Νίκος nikos.gr...@gmail.com wrote: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Something's trying to decode a stream of bytes as UTF-8, and it's not UTF-8

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Chris Angelico
On Sun, Sep 29, 2013 at 6:04 PM, Νίκος nikos.gr...@gmail.com wrote: How come all these daysthe followinf line work as expected: host = socket.gethostbyaddr( ipval ) [0] and only just today just happened to output: Maybe the ipval is different. Maybe something else is causing the error. I

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
Στις 29/9/2013 11:07 πμ, ο/η Chris Angelico έγραψε: On Sun, Sep 29, 2013 at 6:04 PM, Νίκος nikos.gr...@gmail.com wrote: How come all these daysthe followinf line work as expected: host = socket.gethostbyaddr( ipval ) [0] and only just today just happened to output: Maybe the ipval is

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Chris Angelico
On Sun, Sep 29, 2013 at 6:19 PM, Νίκος nikos.gr...@gmail.com wrote: ipval is suposed to get just an ip address. ip addresses doesnt change its just number seperated by dots. That's one way an IP address can be rendered. It's not the only one. There's an entire category of IP addresses that's

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
Στις 29/9/2013 11:23 πμ, ο/η Chris Angelico έγραψε: On Sun, Sep 29, 2013 at 6:19 PM, Νίκος nikos.gr...@gmail.com wrote: ipval is suposed to get just an ip address. ip addresses doesnt change its just number seperated by dots. That's one way an IP address can be rendered. It's not the only

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
173.245.49.126] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte [Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] Premature end of script headers: metrites.py What on earth it cant decode? -- https://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Steven D'Aprano
On Sun, 29 Sep 2013 11:37:14 +0300, Νίκος wrote: Στις 29/9/2013 11:30 πμ, ο/η Νίκος έγραψε: Στις 29/9/2013 11:23 πμ, ο/η Chris Angelico έγραψε: On Sun, Sep 29, 2013 at 6:19 PM, Νίκος nikos.gr...@gmail.com wrote: ipval is suposed to get just an ip address. ip addresses doesnt change its just

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
Στις 29/9/2013 12:45 μμ, ο/η Steven D'Aprano έγραψε: On Sun, 29 Sep 2013 11:37:14 +0300, Νίκος wrote: Στις 29/9/2013 11:30 πμ, ο/η Νίκος έγραψε: Στις 29/9/2013 11:23 πμ, ο/η Chris Angelico έγραψε: On Sun, Sep 29, 2013 at 6:19 PM, Νίκος nikos.gr...@gmail.com wrote: ipval is suposed to get

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Ned Batchelder
On 9/29/13 4:04 AM, Νίκος wrote: Στις 29/9/2013 11:00 πμ, ο/η Chris Angelico έγραψε: On Sun, Sep 29, 2013 at 5:53 PM, Νίκος nikos.gr...@gmail.com wrote: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Something's trying to decode a stream

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Dave Angel
On 29/9/2013 06:24, Νίκος wrote: snip except Exception as e: === except socket.gaierror as e: which cannot handle unicore realted errors and the exact same error appeared with my ip address involved at the error log. so, the question that arises again and reamins is how come 'host'

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
Στις 29/9/2013 2:11 μμ, ο/η Dave Angel έγραψε: On 29/9/2013 06:24, Νίκος wrote: snip except Exception as e: === except socket.gaierror as e: which cannot handle unicore realted errors and the exact same error appeared with my ip address involved at the error log. so, the question that

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Dave Angel
On 29/9/2013 07:25, Νίκος wrote: Thank you for being willing to look this further. Willing, but probably not able. I think I know a lot about the language, and less about the libraries. I know very little about the administration side of internet use. The reference to /etc/hosts is only a

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
Στις 29/9/2013 2:46 μμ, ο/η Dave Angel έγραψε: On 29/9/2013 07:25, Νίκος wrote: Thank you for being willing to look this further. Willing, but probably not able. I think I know a lot about the language, and less about the libraries. I know very little about the administration side of

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Chris “Kwpolska” Warrick
On Sun, Sep 29, 2013 at 1:51 PM, Νίκος nikos.gr...@gmail.com wrote: Στις 29/9/2013 2:46 μμ, ο/η Dave Angel έγραψε: On 29/9/2013 07:25, Νίκος wrote: Thank you for being willing to look this further. Willing, but probably not able. I think I know a lot about the language, and less about

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Chris Angelico
On Sun, Sep 29, 2013 at 10:38 PM, Chris “Kwpolska” Warrick kwpol...@gmail.com wrote: I can point you to “find a sysadmin that will work for you and fix your problems for money”. Where can you find one? That’s not a question for me. I suggest looking around Greek websites, as someone

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Steven D'Aprano
On Sun, 29 Sep 2013 06:53:27 -0400, Ned Batchelder wrote: This is the nature of Unicode pain in Python 2 (Python 3 has a different kind!). This may help you understand what's going on: http://nedbatchelder.com/text/unipain.html That's a fantastic explanation, and I have pointed Nikos at that

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Chris Angelico
On Sun, Sep 29, 2013 at 9:25 PM, Νίκος nikos.gr...@gmail.com wrote: superhost.gr. 14400 IN MX 0 superhost.gr. mail14400 IN CNAME superhost.gr. As for the mail iam afrid it outputs this: Code: Warning MX CNAME Check WARNING: CNAME was returned for the

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
Στις 29/9/2013 5:19 μμ, ο/η Chris Angelico έγραψε: On Sun, Sep 29, 2013 at 9:25 PM, Νίκος nikos.gr...@gmail.com wrote: superhost.gr. 14400 IN MX 0 superhost.gr. mail14400 IN CNAME superhost.gr. As for the mail iam afrid it outputs this: Code: Warning MX CNAME

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Joel Goldstick
asked and answered. Move on -- https://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Νίκος
Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. -- https://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Terry Reedy
On 9/29/2013 6:53 AM, Ned Batchelder wrote: This is the nature of Unicode pain in Python 2 (Python 3 has a different kind!). This may help you understand what's going on: http://nedbatchelder.com/text/unipain.html This is really excellent and I bookmarked it. There is one minor error: the

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Ned Batchelder
On 9/29/13 1:30 PM, Terry Reedy wrote: On 9/29/2013 6:53 AM, Ned Batchelder wrote: This is the nature of Unicode pain in Python 2 (Python 3 has a different kind!). This may help you understand what's going on: http://nedbatchelder.com/text/unipain.html This is really excellent and I

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Larry Hudson
On 09/29/2013 09:19 AM, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Thanks for the laugh. Absolutely the most hilarious thing you've ever posted!!! :-) (Ever hear about the pot and the kettle?)

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-06 Thread roggero . n
shut off the HD, start the SO form an USB and shut on again the HD -- https://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-12 Thread Wayne Werner
On Thu, 4 Jul 2013, Νίκος Γκρ33κ wrote: Στις 4/7/2013 6:10 μμ, ο/η MRAB έγραψε: What do you mean I don't know how to catch the exception with OSError? You've tried except socket.gaierror and except socket.herror, well just write except OSError instead! try: host =

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-12 Thread Ferrous Cranus
Στις 12/7/2013 2:47 μμ, ο/η Wayne Werner έγραψε: On Thu, 4 Jul 2013, Νίκος Γκρ33κ wrote: Στις 4/7/2013 6:10 μμ, ο/η MRAB έγραψε: What do you mean I don't know how to catch the exception with OSError? You've tried except socket.gaierror and except socket.herror, well just write except OSError

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-12 Thread Dave Angel
On 07/12/2013 07:56 AM, Ferrous Cranus wrote: Στις 12/7/2013 2:47 μμ, ο/η Wayne Werner έγραψε: On Thu, 4 Jul 2013, Νίκος Γκρ33κ wrote: Στις 4/7/2013 6:10 μμ, ο/η MRAB έγραψε: What do you mean I don't know how to catch the exception with OSError? You've tried except socket.gaierror and except

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Ferrous Cranus
Στις 5/7/2013 3:06 πμ, ο/η Nobody έγραψε: On Thu, 04 Jul 2013 13:38:09 +0300, Νίκος wrote: So you are also suggesting that what gesthostbyaddr() returns is not utf-8 encoded too? The gethostbyaddr() OS function returns a byte string with no specified encoding. Python 3 will doubtless try to

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 3:06 πμ, ο/η Nobody έγραψε: On Thu, 04 Jul 2013 13:38:09 +0300, Νίκος wrote: So you are also suggesting that what gesthostbyaddr() returns is not utf-8 encoded too? The gethostbyaddr() OS function returns a byte string with no specified encoding. Python 3 will doubtless try to

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Lele Gaifax
Ferrous Cranus ni...@superhost.gr writes: host = gethostbyaddr() or UnResolved This will return the first argument that define the evaluation as being true or untrue. if function returns false the the 2nd argument. Nut if the function gives an exception will the condition return the

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Lele Gaifax
Νίκος Gr33k ni...@superhost.gr writes: try: host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] except Exception as e: host = Reverse DNS Failed How can the above code not be able to reeverse dns any more and it falls back to the failed string? The only way to know is

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 10:06 πμ, ο/η Lele Gaifax έγραψε: try: host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] except: host = Reverse DNS Failed Yes i uses to had it like that, until i was looking for ways to make it hold the error except Exception as e:

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 9:55 πμ, ο/η Lele Gaifax έγραψε: Ferrous Cranus ni...@superhost.gr writes: host = gethostbyaddr() or UnResolved This will return the first argument that define the evaluation as being true or untrue. if function returns false the the 2nd argument. Nut if the function gives

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Benjamin Kaplan
On Jul 5, 2013 12:12 AM, Lele Gaifax l...@metapensiero.it wrote: Νίκος Gr33k ni...@superhost.gr writes: try: host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] except Exception as e: host = Reverse DNS Failed How can the above code not be able to reeverse dns

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Dave Angel
On 07/05/2013 02:51 AM, Νίκος Gr33k wrote: SNIP Please help because i just happened to noticed that after having this code: try: host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] except Exception as e: host = Reverse DNS Failed Don't ever catch a bare Exception

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 10:50 πμ, ο/η Dave Angel έγραψε: The line started as: host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] refactor that to: remadd = os.environ('REMOVE_ADDR') tuple3 = socket.gethostbyaddr(remadd) host = tuple3[0] and see which one throws

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Dave Angel
On 07/05/2013 03:13 AM, Νίκος Gr33k wrote: Στις 5/7/2013 10:06 πμ, ο/η Lele Gaifax έγραψε: try: host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] except: host = Reverse DNS Failed Yes i uses to had it like that, until i was looking for ways to make it

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Dave Angel
On 07/05/2013 04:00 AM, Νίκος Gr33k wrote: Στις 5/7/2013 10:50 πμ, ο/η Dave Angel έγραψε: The line started as: host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] refactor that to: remadd = os.environ('REMOVE_ADDR') tuple3 = socket.gethostbyaddr(remadd)

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread feedthetroll
Am Freitag, 5. Juli 2013 10:00:21 UTC+2 schrieb Νίκος Gr33k: ... I'am not sure how iam supposed to write this: i just tried this: try: remadd = os.environ('REMOVE_ADDR') tuple3 = socket.gethostbyaddr(remadd) host = tuple3[0] except: host = type(remadd) + : +

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 11:35 πμ, ο/η Dave Angel έγραψε: On 07/05/2013 04:00 AM, Νίκος Gr33k wrote: Στις 5/7/2013 10:50 πμ, ο/η Dave Angel έγραψε: The line started as: host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] refactor that to: remadd = os.environ('REMOVE_ADDR')

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 11:27 πμ, ο/η Dave Angel έγραψε: Or if the problems cannot be recreated outside the cgi environment, use the log files you've been logging other problems into. Or simply open a text file for writing, and add a file= keyword parameter to the print function call.

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Dave Angel
On 07/05/2013 04:49 AM, Νίκος Gr33k wrote: SNIP I don't think running it via 'cli' would help much, since its a cgi-script and ip addr function have no meaning calling them in plain our of a cgi environment but here it is: No idea how to parse have no meaning calling them in plain

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 12:21 μμ, ο/η Dave Angel έγραψε: On 07/05/2013 04:49 AM, Νίκος Gr33k wrote: SNIP I don't think running it via 'cli' would help much, since its a cgi-script and ip addr function have no meaning calling them in plain our of a cgi environment but here it is: No idea how

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Lele Gaifax
Benjamin Kaplan benjamin.kap...@case.edu writes: FYI, your code above is (almost) exactly equivalent to the simpler They aren't equivalent. except Exception won't catch KeyboardInterrupt or SystemExit or a few others that you really don't want to catch in a generic error handler. You should

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Lele Gaifax
Νίκος Gr33k ni...@superhost.gr writes: You can view the error in the very first line here: http://superhost.gr/?show=logpage=index.html No, visiting that page simply emit the standard Apache error page, without details. which yields: TypeError('_Environ' object is not callable,) Dave

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 12:25 μμ, ο/η Νίκος Gr33k έγραψε: try: remadd = os.environ('REMOTE_ADDR') tuple3 = socket.gethostbyaddr(remadd) host = tuple3[0] except Exception as e: host = repr(e) which yields: TypeError('_Environ' object is not callable,) Any thoufgs as to why

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 1:24 μμ, ο/η Lele Gaifax έγραψε: Νίκος Gr33k ni...@superhost.gr writes: You can view the error in the very first line here: http://superhost.gr/?show=logpage=index.html No, visiting that page simply emit the standard Apache error page, without details. which yields:

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 12:21 μμ, ο/η Dave Angel έγραψε: Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python3.3/os.py, line 669, in __getitem__ value = self._data[self.encodekey(key)] KeyError: b'REMOTE_ADDR Wait! Are you saying that the ip address is

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Lele Gaifax
Νίκος Gr33k ni...@superhost.gr writes: Στις 5/7/2013 12:25 μμ, ο/η Νίκος Gr33k έγραψε: try: remadd = os.environ('REMOTE_ADDR') tuple3 = socket.gethostbyaddr(remadd) host = tuple3[0] except Exception as e: host = repr(e) which yields: TypeError('_Environ' object is

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 1:36 μμ, ο/η Lele Gaifax έγραψε: Νίκος Gr33k ni...@superhost.gr writes: Στις 5/7/2013 12:25 μμ, ο/η Νίκος Gr33k έγραψε: try: remadd = os.environ('REMOTE_ADDR') tuple3 = socket.gethostbyaddr(remadd) host = tuple3[0] except Exception as e: host = repr(e)

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Lele Gaifax
Νίκος Gr33k ni...@superhost.gr writes: Looks now when i print( repr(e)) i get UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3 but what string does it try to decode and jeeps failing? Reasonably it's the second one, as the first clearly seems the tag of the decoder that tried to translate

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 1:59 μμ, ο/η Lele Gaifax έγραψε: Νίκος Gr33k ni...@superhost.gr writes: Looks now when i print( repr(e)) i get UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3 but what string does it try to decode and jeeps failing? Reasonably it's the second one, as the first clearly

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Lele Gaifax
Νίκος Gr33k ni...@superhost.gr writes: Στις 5/7/2013 1:59 μμ, ο/η Lele Gaifax έγραψε: Νίκος Gr33k ni...@superhost.gr writes: UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3 but what string does it try to decode and jeeps failing? Reasonably it's the second one, as the first clearly

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 2:05 μμ, ο/η Νίκος Gr33k έγραψε: Thats what i'm trying to do. If i completely remove the gethostbyaddr fucntion adds function then there is nor problem. The problem is recreating when the script tries to decode a hostname. For some bizarre reason if i exclude my domain from

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Στις 5/7/2013 2:16 μμ, ο/η Lele Gaifax έγραψε: UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3 first string---^^^ second string---^^ Hold on please! From where do these dashes and carets characters come from? Also from where do you see 2 strings?

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread feedthetroll
Am Freitag, 5. Juli 2013 12:33:05 UTC+2 schrieb Νίκος Gr33k: ... Wait! Are you saying that the ip address is being returned as a byte string which then i have to decode with something like: host = socket.gethostbyaddr( os.environ['REMOTE_HOST'].decode('utf-8') )[0] Wait! I get a decode

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread feedthetroll
Am Freitag, 5. Juli 2013 13:27:25 UTC+2 schrieb Νίκος Gr33k: Στις 5/7/2013 2:16 μμ, ο/η Lele Gaifax έγραψε: UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3 first string---^^^ second string---^^ Hold on please! From where do these dashes and

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread feedthetroll
Am Freitag, 5. Juli 2013 12:33:05 UTC+2 schrieb Νίκος Gr33k: ... Wait! Are you saying that the ip address is being returned as a byte string which then i have to decode with something like: host = socket.gethostbyaddr( os.environ['REMOTE_HOST'].decode('utf-8') )[0] Wait! I get a decode

  1   2   >