Numpy

For questions about using Classic.

Post » Thu Nov 04, 2010 10:44 pm

Hello! I'm just wondering how to use numpy in Construct. I know I have to put some files into the data\python folder, but I'm not sure what's needed. Thanks. :D
B
2
G
2
Posts: 48
Reputation: 746

Post » Fri Nov 05, 2010 1:20 am

This should do the trick (just tweak for Numpy):
viewtopic.php?f=8&t=5920
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Sat Nov 06, 2010 3:30 am

Unfortunately the aiml example isn't working for me. Also, my computer is having issues making the executables. Anyway, what should I place in "test.py" for numpy?
B
2
G
2
Posts: 48
Reputation: 746

Post » Sat Nov 06, 2010 10:11 am

Out of curiosity, what are you using numpy for?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Nov 06, 2010 11:40 am

[quote="RomanCenturion":b76o3k1b]Unfortunately the aiml example isn't working for me. Also, my computer is having issues making the executables.[/quote:b76o3k1b]
If the AIML example isn't working then you should probably solve that first before moving to something more complicated like numPy. Any specifics on what isn't working?
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Sun Nov 07, 2010 2:01 am

[quote:zpehgrok]
Out of curiosity, what are you using numpy for?
[/quote:zpehgrok]
I didn't have a definite reason for using it. However, I was thinking of using matrices and matrix multiplication.
[quote:zpehgrok]
Any specifics on what isn't working?
[/quote:zpehgrok]
When i build the new executable, it doesn't work. I don't know if this is a reason why, but on the command line it says that the email.Generator and email.Iterators modules are missing once it has completed building it(py2exe). Doesn't say anything is wrong with cxfreeze, but that doesn't work either. I get this warning message, "WARNING: No match found for input: load aiml b" for both processes. I went through the rest of the tutorial and it didn't work in construct either. By the way, thanks for your help.
B
2
G
2
Posts: 48
Reputation: 746

Post » Sun Nov 07, 2010 2:55 am

[quote="RomanCenturion":1pn9kfeb]I get this warning message, "WARNING: No match found for input: load aiml b" for both processes[/quote:1pn9kfeb]
The solution to this error is to make sure you have the actual AIML libraries in the same directory as the .cap file. It will be a directory that holds all of the aiml definitions. If you don't already have the libraries you can download them through a link in the tutorial.

As far as the email.Generators and iterators error.. not sure haven't run into it before. Try the above solutions and let me know if it helps with the "load aiml b " error. At least then will be able to focus on the other error!
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Mon Nov 08, 2010 11:46 pm

I finally got it to work using what you said. :D It's kind of annoying having to have place the libraries in with the .cap though. The email.Generators errors aren't stopping it from working so I guess those aren't important. I think I'll attempt to get numpy in, but I'll probably need help. Thanks a lot for all your help!

Edit: I have no idea where to start. I downloaded a .zip file and I'm not sure what to do after that. There's a lot of files.
Edit 2: I just put import numpy into the test.py. Will this work? It made a library.
B
2
G
2
Posts: 48
Reputation: 746


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest