I am playing around with entangled which makes use of os.spawnlp. I am currently running Python 2.7.2.
Here’s the error I am getting.
Traceback (most recent call last): File “create_network.py”, line
47, in
nodes.append(os.spawnlp(os.P_NOWAIT, ‘python’, ‘python py’, str(startPort))) AttributeError: ‘module’ object has no attribute
‘spawnlp’
How do I go about solving this issue? There doesn’t seem to be any indication that spawnlp was removed/deleted since it was first added in version 1.6.
I’ve already re-downloaded the windows python installer and ran it with the repair option. The only thing I can think it might be is that this computer is 64bit and the python version is 32bit… I don’t think that’s the problem but that’s the only thing I can think of…
Lastly, its recommended to use the subprocess module rather than the os.spawn*
In the python documentation it states that
You have to indeed use another module to create subprocesses.