Page 1 of 1

Additional python libraries not loading in modul8

Posted: Tue Jan 17, 2012 6:34 pm
by jfeferman
I am trying to experiment building a modul8 python module using the Snack python library. I've installed Snack, appended the module to classpath and can verify that it is available and working on a local script.

However, when importing the library in a modul8 python module using:

import tkSnack

I get an error saying "ImportError: No module named tkSnack"

Is there something I'm missing? Why would the library work on a script outside of modul8 but not in modul8?

Any help appreciated.

Thanks.

Re: Additional python libraries not loading in modul8

Posted: Wed Jan 18, 2012 1:29 am
by sigmasix
to avoid compatibility problems and security issues, modul8 can only access internal python libraries

Re: Additional python libraries not loading in modul8

Posted: Fri Jan 20, 2012 1:12 am
by The Midi Thief
Nah, if nothing changed in Modul8 2.6.4 you should be able to load libraries. It's just that Modul8 is using Python 2.3 so you need to put your library in the Python 2.3 path and hope that it is compatible (or fix it if you know how).

Re: Additional python libraries not loading in modul8

Posted: Fri Jan 20, 2012 12:33 pm
by sigmasix
bouh :( I alwas thought it couldn't… I actually never managed to, but maybe it's because of the python version…
thanks midi thief