Re: Subprocess Not Working on Solaris



FWIIW, on my Solaris 10 (Opteron) machine, there are no import
subprocess errors, not with Python 2.4.3 nor with Python 2.5.

/Jean Brouwers

PS) Python 2.4.3 is the ActivePython Solaris build 11 from
ActivState. Python 2.5 was built from source using SUN compilers, not
GNU. There is an ActivePython Solaris build for 2.5.1 but I have not
tried that one yet. See <http://www.activestate.com/store/
download.aspx?prdGUID=b08b04e0-6872-4d9d-a722-7a0c2dea2758>



On Jun 15, 8:00 am, Lee <huyslo...@xxxxxxxxx> wrote:
Has anyone ran into this problem? I've done extensive googling and
research and I cannot seem to find the answer.

I downloaded the source for 2.5.1 from python.org compiled and
installed it on a Solaris box,

uname -a returns

SunOS unicom5 5.8 Generic_117350-26 sun4u sparc SUNW,Sun-Fire-V210

When I launch the python interpreter, I try the following:

"
Python 2.5.1 (r251:54863, Jun 13 2007, 13:40:52)
[GCC 3.2.3] on sunos5
Type "help", "copyright", "credits" or "license" for more information.>>> import subprocess

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/subprocess.py", line 401, in <module>
import select
ImportError: No module named select
"

The subprocess module works just fine on a BSD box I have and after
doing a 'find' I notice there is a select.so module. This does not
exist on the Solaris box, only subprocess exists. Within subprocess.py
on the Solaris box, exists the following:

"
else:
import select
import errno
import fcntl
import pickle
"

Any ideas? I'd like to get the subprocess module working...

-Lee

.



Relevant Pages

  • Re: Python vs. Perl
    ... >> better with Python 2.4's subprocess module. ... > that you specify, can run the subprocess as a different user, and more... ... programmer-friendly ExitStatus object that processess can return. ...
    (comp.lang.python)
  • Re: Python vs. Perl
    ... >> better with Python 2.4's subprocess module. ... > that you specify, can run the subprocess as a different user, and more... ... programmer-friendly ExitStatus object that processess can return. ...
    (comp.lang.python)
  • Re: [Python 2.4/2.5] subprocess module is sorely deficient?
    ... Sorry to start off on a negative note in the list, but I feel that the Python ... subprocess module is sorely deficient because it lacks a mechanism to: ... but you can read/write streams in a non-blocking ... the file handles to subprocess. ...
    (comp.lang.python)
  • [Python 2.4/2.5] subprocess module is sorely deficient?
    ... Sorry to start off on a negative note in the list, but I feel that the Python ... subprocess module is sorely deficient because it lacks a mechanism to: ... Kill the subprocess in a platform independent manner (i.e. no third party ...
    (comp.lang.python)
  • Re: sending input to an embedded application
    ... within a Python-run GUI, using the GUI just to capture and send input ... from existing python docs: ... Replacing older functions with the subprocess module..." ... hda: ST9160821A, ATA DISK drive ...
    (comp.lang.python)