kripken / intensityengine

[Not active!] An open source platform for 3D games and virtual worlds
https://web.archive.org/web/20100222011320/http://www.syntensity.com/
Other
58 stars 15 forks source link

Error when freeing instance, addinfourl instance has no attribute 'getcode' #22

Closed ghost closed 14 years ago

ghost commented 14 years ago

I have my own master server running. When I free an instance, I get the error:

addinfourl instance has no attribute 'getcode'

This is due to the fact that I'm running python 2.5.2 (current python package available in Debian 5.0 repositories). It looks like getcode() wasn't added until python 2.6.2. It's not in 2.5.4 either.

My solution is to compile 2.6.5 for my debian box, just to have the latest version of python (<3.0). However, since 2.5 is noted throughout the documentation as the supported version of python, I think it may be a good idea to address this.

On a related note, it was a bit frustrating trying to troubleshoot this since server requisitioning doesn't work in non-production mode. I looked into it a bit after the fact to find that it's just an assertion for the sake of preventing accidental debug mode in production. It does sound like a good safety measure, but it's problematic if you're debugging stuff related to server requisitioning. I propose that this is something that's modifiable in the config with a warning in the config and a warning printed to console when production and debug mode are mixed.

kripken commented 14 years ago

Added documentation about 2.6.x being required.

I prefer the current debugging safeguard, but maybe I don't fully understand what you are suggesting instead. If you have something concrete in mind feel free to submit a patch.