From: Chris C. <Chr...@in...> - 2011-07-06 19:27:15
|
Quanah Gibson-Mount wrote: > --On Wednesday, July 06, 2011 9:33 PM +0300 Alex Grönholm > <ale...@ne...> wrote: > > >> 06.07.2011 20:37, Quanah Gibson-Mount kirjoitti: >> >>> --On Wednesday, July 06, 2011 10:05 AM -0700 Quanah Gibson-Mount >>> <qu...@zi...> wrote: >>> >>> >>>> When I am on their system and import os, there are relatively few >>>> functions available. Is this a known bug with jython? Are there >>>> additional pieces that need importing to get jython to work in a KVM >>>> VM? >>>> >> This has nothing whatsoever to do with the KVM environment. This is >> caused by limitations of the Java Virtual Machine, as result of which >> many low level functions are not available. >> > > Sorry, but you are wrong here, and if you'd paid attention to what I > started with, then you'd already know that your answer is incorrect. As I > stated: > > This works fine on our ESX RHEL5_64 box. > This does not work on the KVM RHEL5_64 box. > Out of curiosity, what JVM is used (in both environments). I've seen similar missing functionality when the JVM was missing it too. If you are sure the only difference is the (CPU) VM, then I'd recommend debugging the os module (it imports a lot of its "stuff" from other modules, posix for instance). But checking the JVM is the low hang fruit here. Chris |