On Wed, Jun 18, 2008 at 10:04 PM, Ryan Neufeld <[EMAIL PROTECTED]> wrote: > Mithro, or anyone who can help: > > I wanted to start playing around with tpsai-py to test my ruleset.
Perhaps not a really good idea, I think the AI is built for MiniSec. Not sure how easy it would be to suit it to Risk. > When mithro mentioned tpsai-py to me he said "You will have to use the > older version of libtpclient-py." I'm wondering what specific version > he/you mean? libtpclient-py 0.2.x I think. > I tried running ./tpsai.py anyways, with the new libtpclient, and came > back with this error: >> JumperOne::jaffer(_tpsai-py)-> ./tpsai-py >> Traceback (most recent call last): >> File "./tpsai-py", line 6, in <module> >> from tp.client.cache import Cache >> File "/Users/jaffer/Dev/TP/_tpsai-py/tp/client/cache.py", line 39, >> in <module> >> from threads import Event >> File "/Users/jaffer/Dev/TP/_tpsai-py/tp/client/threads.py", line >> 39, in <module> >> from cache import Cache >> ImportError: cannot import name Cache > Is this the reason I have to use the old libtpclient? No. It's a bug in the new library version, see http://www.thousandparsec.net/wiki/Libtpclient_Help#Caveats but there is more to it than that. The new version uses different ways to add orders and use the cache. Porting it to the new version would not be trivial, in my opinion. I tried my hand at it a few weeks ago but I didn't really get far. Might have been because I didn't know a lot about libtpclient-py back then. > Or is it simply a deficiency in my Python environment? Impossible. :) _______________________________________________ tp-devel mailing list [email protected] http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel
