Python Importing External Libraries

New releases and general discussions.

Post » Fri Sep 04, 2009 9:15 pm

I'm trying to figure out how to make use of external Python libraries. Anyone with experience??

I first implemented a simple "hello world" program to see if python works. It does: http://www.box.net/shared/uurz5hf5b8

Then I tried a simple example using a math import. That worked as well.

Then I tried to get a simple AI chat python program working (which works fine if I run it externally in Python 2.5 or Python 2.6. I don't get anything to return and its nearly impossible to troubleshoot.

Here is the .cap that isn't working: http://www.box.net/shared/pt45f74qze

I'm using the PyAIML module: http://www.box.net/shared/ts3nco3146

The Python code is very simple:
import aiml
k = aiml.Kernel()
print k

Of course, I am not using print k, but am instead printing via a text box. This should print out an AIML kernel object handle. This works fine with my normal Python install.

Any ideas on how to get this to work? Is this a path problem? Does Construct support importing external libraries?
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests