From: Alex G. <ale...@ne...> - 2010-02-24 22:42:09
|
24.2.2010 23:14, Kai Hackemesser kirjoitti: > Ok, more details here: > > I'm developing a Maven plugin to call the robot framework jybot as a > goal. (Robot framework see here: http://robotframework.googlecode.com) > My project adds the jython.jar (now standalone) as a dependency. I > have created another jar that holds the robot framework module + the > selenium library module and I call jython.run with the "-jar" arg > pointing to the module. the __run__ class successfully finds the robot > module and starts to process it. Then while initialisation this happens: > > Traceback (most recent call last): > File "__run__", line 308, in <module> > File "__pyclasspath__/robot/__init__.py", line 24, in <module> > File "__pyclasspath__/robot/output/__init__$py.class", line 16, in > <module> > File "__pyclasspath__/robot/output/output$py.class", line 18, in > <module> > File "__pyclasspath__/robot/common/__init__$py.class", line 16, in > <module> > File "__pyclasspath__/robot/common/model$py.class", line 16, in <module> > ImportError: No module named random > > Before I switched to the standalone jar, it already failed to find the > os module. See if other stdlib modules can be imported. This problem is beyond me. Also, please reply to the mailing list, not to me personally. > > If you need more details, please ask. > > Cheers, > Kai > > > 2010/2/25 Alex Grönholm <ale...@ne... > <mailto:ale...@ne...>> > > 24.2.2010 22:45, Kai Hackemesser kirjoitti: >> I tried that, and it helped. With the standalone jar it processes >> the os import, but it still has import issues: >> >> ImportError: No module named random >> >> What is missing now and why? > Since I know nothing of your deployment environment, I'll just > have to guess. Try importing other modules and see if other parts > of the standard library are importable. And tell us more about how > you're using Jython in this environment. > >> >> >> 2010/2/24 Alex Grönholm <ale...@ne... >> <mailto:ale...@ne...>> >> >> 24.2.2010 7:02, Kai Hackemesser kirjoitti: >> >> Just choose the standalone install from the installer and >> you'll get a jar file that has the standard library included. >> >> |