Page 1 of 1

Help with Python & NHigh

Posted: 2012.01.08 (19:54)
by Paradox
I post here because more of the highscoring stuff happens here

Okay, so this is going to be a very noobish post

So, i downloaded Python 3.2.2

I downloaded NHigh & NHigh beta

& i can't get it to work, here is what i have

How can i fix it?

Then...

Image

Everything i open instantly closes again except python & just open in a window like...

Image

That is the only one that will stay open & all the others look like...

Image

Re: Help with Python & NHigh

Posted: 2012.01.08 (20:26)
by EddyMataGallos
NHigh works with Python 2.x, so you need 2.7.2.
This is because in 2009 they released Python 3, which included a great amount of changes because they completely recoded the language, so they're not compatible, they're two diferent languages which they're still developing at the same time on diferent ways.

Re: Help with Python & NHigh

Posted: 2012.01.09 (03:50)
by eru_bahagon
That comma at line 181 is an old syntax. You can replace it by " as ". (the blanks are spaces)

Code: Select all

except httplib.HTTPException as e:
However, I am not sure it will solve the problem, since I don't use python 3.xx. If it doesn't, please use python 2.xx. (cd Eddy's post)

If it solves the problem, there are similar lines (except ERROR,e) in nhigh.py, so just replace the comma by " as " for each error it will give you (it only gives the 1st error it finds).


Also, if don't want python to open a console each time, you can replace nhigh.py by nhigh.pyw. (add a 'w' to the extension)
I'll also do it next time. I kind of forgot before releasing it since I'm running it from a console anyway but it might disturbing for you.

Re: Help with Python & NHigh

Posted: 2012.01.09 (04:36)
by TheRealOne
eru_bahagon wrote: Also, if don't want python to open a console each time, you can replace nhigh.py by nhigh.pyw. (add a 'w' to the extension)
I'll also do it next time. I kind of forgot before releasing it since I'm running it from a console anyway but it might disturbing for you.
Ah! Thanks for that. I always wondered by the console popped up when running the program because it didn't in JG's version.