Re: an error

2016-07-19 Thread Laurent Pointal
WePlayGames WeEnjoyIt wrote: > elif p2==8: >pygame1.blit(image3,(143,146) <= missing ) > total+=1 > fps=40 > clockfps.tick(fps) > pygame.display.update() > > the problem with this is that i get an syntax error at the very end at the > TOTAL+=1 when i delete this it tells me

Re: an error

2016-07-19 Thread Terry Reedy
On 7/19/2016 2:07 AM, WePlayGames WeEnjoyIt wrote: pygame1.blit(image3,(143,146) If you type this line (including \n) into IDLE's Python-aware editor, it will notice that there is an open parenthesis for a function call and indent the next line to the space under the 'i' of image. This i

Re: an error

2016-07-18 Thread Chris Angelico
On Tue, Jul 19, 2016 at 4:37 PM, WePlayGames WeEnjoyIt wrote: > Τη Τρίτη, 19 Ιουλίου 2016 - 9:32:34 π.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: >> On Tue, Jul 19, 2016 at 4:26 PM, WePlayGames WeEnjoyIt >> wrote: >> > thanks chris for responding, it doesnt say anything else just syntax error >

Re: an error

2016-07-18 Thread WePlayGames WeEnjoyIt
Τη Τρίτη, 19 Ιουλίου 2016 - 9:32:34 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Tue, Jul 19, 2016 at 4:26 PM, WePlayGames WeEnjoyIt > wrote: > > thanks chris for responding, it doesnt say anything else just syntax error > > it have seen this error again when im using the for loop and it seem

Re: an error

2016-07-18 Thread Chris Angelico
On Tue, Jul 19, 2016 at 4:26 PM, WePlayGames WeEnjoyIt wrote: > thanks chris for responding, it doesnt say anything else just syntax error > it have seen this error again when im using the for loop and it seems like > when i delete everything after total+=1 i get a different error called > UNEXP

Re: an error

2016-07-18 Thread WePlayGames WeEnjoyIt
Τη Τρίτη, 19 Ιουλίου 2016 - 9:20:20 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Tue, Jul 19, 2016 at 4:07 PM, WePlayGames WeEnjoyIt > wrote: > > the problem with this is that i get an syntax error at the very end at the > > TOTAL+=1 when i delete this it tells me that there is an error at t

Re: an error

2016-07-18 Thread Ian Kelly
On Tue, Jul 19, 2016 at 12:07 AM, WePlayGames WeEnjoyIt wrote: >pygame1.blit(image3,(143,146) This line is missing a closing parenthesis. -- https://mail.python.org/mailman/listinfo/python-list

Re: an error

2016-07-18 Thread Chris Angelico
On Tue, Jul 19, 2016 at 4:07 PM, WePlayGames WeEnjoyIt wrote: > the problem with this is that i get an syntax error at the very end at the > TOTAL+=1 when i delete this it tells me that there is an error at the > clockfps.tick(fps) thing what the heck is going on :p > When you get an error, Pyt

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-09 Thread rusi
On Mar 9, 7:16 pm, Νίκος Γκρ33κ wrote: > Is there a way to see anserws to my posts via ThunderBird that doesn't hve > this formatting issue? I had posted a suggestion to get back to 'old google groups' here. Usually if you (can) switch to the old these problems vanish http://mail.python.org/pip

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-09 Thread Νίκος Γκρ33κ
Is there a way to see anserws to my posts via ThunderBird that doesn't hve this formatting issue? -- http://mail.python.org/mailman/listinfo/python-list

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-09 Thread Mark Lawrence
On 09/03/2013 07:56, Νίκος Γκρ33κ wrote: Τη Σάββατο, 9 Μαρτίου 2013 7:05:08 π.μ. UTC+2, ο χρήστης Steven D'Aprano έγραψε: On Fri, 08 Mar 2013 19:18:50 -0800, Νίκος Γκρ33κ wrote: I agree with you but i wonder why the world would want to dedicate hours for fiddling with my script? Why anyon

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-09 Thread Νίκος Γκρ33κ
Τη Σάββατο, 9 Μαρτίου 2013 7:05:08 π.μ. UTC+2, ο χρήστης Steven D'Aprano έγραψε: > On Fri, 08 Mar 2013 19:18:50 -0800, Νίκος Γκρ33κ wrote: > > > > > I agree with you but i wonder why the world would want to dedicate hours > > > for fiddling with my script? Why anyone should mess with my website

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Steven D'Aprano
On Fri, 08 Mar 2013 19:18:50 -0800, Νίκος Γκρ33κ wrote: > I agree with you but i wonder why the world would want to dedicate hours > for fiddling with my script? Why anyone should mess with my website > http://superhost.gr ? What makes you think it would be hours? For somebody who knows what the

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Mark Lawrence
On 09/03/2013 03:17, Νίκος Γκρ33κ wrote: Τη Σάββατο, 9 Μαρτίου 2013 2:18:42 π.μ. UTC+2, ο χρήστης Ian έγραψε: So the -c is an option to Python. It means that instead of reading a script, Python should run commands passed on the command line in the next argument. That's the ''. It's empty, so

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Mark Lawrence
On 09/03/2013 03:18, Νίκος Γκρ33κ wrote: Τη Παρασκευή, 8 Μαρτίου 2013 11:37:11 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: There is NO WAY that you are the smartest or most devious person on Earth. Also, the three hours that you put in are *nothing* compared to the collective time that the re

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Νίκος Γκρ33κ
Τη Σάββατο, 9 Μαρτίου 2013 2:18:42 π.μ. UTC+2, ο χρήστης Ian έγραψε: > So the -c is an option to Python. It means that instead of reading a > script, Python should run commands passed on the command line in the > next argument. That's the ''. It's empty, so what this instructs > Python is to d

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Νίκος Γκρ33κ
Τη Παρασκευή, 8 Μαρτίου 2013 11:37:11 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > There is NO WAY that you are the smartest or most devious person on > Earth. Also, the three hours that you put in are *nothing* compared to > the collective time that the rest of the world will spend fiddling

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread nagia . retsina
Τη Σάββατο, 9 Μαρτίου 2013 2:26:56 π.μ. UTC+2, ο χρήστης Ian έγραψε: > On Fri, Mar 8, 2013 at 1:31 PM, Νίκος Γκρ33κ wrote: > > > Thank you very much for pointing my flaws once again! > > > > > > I cant beleive how easy you hacked the webserver again and be able to read > > my cgi scripts sourc

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Ian Kelly
On Fri, Mar 8, 2013 at 1:31 PM, Νίκος Γκρ33κ wrote: > Thank you very much for pointing my flaws once again! > > I cant beleive how easy you hacked the webserver again and be able to read my > cgi scripts source and write to cgi-bin too! > > I have added extra security by following some of your ad

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Ian Kelly
On Fri, Mar 8, 2013 at 1:54 PM, wrote: > Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano > έγραψε: > >> >>> -c ''; rm -rf /; oops.py > >> Please don't tell the newbies to destroy their system, no matter how >> tempting it might be. > > What that "-c ''" options i keep

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread emile
On 03/08/2013 12:54 PM, nagia.rets...@gmail.com wrote: Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano έγραψε: -c ''; rm -rf /; oops.py Please don't tell the newbies to destroy their system, no matter how tempting it might be. What that "-c ''" options i keep se

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Chris Angelico
On Sat, Mar 9, 2013 at 7:31 AM, Νίκος Γκρ33κ wrote: > I cant beleive how easy you hacked the webserver again and be able to read my > cgi scripts source and write to cgi-bin too! > > I have added extra security by following some of your advice, i wonder if > youc an hack it again! > > Fell free

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread nagia . retsina
Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano έγραψε: > >>> -c ''; rm -rf /; oops.py > Please don't tell the newbies to destroy their system, no matter how > tempting it might be. What that "-c ''" options i keep seeing in the attempts to pass bogus info in my 'pa

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Νίκος Γκρ33κ
Τη Παρασκευή, 8 Μαρτίου 2013 10:01:59 μ.μ. UTC+2, ο χρήστης Ian έγραψε: > On Fri, Mar 8, 2013 at 12:19 PM, wrote: > > > I dare anyone who wants to to mess with 'htmlpage' variable value's now! > > > > > > I made it unhackable i believe! > > > > > > I'am testing it myself 3 hours now and find

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Ian Kelly
On Fri, Mar 8, 2013 at 1:01 PM, Ian Kelly wrote: > On Fri, Mar 8, 2013 at 12:19 PM, wrote: >> I dare anyone who wants to to mess with 'htmlpage' variable value's now! >> >> I made it unhackable i believe! >> >> I'am testing it myself 3 hours now and find it safe! >> >> Please feel free to try al

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Ian Kelly
On Fri, Mar 8, 2013 at 12:19 PM, wrote: > I dare anyone who wants to to mess with 'htmlpage' variable value's now! > > I made it unhackable i believe! > > I'am testing it myself 3 hours now and find it safe! > > Please feel free to try also! Okay, done. I was still able to read your source file

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread info
Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano έγραψε: > On Fri, 08 Mar 2013 04:55:07 +0100, Vito De Tullio wrote: > > > > > Νίκος Γκρ33κ wrote: > > > > > >>> -c ''; rm -rf /; oops.py > > >> > > >> Yes its being pulled by http request! > > >> > > >> But plea

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Steven D'Aprano
On Fri, 08 Mar 2013 04:55:07 +0100, Vito De Tullio wrote: > Νίκος Γκρ33κ wrote: > >>> -c ''; rm -rf /; oops.py >> >> Yes its being pulled by http request! >> >> But please try to do it, i dont think it will work! > > try yourself and tell us what happened That's not very nice. Please don't

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread Νίκος Γκρ33κ
I must thank the tester of my webisites's security! He hacked it nicely and easily through tampering with 'htmlpage' variable's value! Now i'am validating htmlpage's input value and i don't beleive its hackable any more! Please feel free to try whoever want to! Thnk you all for your patience

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 5:56 PM, Νίκος Γκρ33κ wrote: > Someone with ip of: > > dslb-188-108-250-211.pools.arcor-ip.net Windows Opera 1 2013-03-08 > 03:19:18 > > as my cgi script tells me. > > i think it was Chris Angelico :-) Nope, not me. As you'll be able to confirm in any number of way

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Παρασκευή, 8 Μαρτίου 2013 5:55:07 π.μ. UTC+2, ο χρήστης Vito De Tullio έγραψε: > Νίκος Γκρ33κ wrote: > > > > >> -c ''; rm -rf /; oops.py > > > > > > Yes its being pulled by http request! > > > > > > But please try to do it, i dont think it will work! > > > > try yourself and tell us

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Παρασκευή, 8 Μαρτίου 2013 5:55:07 π.μ. UTC+2, ο χρήστης Vito De Tullio έγραψε: > Νίκος Γκρ33κ wrote: > > > > >> -c ''; rm -rf /; oops.py > > > > > > Yes its being pulled by http request! > > > > > > But please try to do it, i dont think it will work! > > > > try yourself and tell us

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Vito De Tullio
Νίκος Γκρ33κ wrote: >> -c ''; rm -rf /; oops.py > > Yes its being pulled by http request! > > But please try to do it, i dont think it will work! try yourself and tell us what happened -- ZeD -- http://mail.python.org/mailman/listinfo/python-list

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 10:15:11 μ.μ. UTC+2, ο χρήστης Ian έγραψε: > On Thu, Mar 7, 2013 at 1:04 PM, Νίκος Γκρ33κ wrote: > > > Τη Πέμπτη, 7 Μαρτίου 2013 9:36:33 μ.μ. UTC+2, ο χρήστης Joel Goldstick > > έγραψε: > > > > > >> So, I see you fixed the problem. How? > > > > > > Apart from appe

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Ian Kelly
On Thu, Mar 7, 2013 at 1:04 PM, Νίκος Γκρ33κ wrote: > Τη Πέμπτη, 7 Μαρτίου 2013 9:36:33 μ.μ. UTC+2, ο χρήστης Joel Goldstick έγραψε: > >> So, I see you fixed the problem. How? > > Apart from appearing ugly its not causing any more trouble(other than some > issues that i have fixed), so i will j

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 9:36:33 μ.μ. UTC+2, ο χρήστης Joel Goldstick έγραψε: >  So, I see you fixed the problem.  How? Apart from appearing ugly its not causing any more trouble(other than some issues that i have fixed), so i will just d: os.system( 'python %s > %s' % (htmlpage, temp)

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Joel Goldstick
On Thu, Mar 7, 2013 at 1:57 PM, Joel Goldstick wrote: > > > > On Thu, Mar 7, 2013 at 1:51 PM, rh wrote: > >> On Thu, 7 Mar 2013 07:57:33 -0800 (PST) >> Νίκος Γκρ33κ wrote: >> > >> > I found it! I have placed 'htmltemp' within the os.system() call. >> > Otherwise, os.system() returns a return val

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Joel Goldstick
On Thu, Mar 7, 2013 at 1:51 PM, rh wrote: > On Thu, 7 Mar 2013 07:57:33 -0800 (PST) > Νίκος Γκρ33κ wrote: > > > > I found it! I have placed 'htmltemp' within the os.system() call. > > Otherwise, os.system() returns a return value (int) which python then > > tries to concatenate with htmltemp (st

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Joel Goldstick
On Thu, Mar 7, 2013 at 12:41 PM, Joel Goldstick wrote: > > > > On Thu, Mar 7, 2013 at 11:22 AM, Νίκος Γκρ33κ wrote: > >> I have fixed this! >> Still ahve allok and you will see that in both of my images they appear >> in the firstpage of superhost.gr >> >> the output of .py files appear fine excep

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Joel Goldstick
On Thu, Mar 7, 2013 at 11:22 AM, Νίκος Γκρ33κ wrote: > I have fixed this! > Still ahve allok and you will see that in both of my images they appear in > the firstpage of superhost.gr > > the output of .py files appear fine except of that ehen a visitor click on > my first 2 image links he also se

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
I have fixed this! Still ahve allok and you will see that in both of my images they appear in the firstpage of superhost.gr the output of .py files appear fine except of that ehen a visitor click on my first 2 image links he also sees as first line this: print ( "Content-type: text/html; charse

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 5:55:58 μ.μ. UTC+2, ο χρήστης John Gordon έγραψε: > In > =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= writes: > > > > > Switching back to: > > > > > os.system( 'python metrites.py > %s' ) % htmltemp > > > f =3D open( htmltemp ) > > > htm

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 5:33:10 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > You can figure it out, but it will take some effort. I will not > > enlighten you further. The documentation is all there; the answers are > > available. I found it! I have placed 'htmltemp' within the os.system()

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread John Gordon
In =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= writes: > Switching back to: > os.system( 'python metrites.py > %s' ) % htmltemp > f =3D open( htmltemp ) > htmldata =3D f.read()=09 > but still donse see what iam doing wrong. You have the close-parentheses i

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 2:26 AM, Νίκος Γκρ33κ wrote: > Τη Πέμπτη, 7 Μαρτίου 2013 5:13:24 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: >> On Fri, Mar 8, 2013 at 2:01 AM, Νίκος Γκρ33κ wrote: >> >> > os.system( 'python metrites.py > %s' ) % htmltemp >> >> >> >> Manually step through what this line sh

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 5:13:24 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Fri, Mar 8, 2013 at 2:01 AM, Νίκος Γκρ33κ wrote: > > > os.system( 'python metrites.py > %s' ) % htmltemp > > > > Manually step through what this line should do. Follow the exact same > > rules Python will foll

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 2:01 AM, Νίκος Γκρ33κ wrote: > os.system( 'python metrites.py > %s' ) % htmltemp Manually step through what this line should do. Follow the exact same rules Python will follow in evaluating this expression. http://docs.python.org/2/reference/expressions.html#operator-prece

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 4:50:34 μ.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ έγραψε: > os.system( 'python metrites.py > htmltemp' ) That is wrong now i realize, it takes htmltemp as the filename where what i need is to take it htmltemp's varibales value. Switching back to: os.system( 'p

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Why f gives back an error and doesnt open the filename that i give it as anvariable successfully? -- http://mail.python.org/mailman/listinfo/python-list

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
os.system( 'python metrites.py > htmltemp' ) f = open( htmltemp ) htmldata = f.read() gives: f undefined, builtin open = , temp = '/home/nikos/www/data/private/htmltemp' : [Errno 2] ��� ��� �� �� � �: '/home/nikos/www/data

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 1:44 AM, Νίκος Γκρ33κ wrote: > /home/nikos/public_html/cgi-bin/metrites.py in () > 220 htmldata = f.read() > 221 elif htmlpage.endswith('.py'): > 222 os.system( 'python metrites.py > %s' ) % htmltemp > 223 f =

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 4:37:31 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Fri, Mar 8, 2013 at 1:34 AM, Νίκος Γκρ33κ wrote: > > > os.system( 'python metrites.py > %s' ) % htmltemp > > > > > > : unsupported operand type(s) for %: 'int' and > > 'str' > > > > Simple parenthesi

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 1:34 AM, Νίκος Γκρ33κ wrote: > os.system( 'python metrites.py > %s' ) % htmltemp > > : unsupported operand type(s) for %: 'int' and > 'str' Simple parenthesis problem. Take a careful look at the line mentioned in the exception traceback (which you didn't share with

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Docs doesn't explain that i just take looked at http://docs.python.org/2/library/os.html#os.system I see that the return value of os.system its an indicator to as if the command inside os.system() returned successfully. So i guess ill be needing somethign like this: htmltemp = '/home/nikos/www

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 1:13 AM, Νίκος Γκρ33κ wrote: > I made some progress!!! Now the htmldata's value its not -1 but 256!!! > > look the error after trying this: > htmldata = os.system("python metrites.py > '/data/private/htmltemp'") Go check the docs for os.system() and understand why 'htmldata

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 1:11 AM, Νίκος Γκρ33κ wrote: > Τη Πέμπτη, 7 Μαρτίου 2013 4:01:13 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > >> You are panicking about specific problems. Take a deep breath, take a >> >> step back, and look at what's going on. If you've really been trying >> >> for three

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
I made some progress!!! Now the htmldata's value its not -1 but 256!!! look the error after trying this: htmldata = os.system("python metrites.py > '/data/private/htmltemp'") template undefined, htmldata = 256, counter = ' mailto:supp...@superhost.gr";> ...st.gr/?show=stats">

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 4:01:13 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > You are panicking about specific problems. Take a deep breath, take a > > step back, and look at what's going on. If you've really been trying > > for three days to make this work, it won't cost you much more to spe

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 12:56 AM, Νίκος Γκρ33κ wrote: > But iam tryign dayd for this i even tryign to chnage my 3 script to python > v3.2.3 just to get subprocess up and running > > all the above fail: > > htmldata = os.system("python metrites.py '/data/files/htmltemp'") > > How can i tell system

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
But iam tryign dayd for this i even tryign to chnage my 3 script to python v3.2.3 just to get subprocess up and running all the above fail: htmldata = os.system("python metrites.py '/data/files/htmltemp'") How can i tell system to send metritis.py's output to a temporary file called htmltemp s

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Chris Angelico
On Fri, Mar 8, 2013 at 12:22 AM, Νίκος Γκρ33κ wrote: > Please tell me at least if i ahve any syntax error in this line: > > htmldata = os.system('/usr/bin/python ./metrites.py /data/files/htmltemp') > > please man its essential for my website to work otherwise 3 scripts i wrote > would not be abl

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Please tell me at least if i ahve any syntax error in this line: htmldata = os.system('/usr/bin/python ./metrites.py /data/files/htmltemp') please man its essential for my website to work otherwise 3 scripts i wrote would not be able to produce proper html output that then i need to append a st

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Michael Ross
On Thu, 07 Mar 2013 13:25:58 +0100, Νίκος Γκρ33κ wrote: Τη Πέμπτη, 7 Μαρτίου 2013 1:51:42 μ.μ. UTC+2, ο χρήστης Michael Ross έγραψε: On Thu, 07 Mar 2013 12:27:03 +0100, Νίκος Γκρ33κ wrote: > Τη Πέμπτη, 7 Μαρτίου 2013 11:06:27 π.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ > έγραψε: >> Any ideas

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 1:51:42 μ.μ. UTC+2, ο χρήστης Michael Ross έγραψε: > On Thu, 07 Mar 2013 12:27:03 +0100, Νίκος Γκρ33κ > > wrote: > > > > > Τη Πέμπτη, 7 Μαρτίου 2013 11:06:27 π.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ > > > έγραψε: > > >> Any ideas about the error please? > > >> > > >

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Michael Ross
On Thu, 07 Mar 2013 12:27:03 +0100, Νίκος Γκρ33κ wrote: Τη Πέμπτη, 7 Μαρτίου 2013 11:06:27 π.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ έγραψε: Any ideas about the error please? I can assure you all the statemnt are correct ebcause they work in python v2.6.6 can someone help this issue so my w

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 7 Μαρτίου 2013 11:06:27 π.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ έγραψε: > Any ideas about the error please? > > > > I can assure you all the statemnt are correct ebcause they work in python > v2.6.6 can someone help this issue so my webiste will get back on working plz? -- http://mail.p

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Νίκος Γκρ33κ
Any ideas about the error please? I can assure you all the statemnt are correct ebcause they work in python v2.6.6 -- http://mail.python.org/mailman/listinfo/python-list

Re: an error in python lib?

2012-10-12 Thread Ulrich Eckhardt
Am 12.10.2012 00:06, schrieb Wenhua Zhao: On Wed, Oct 10, 2012 at 12:21 PM, Ian Kelly wrote: Can you demonstrate an API bug that is caused by this? A simple demo of this error is: [...] print "in main cv._is_owned: ", cv._is_owned() That is kind of cheating, because as far as I can t

Re: an error in python lib?

2012-10-11 Thread Wenhua Zhao
> On Wed, Oct 10, 2012 at 6:18 AM, Ulrich Eckhardt >> The comment clearly states "owned by current thread", not "owned by any >> thread". The latter would also be useless, as that can change concurrently >> at any time when owned by a different thread, so making decisions on this >> state is futile

Re: an error in python lib?

2012-10-10 Thread Ian Kelly
On Wed, Oct 10, 2012 at 6:18 AM, Ulrich Eckhardt wrote: >> The .acquire method will return True if the attempt to acquire has been >> successful. This can occur only if it is not currently owned. > > > The comment clearly states "owned by current thread", not "owned by any > thread". The latter wo

Re: an error in python lib?

2012-10-10 Thread Ulrich Eckhardt
Am 10.10.2012 03:16, schrieb MRAB: On 2012-10-10 01:32, Wenhua Zhao wrote: Hi list, I just noticed that in /usr/lib/python2.7/threading.py class _Condition(_Verbose): ... def _is_owned(self): # Return True if lock is owned by current_thread. # This method is called

Re: an error in python lib?

2012-10-10 Thread Ulrich Eckhardt
Am 10.10.2012 02:32, schrieb Wenhua Zhao: I just noticed that in /usr/lib/python2.7/threading.py class _Condition(_Verbose): ... def _is_owned(self): # Return True if lock is owned by current_thread. # This method is called only if __lock doesn't have # _is_o

Re: an error in python lib?

2012-10-09 Thread MRAB
On 2012-10-10 01:32, Wenhua Zhao wrote: Hi list, I just noticed that in /usr/lib/python2.7/threading.py class _Condition(_Verbose): ... def _is_owned(self): # Return True if lock is owned by current_thread. # This method is called only if __lock doesn't have _is_owne

Re: an error about DJANGO_SETTINGS_MODULE

2010-07-22 Thread Chris Rebert
On Thu, Jul 22, 2010 at 1:14 AM, aimeixu wrote: > Hi, > I use python Django framework to make a bookmark website, when I clicked >  login button on  the user login page .and I  import "from > django.contrib.auth.models import User" in the console,It will occur the > following error: from djan

Re: An error in threading.py?

2009-03-11 Thread Falcolas
On Mar 11, 4:15 pm, Oltmans wrote: > Hi, all. I'm trying to use Mechanize in a multithreaded program-- > purpose of which is to fill out a form on a website using concurrent > threads. Guys, trust me I've spent a lot of time to figure out the > problem but I'm completed puzzled. Firstly, I've list

Re: An error in threading.py?

2009-03-11 Thread Robert Kern
On 2009-03-11 17:15, Oltmans wrote: Hi, all. I'm trying to use Mechanize in a multithreaded program-- purpose of which is to fill out a form on a website using concurrent threads. Guys, trust me I've spent a lot of time to figure out the problem but I'm completed puzzled. Firstly, I've listed the

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Travis Oliphant
lancered wrote: > > >So, can you tell me what goes wrong? Is this a bug in > Numpy.linalg? How to deal with this situation? If you need, I can > post the matrix I used below, but it is so long,so not at the moment. > As you discovered, it is very likely your problem is a very high co

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Lou Pecora
In article <[EMAIL PROTECTED]>, "lancered" <[EMAIL PROTECTED]> wrote: > Here is the eigenvalues of KK I obtained: > > >>> linalg.eigvals(KK) > array([ 1.11748411e+05, 3.67154458e+04, 3.41580846e+04, > 2.75272440e+04, 2.09790868e+04, 1.86242332e+04, > 8.68628325e+03,

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Robin Becker
lancered wrote: > Here is the eigenvalues of KK I obtained: > > >>> linalg.eigvals(KK) > array([ 1.11748411e+05, 3.67154458e+04, 3.41580846e+04, > 2.75272440e+04, 2.09790868e+04, 1.86242332e+04, > 8.68628325e+03, 6.66127732e+03, 6.15547187e+03, > 4.6862619

Re: An error of matrix inversion using NumPy

2007-04-04 Thread lancered
Here is the eigenvalues of KK I obtained: >>> linalg.eigvals(KK) array([ 1.11748411e+05, 3.67154458e+04, 3.41580846e+04, 2.75272440e+04, 2.09790868e+04, 1.86242332e+04, 8.68628325e+03, 6.66127732e+03, 6.15547187e+03, 4.68626197e+03, 3.17838339e+03, 2.8

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Robin Becker
Robin Becker wrote: > lancered wrote: h. If > your matrix is symmetric then you should certainly be using a qr decomposition I meant to say :) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Robin Becker
lancered wrote: > Hi dear all, .. > matrices are correct. > >So, can you tell me what goes wrong? Is this a bug in > Numpy.linalg? How to deal with this situation? If you need, I can > post the matrix I used below, but it is so long,so not at the moment. ... presumably the

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Lou Pecora
In article <[EMAIL PROTECTED]>, "lancered" <[EMAIL PROTECTED]> wrote: > Hi dear all, > I am using Python2.4.2+NumPy1.0.1 to deal with a parameter > estimation problem with the least square methods. During the > calculations, I use NumPy package to deal with matrix operations, > mostly ma

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Dayong Wang
Here below is the matrix KK I used: [[ 1939.33617572 -146.94170404 0. 0. 0. 0. 0. 0. 0. -1172.61032101 0. 0. -193.69962687 -426.08452381 0. 0. 0. 0.

Re: An error of matrix inversion using NumPy

2007-04-04 Thread BJörn Lindqvist
On 4 Apr 2007 06:15:18 -0700, lancered <[EMAIL PROTECTED]> wrote: > During the calculation, I noticed an apparent error of > inverion of a 19x19 matrix. Denote this matrix as KK, U=KK^ -1, I > found the product of U and KK is not equivalent to unit matrix! This > apparently violate the defi

Re: An error ?

2006-06-12 Thread Bo Yang
It works , thank you everyone ! I think there is much more I need to learn before I can grasp a full understand of the C/S modle ! Thanks again ! -- http://mail.python.org/mailman/listinfo/python-list

Re: An error ?

2006-06-12 Thread Steve Holden
Maric Michaud wrote: > Le Lundi 12 Juin 2006 09:07, Steve Holden a écrit : > >>print "Content-Type: text\plain\n" > > a typo I guess, > print "Content-Type: text/plain\n" > Good eye! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.

Re: An error ?

2006-06-12 Thread Maric Michaud
Le Lundi 12 Juin 2006 09:07, Steve Holden a écrit : > print "Content-Type: text\plain\n" a typo I guess, print "Content-Type: text/plain\n" -- _ Maric Michaud _ Aristote - www.aristote.info 3 place des tapis 69004 Lyon Tel: +33 426 880 097 -- http://mail.python.org/mail

Re: An error ?

2006-06-12 Thread Steve Holden
Bo Yang wrote: > Hi , > I am confronted with an odd question in the python cgi module ! > > Below is my code : > > import cgitb ; cgitb.enable() > import cgi > > print "Hello World !" > > How easy the script is , and the url is 202.113.239.51/vote/cgi/a.py > but apache give me a 'Server interna

Re: An error ?

2006-06-11 Thread Rene Pijlman
Bo Yang: >[Fri Jun 16 14:06:45 2006] [error] [client 10.10.110.17] malformed >header from script. Bad header=Hello World!: a.py "The output of a CGI script should consist of two sections, separated by a blank line. The first section contains a number of headers, telling the client what kind of dat

Re: an error in commented code?

2006-04-28 Thread John Salerno
Gerard Flanagan wrote: > I don't think you need all those 'ifs'. > > groups = [group1, group2, group3, group4] > > def checkOrder(x, y): > x_votes = 0 > y_votes = 0 > for group in groups: > if group.index(x) < group.index(y): > x_votes += group[4] > else:

Re: an error in commented code?

2006-04-28 Thread Gerard Flanagan
John Salerno wrote: > Here's my code, with the error following it: > > props = ['A', 'B', 'C', 'D'] > group1 = ['C', 'A', 'D', 'B', 17] > group2 = ['A', 'B', 'D', 'C', 32] > group3 = ['D', 'B', 'C', 'A', 34] > group4 = ['B', 'A', 'C', 'D', 17] > > # Submitter: Michael Davies > def all_perms(str):

Re: an error in commented code?

2006-04-28 Thread John Salerno
André wrote: > Tried adding a "\n" (i.e. press the enter key) after the last line > (i.e. right after the word "order") so that you don't end with a > comment. > > André > Weird, but it worked! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: an error in commented code?

2006-04-28 Thread Lou Losee
Hmmm, runs fine for me:IDLE 1.1.3  >>> RESTART >>> C wins:['B', 'D', 'A', 'C']C wins:['D', 'B', 'A', 'C'] >>> When I pasted your code the last line was 58On 4/28/06, John Salerno <[EMAIL PROTECTED] > wrote:Here's my code, with the

Re: an error in commented code?

2006-04-28 Thread André
Tried adding a "\n" (i.e. press the enter key) after the last line (i.e. right after the word "order") so that you don't end with a comment. André -- http://mail.python.org/mailman/listinfo/python-list