AttributeError: class 'jnios.os' has no attribute 'fork' ---- what!!??
shari
shari.maria at zoom.co.uk
Wed Oct 3 11:42:58 EDT 2001
Sorry if this sounds simple, but I've just started using jpython.
I want to call a python script from java. I thought it would be
simple!
Within my java code I am using:
PythonInterpreter pInt = new PythonInterpreter();
pInt.execfile(".\\Test.py");
To call a python script containing:
self.pid = os.fork()
At first I got the error "os has no attribute pipe", which I solved by
using 'jnios-1.7' to replace Lib\os.py. My error then mutated into
the following:
AttributeError: class 'jnios.os' has no attribute 'fork'
So I can't use popen2.py or os.fork(). I'm now at a complete dead
end, has anyone got any clues?
Cheers,
Shari
More information about the Python-list
mailing list