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:

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:

I'm using the PyAIML module:

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?
Posts: 835
Reputation: 5,313

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests