Python Example Linux

58 views
Skip to first unread message

Spyridon Samothrakis

unread,
Jun 19, 2016, 11:21:53 AM6/19/16
to Text Adventure AI Competition
Hello,

I've tried running the python example in Linux (ubuntu 14.04) and all I
get is this output

$ python ZpletIOAgent.py
Booting Z Machine...
Location = 0 0
Parent = null

There is no further input - is this expected behaviour? Also I can see
that a java process is created and running, but nothing happens (in
fact, I don't think startZplet ever returns - code won't exit even if I
call "exit"). The process created is :

java -jar ../Example Project/lib3rd/ieee-cig-advent-1.4.jar
ieeecig.advent.IOAgent ../resources/monkey-and-bananas-v1.z8


Are there specific versions of java/python/shells etc that I need to use?

Thanks,
Spyros


Hyunsoo Park

unread,
Jun 20, 2016, 5:00:29 AM6/20/16
to Text Adventure AI Competition
Try python 3.4 or 3.5.
Originally It's not working with 2.7

2016년 6월 20일 월요일 오전 12시 21분 53초 UTC+9, Spyridon Samothrakis 님의 말:

Spyridon Samothrakis

unread,
Jun 20, 2016, 6:45:49 AM6/20/16
to Text Adventure AI Competition
Thanks Hyunsoo - it works fine with 3.4!

@Organisers - is this something that you plan on addressing or should I assume that 3.4 is the default version we should be using for this?

Thanks,
Spyros
--
You received this message because you are subscribed to the Google Groups "Text Adventure AI Competition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to text-adventure-ai-co...@googlegroups.com.
To post to this group, send email to text-adventure...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/text-adventure-ai-competition/d0e6b22a-bf9a-405e-8e88-c394e60a9ccc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim Atkinson

unread,
Jun 20, 2016, 6:50:58 AM6/20/16
to Text Adventure AI Competition
Hi Spyros,

Thanks to Hyunsoo for clarifying this. Currently we are supporting Python 3.4/3.5 (I need to update the Git accordingly!), we may look to support 2.7 etc. but that implementation is more to demonstrate how to generally interact with the IOAgent.java from some other language than it is a Python implementation in its own right.

Kind regards,

Tim
To unsubscribe from this group and stop receiving emails from it, send an email to text-adventure-ai-competition+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages