From: blaaaa <bab...@gm...> - 2011-11-14 15:54:51
|
I have the following line in a java file that doesn't seem to work. interp.exec("import inspect"); I get ImportError: no module named inspect. It seems like the inspect module has been made compatible with Jython so what should I do to get it to work? Thanks in advance! -- View this message in context: http://old.nabble.com/ImportError%3A-no-module-named-inspect-tp32818619p32818619.html Sent from the jython-users mailing list archive at Nabble.com. |
From: Alan K. <jyt...@xh...> - 2011-11-14 20:06:16
|
[blaaaa] > I have the following line in a java file that doesn't seem to work. > > interp.exec("import inspect"); > > I get ImportError: no module named inspect. Do you have the jython.jar in your classpath? Have you specified a value for python.home system property on interpreter startup? http://wiki.python.org/jython/JythonFaq/EmbeddingJython#My_modules_can_not_be_found_when_imported_from_an_embedded_application Alan. |
From: Pierre T. <pie...@gm...> - 2011-11-15 01:54:27
|
2011/11/14 blaaaa <bab...@gm...> > > > I have the following line in a java file that doesn't seem to work. > > interp.exec("import inspect"); > > I get ImportError: no module named inspect. > > It seems like the inspect module has been made compatible with Jython so > what should I do to get it to work? > > Thanks in advance! > It works well on my Jython console. OpenSuse 11.4, AMD64, Jython 2.5.2. Pierre Thibault Python Developer/Développeur Python Montréal, QC *pie...@gm...* |
From: blaaaa <bab...@gm...> - 2011-11-15 10:38:34
|
I'm writing an eclipse plugin and I'm testing it in a second session of eclipse. I have the jython.jar in my classpath, and I have added the python.path property .. It still doesn't work... Pierre Thibault-3 wrote: > > 2011/11/14 blaaaa <bab...@gm...> > >> >> >> I have the following line in a java file that doesn't seem to work. >> >> interp.exec("import inspect"); >> >> I get ImportError: no module named inspect. >> >> It seems like the inspect module has been made compatible with Jython so >> what should I do to get it to work? >> >> Thanks in advance! >> > > It works well on my Jython console. OpenSuse 11.4, AMD64, Jython 2.5.2. > > Pierre Thibault > > Python Developer/Développeur Python > Montréal, QC > *pie...@gm...* > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > -- View this message in context: http://old.nabble.com/ImportError%3A-no-module-named-inspect-tp32818619p32846741.html Sent from the jython-users mailing list archive at Nabble.com. |